MAGpurify2配置

安装

1
2
3
mamba create -n magpurify2    
mamba activate magpurify2
pip install magpurify2

数据库下载

数据库存放在谷歌云盘上,有15G,我选择临时租个阿里云新加坡的服务器下载了再传回来。

1
2
3
4
5
fileId="1ooWiR3LplBy5GsY5wZ7o6dwswiCWVvmi"
fileName="magpurify2DB.v1.0.tar.gz"
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=${fileId}" > /dev/null
code="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${code}&id=${fileId}" -o ${fileName}

传输完成后解压即可。

运行

1
magpurify2 taxonomy -t 60 final_assembly.fasta mapurify2.taxonomy ~/database/magpurify2

结果:

1
2
3
4
5
6
7
8
9
10
genome  contig  genome_taxonomy contig_taxonomy
final_assembly k141_419989 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Gammaproteobacteria;Pseudomonadales;Pseudomonadaceae
final_assembly k141_296469 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Gammaproteobacteria;Xanthomonadales;Xanthomonadaceae
final_assembly k141_160589 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Alphaproteobacteria;Rhizobiales;Rhizobiaceae;Allorhizobium
final_assembly k141_432342 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Alphaproteobacteria;Sphingomonadales;Sphingomonadaceae;Sphingopyxis
final_assembly k141_716437 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Gammaproteobacteria;Burkholderiales;Burkholderiaceae;Acidovorax_E
final_assembly k141_580566 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Gammaproteobacteria;Enterobacterales;Enterobacteriaceae;Enterobacter
final_assembly k141_24707 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Gammaproteobacteria;Burkholderiales;Burkholderiaceae
final_assembly k141_12355 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Bacteroidota;Bacteroidia;Flavobacteriales;Flavobacteriaceae;Flavobacterium
final_assembly k141_370583 root;Bacteria;Proteobacteria;Gammaproteobacteria root;Bacteria;Proteobacteria;Gammaproteobacteria;Pseudomonadales;Pseudomonadaceae

MAGpurify2配置
https://lixiang117423.github.io/article/magpurify2/
作者
李详【Xiang LI】
发布于
2023年6月30日
许可协议