使用conda安装Kranken2,下载数据库
kraken2-build --db krakendb --download-library bacteria
报错信息
rsync_from_ncbi.pl: unexpected FTP path (new server?) for https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/762/265/GCF_000762265.1_ASM76226v1
原因:
ftp地址已改为http
解决办法:
修改脚本文件'rsync_from_ncbi.pl'
,储存于$(conda_path)/envs/py37/libexec/
将下列代码
if (! ($full_path =~ s#^ftp://${qm_server}${qm_server_path}/##)) { die "$PROG: unexpected FTP path (new server?) for $ftp_path\n"; }
更改为
if (! ($full_path =~ s#^https://${qm_server}${qm_server_path}/##)) { die "$PROG: unexpected FTP path (new server?) for $ftp_path\n"; }
运行获得新的报错
ERROR: rejecting unrequested file-list name: all/GCF/024
解决办法:
修改脚本文件'rsync_from_ncbi.pl'
,储存于$(conda_path)/envs/py37/libexec/
将下列代码 (line 122)
system("rsync --no-motd --files-from=manifest.txt rsync://${SERVER}${SERVER_PATH}/ .") == 0
更改为
system("wget -nc -nH -x --cut-dirs=1 -i manifest.txt -B [https://ftp.ncbi.nlm.nih.gov/genomes/](https://ftp.ncbi.nlm.nih.gov/genomes/)") == 0
then, it worked
网友评论