eggnog 本地化及报错解决

在线网站(一次只能提交不超过1000条的基因序列)

eggNOG-mapper (embl.de)

本地化(建议最好参考GitHub)

github:eggNOG mapper v2.1.5 to v2.1.8 · eggnogdb/eggnog-mapper Wiki (github.com)

安装

1. 推荐 pip 更快一点  

eggnog-mapper · PyPI

pip install eggnog-mapper

2. 将运行程序emapper.py加入自己base环境中

#Download (clone) the repository
git clone https://github.com/eggnogdb/eggnog-mapper.git
export PATH=/home/user/eggnog-mapper:/home/user/eggnog-mapper/eggnogmapper/bin:"$PATH"
#database saved in specific dir
export EGGNOG_DATA_DIR=/home/user/eggnog-mapper-data

下载数据库

1. 基本操作:只能用 diamond search

download_eggnog_data.py --data_dir eggnog-mapper-data/ -y -f
#--data_dir 数据库存放位置
#-y 自动同意
#-f 强制下载(覆盖掉以前下载过的同名文件)

2.使用hmmer或者mmseq 则需要下载相应的数据库

  • The -P flag is required to download the PFAM database.
  • The -M flag is required to download the MMseqs2 database
  • The -H -d taxID flag is required to download a HMMER database for a given taxID

#下载mmseq数据库
download_eggnog_data.py --data_dir eggnog-mapper-data/ -M -y -f

 常用命令

1. 核酸序列

  • 使用prodigal进行功能预测,数据类型:genome
emapper.py  --itype genome --genepred prodigal -i query.fasta -o /outdir/filename --cpu 60
#cpu: 线程数,建议多设点,速度挺慢的
#Run search and annotation for a genome, using Diamond search on proteins predicted by Prodigal
#也可以使用mmseq
emapper.py  -m mmseqs --itype genome --genepred prodigal -i query.fasta -o /outdir/filename --cpu 60

可能报错:

running prodigal: (Consider running with the -p meta option or finding more contigs from the same genome contig)

原因:文件小于100kp -p meta option is missing · Issue #7 · padlocbio/padloc (github.com)

解决:多个文件合并>100kb 

  • 使用 mmseq blastp search进行预测,输入:核酸序列
emapper.py  -m mmseqs -i query.fasta -o outdir/filename --cpu 30 --dmnd_ignore_warnings --translate
#输入是核酸序列
#--translate 对核酸序列进行翻译
#--dmnd_ignore_warnings 忽略警告

2. 氨基酸序列

  • 使用diamond blastp search 进行预测,输入:氨基酸序列
emapper.py -i FASTA_FILE_PROTEINS -o test
#This basic example will run a diamond blastp search, and for those queries with hits to eggNOG proteins, will carry out functional annotation.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值