metaphlan2: its output for Qiime? count human reads?

708 views
Skip to first unread message

Ming Liao

unread,
Dec 2, 2015, 9:30:01 PM12/2/15
to MetaPhlAn-users
Hello, there

I am currently using Metaphlan2 for metagenomics and MacQiime for 16s data.

1. There was a metaphlan2biom.by for Metaphlan, but not for Metaphlan2. As I used it to convert my merged output from Metaphalan2, it gave me the biom file that did not work in qiime.

TypeError: merge.biom does not appear to be a BIOM file!

Does anyone try to use metaphlan2 output in Qiime?

2. I read some papers in which they count the human reads from the short gun sequencing of gut micro biome. Can metaphlan2 do that? If not, what kind of tool can make it?

Thanks in advance.

Ming

George Weingart

unread,
Dec 2, 2015, 9:48:24 PM12/2/15
to Ming Liao, MetaPhlAn-users
Hi Ming,

In metaphlan2 you can use the --biom biom_output  

parameters,  where biom_output is the name of your output file.
You also can invoke that option in Galaxy...

Give it a try and let me know..
Best regards,

George Weingart, PhD
Huttenhower Lab


Inline image 2


Inline image 3

Inline image 4


Ming

--
You received this message because you are subscribed to the Google Groups "MetaPhlAn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metaphlan-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ming Liao

unread,
Dec 3, 2015, 1:47:57 AM12/3/15
to MetaPhlAn-users, liaom...@gmail.com
Thanks George
I am still confused about the conversion to biom file.

I got the merged file as below:
$ python utils/merge_metaphlan_tables.py metaphlan_output1.txt metaphlan_output2.txt metaphlan_output3.txt > output/merged_abundance_table.txt

I thought the "merged_abundance_table.txt" can be converted to biom format so that it can be used in the Qiime.

but the "--input_type" of metaphalan2 did not have "txt". Did I do something wrong?


Ming


On Wednesday, December 2, 2015 at 9:48:24 PM UTC-5, george.weingart wrote:
> Hi Ming,
>
>
> In metaphlan2 you can use the --biom biom_output  
>
>
> parameters,  where biom_output is the name of your output file.
> You also can invoke that option in Galaxy...
>
>
> Give it a try and let me know..
> Best regards,
>
>
> George Weingart, PhD
> Huttenhower Lab
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

George Weingart

unread,
Dec 3, 2015, 2:23:13 AM12/3/15
to Ming Liao, MetaPhlAn-users
Use the biom conversion program to convert your abundance file to biom

Ming Liao

unread,
Dec 3, 2015, 8:21:57 AM12/3/15
to MetaPhlAn-users, liaom...@gmail.com
Can you help me to figure out where is the problem? The "merge.txt" is "merged_abundance_table.txt" resulted from "merge_metaphlan_tables.py"


MacQIIME blk073:breast $ python ~/Downloads/_metaphlan2/metaphlan2.py ./1_Data/merge.txt --biom merge.biom --nproc 6 --mpa_pkl ~/Downloads/_metaphla2/db_v20/mpa_v20_m200.pkl
....
metaphlan2.py: error: argument --input_type is required


MacQIIME blk073:breast $ python ~/Downloads/_metaphlan2/metaphlan2.py ./1_Data/merge.txt --biom merge.biom --nproc 6 --mpa_pkl ~/Downloads/_metaphla2/db_v20/mpa_v20_m200.pkl --input_type txt
...
metaphlan2.py: error: argument --input_type: invalid choice: 'txt' (choose from 'fastq', 'fasta', 'multifasta', 'multifastq', 'bowtie2out', 'sam')

Thanks!

Ming

Ming Liao

unread,
Dec 3, 2015, 8:29:16 AM12/3/15
to MetaPhlAn-users, liaom...@gmail.com
the first try is actually like this:

MacQIIME blk073:breast $ python ~/Downloads/_metaphlan2/metaphlan2.py ./1_Data/merge.txt --biom merge.biom
...
metaphlan2.py: error: argument --mpa_pkl is required
Reply all
Reply to author
Forward
0 new messages