Using paired reads in Metaphlan 2

2,398 views
Skip to first unread message

Theo Allnutt

unread,
Jun 9, 2016, 12:04:48 AM6/9/16
to MetaPhlAn-users
Hi,

I have read the manual, but I'm not clear on how to use paired reads. I have my reads in an interleaved fasta file:

>read1 1:etc
AGTAGATAGTA.....
>read1 2:etc
ACTTGCTCTCT.....

but I could use any format. My current command line is:

metaphlan2.py 1.fasta -o 1.txt --input_type multifasta --nproc 24

This seems to give a reasonable basic output, but I can't tell if it is using the paired information in the file.

Thanks.

Duy Tin Truong

unread,
Jun 9, 2016, 5:19:11 AM6/9/16
to Theo Allnutt, MetaPhlAn-users
Hi Theo,

MetaPhlAn2 considers all reads as single reads. You can run them as:
metaphlan2.py 1.fasta,2.fasta -o all.txt --input_type multifasta --nproc 24
metaphlan2.py 1.fastq,2.fastq -o all.txt --input_type multifastq --nproc 24

Cheers,
Tin



--
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.

Theo Allnutt

unread,
Jun 14, 2016, 12:16:50 AM6/14/16
to MetaPhlAn-users

Hi,

I see. Perhaps you should remove or change the sentence in your documentation: "MetaPhlAn 2 can also natively handle paired-end metagenomes, and, more generally, metagenomes stored in multiple files (but you need to specify the --bowtie2out parameter):" because it makes it sound like metaphlan2 can actually use paired read information.

Thanks,

Theo

Duy Tin Truong

unread,
Jun 14, 2016, 1:29:14 AM6/14/16
to Theo Allnutt, MetaPhlAn-users
Hi Theo,

Thank you for your suggestion but it may mean that metaphlan2 can accept as input the paired-end metagenomes or multiple metagenomes stored in multiple files.

Cheers,
Tin

Message has been deleted

tatsuya unno

unread,
Jan 1, 2017, 8:42:38 PM1/1/17
to MetaPhlAn-users, tallnu...@gmail.com
So metaphlan knows which reads are PE? (assuming checking sequence IDs)
Since PE reads are from one single DNA fragment, they should be assigned with the same taxonomy.

Thanks,
Tatsu

Nicola Segata

unread,
Jan 2, 2017, 2:54:21 AM1/2/17
to tatsuya unno, MetaPhlAn-users, tallnu...@gmail.com
Hi Tatsuya, MetaPhlAn accepts paired end reads but we do not explicitly make us of them: we do not check whether the two ends map against the same marker. Because of the definition of markers in MetaPhlAn two ends should not map against different markers, but it can instead happen that one of the two ends does not map because it falls outside the sequence of the marker.

Best
Nicola 
--
---- 
Nicola Segata, PhD
Assistant Professor and Principal Investigator
Skype: nicola.segata
Reply all
Reply to author
Forward
0 new messages