Skip to content

sleyn/metaphlan2_to_qiime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metaphlan2_to_qiime

Convert MetaPhlAn2 OTU abundance table format to QIIME format. Script set up to work with bacterial-only communities as they are the main subject of our lab, but it could be modified to include all species.

Usage

1. Download NCBI taxonomy

collect_taxonomy.sh script downloads a dump of current NCBI Taxonomy database, converts it to a <Name><TaxIDs><Linage> table and removes all non-bacterial and low-ranked items (e.g TaxIDs for phylums or orders).

Currently everything which is above family level is removed. Ranks that should be saved could be setted inside convert_dmp.pl script in %keep_rank hash.

2. Convert MetaPhlAn2 to QIIME forma

python3 metaphlan2_to_qiime.py [arguments] script converts MetaPhlAn2 output to QIIME output.

Arguments:

-m, --metaphlan     MetaPhlAn2 output (input for the script)
-t, --taxonomy      File with NCBI taxonomy
-o, --out           Output file in QIIME format

About

Convert Metaphlan2 format to QIIME format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published