I installed metaphlan2 from source (Version 2.7.6) and am attempting to run it with some of the example data using the following command:
metaphlan2.py SRS014476-Supragingival_plaque.fasta.gz --input_type fasta > test.txt
After 12 hours, there is still no output in 'SRS014476-Supragingival_plaque.fasta.gz.bowtie2out.txt' and here standard out only shows "Help message for read_fastx.py"
When I interrupt the process, here's the traceback:
^CTraceback (most recent call last):
File "/n/home09/wloo/biobakery-metaphlan2-7df8753d7e5e/metaphlan2.py", line 1564, in <module>
Traceback (most recent call last):
File "/n/home09/wloo/biobakery-metaphlan2-7df8753d7e5e/utils/read_fastx.py", line 123, in <module>
metaphlan2()
File "/n/home09/wloo/biobakery-metaphlan2-7df8753d7e5e/metaphlan2.py", line 1449, in metaphlan2
min_alignment_len=pars['min_alignment_len'], read_min_len=pars['read_min_len'])
File "/n/home09/wloo/biobakery-metaphlan2-7df8753d7e5e/metaphlan2.py", line 896, in run_bowtie2
for line in p.stdout:
KeyboardInterrupt
read_and_write_raw(f, opened=False, min_len=min_len)
File "/n/home09/wloo/biobakery-metaphlan2-7df8753d7e5e/utils/read_fastx.py", line 89, in read_and_write_raw
(humann2) [wloo@holy7c19316 metaphlan]$ read_and_write_raw_int(inf, min_len=min_len)
File "/n/home09/wloo/biobakery-metaphlan2-7df8753d7e5e/utils/read_fastx.py", line 78, in read_and_write_raw_int
SeqIO.write(record, sys.stdout, fmt)
File "/n/home09/wloo/.conda/envs/humann2/lib/python2.7/site-packages/Bio/SeqIO/__init__.py", line 491, in write
count = writer_class(fp).write_file(sequences)
File "/n/home09/wloo/.conda/envs/humann2/lib/python2.7/site-packages/Bio/SeqIO/Interfaces.py", line 214, in write_file
count = self.write_records(records)
File "/n/home09/wloo/.conda/envs/humann2/lib/python2.7/site-packages/Bio/SeqIO/Interfaces.py", line 199, in write_records
self.write_record(record)
File "/n/home09/wloo/.conda/envs/humann2/lib/python2.7/site-packages/Bio/SeqIO/FastaIO.py", line 200, in write_record
self.handle.write(">%s\n" % title)
KeyboardInterrupt
Do you have any suggestions for solving this?
Thank you!
Wesley
--
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.
Thank you for your quick response! I tried your suggested command but ran into the same problem. I also decompressed the fasta file and ran the command, but I'm still getting no output. The bowtie2out.txt file is created but nothing is written to it and stderr still only shows "Help message for read_fastx.py".
Do you have any other ideas for what might be causing this issue?
Thanks,
Wesley
I am just a new user of metaphlan2. I also pass the decompressed file as Francesco suggested:
<(zcat file1 file2)
On our server it takes a while before the bowtie2 output files increase in size. There will be output after some time. The read_fastx.py seems to be a standard output message. It took about 8hours for 4gb of data.
Perhaps wait a little longer and see? In my experience metaphlan v1 ran much faster.
Foon
I did a clean reinstall and it all seems to be working now. I think perhaps I interrupted the database downloading/building at some point in my previous installation. Thanks for your help!
Best,
Wesley
This is the case for both a Linux machine running Python 3.6.5 and Bowtie2 2.3.2, as well as a Mac OS X machine running Python 3.5.2 and Bowtie2 2.3.1.
It still happens when I decompress the FASTA file (SRS014476-Supragingival_plaque) and use the uncompressed FASTA file, or even just the first 10 or so reads from that FASTA file.
I believe that the problem somehow involves interprocess communications with Bowtie2, which remains running at 300% CPU the whole time. If you kill Bowtie2, it exits the infinite loop.
I don't have this issue with Metaphlan2 version 2.6.0 (on Mac OS X).