I am a newcomer at this field and trying to learn the way of microbial community analysis using whole genome sequencing.
I have installed Metaphlan2 and requisite programs (numpy, bowtie2...).
I set the PATH of metaphlan2 and bowtie2 correctly and the version of python and bowtie is sufficient for the performance.
But, when I run the command like below, it failed to classify the input data making empty bowtie2out.txt
[jwhuh@lsg03 tutorial]$ metaphlan2.py SRS014459-Stool.fasta.gz --input_type fasta > stool.txt
Help message for read_fastx.py
[jwhuh@lsg03 tutorial]$ ll
total 700
-rw-r--r-- 1 jwhuh users 705910 Sep 14 14:55 SRS014459-Stool.fasta.gz
-rw-r--r-- 1 jwhuh users 0 Sep 14 14:56 SRS014459-Stool.fasta.gz.bowtie2out.txt
-rw-r--r-- 1 jwhuh users 49 Sep 14 14:56 stool.txt
[jwhuh@lsg03 tutorial]$ head stool.txt
#SampleID Metaphlan2_Analysis
unclassified 100.0
I have changed permission for both sample data and metaphlan_database directory but it didn't work...
What am I doing wrong? I hope you can help me...
Thank you in advance..
Best,
JW Huh
--
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.
[jwhuh@lsg03 tutorial]$ bowtie2 --sensitive -S stool.sam -x /data/program/Metaphlan2/biobakery-metaphlan2-097a52362c79/metaphlan_databases/mpa_v20_m200 -fU SRS014459-Stool.fasta.gz
20000 reads; of these:
20000 (100.00%) were unpaired; of these:
20000 (100.00%) aligned 0 times
0 (0.00%) aligned exactly 1 time
0 (0.00%) aligned >1 times
0.00% overall alignment rate
Because you successfully classified the same stool sample data, I think bowtie2 process in my computer is going wrong anyway..
Or Could you provide an intermediate sam file that was processed by bowtie2 command to confirm whether my metaphlan2 works properly.
Thank you!
Best,
Huh
It was found that original bowtie index files in metadata_database directory was not working, and when I set a command like below
$ metaphlan2.py SRS014459-Stool.fasta --input_type fasta --mpa_pkl ./metaphlan_databases/mpa_v20_m200.pkl --bowtie2db ./metaphlan_databases/mpa_v20_m200 --bowtie2_exe /data/program/bowtie2-2.3.4.1 --bowtie2out stool.out --tmp_dir .
(I linked the database directory)
The command newly downloaded Metaphlan2 database like this
------------------------------------------------------------------------
Downloading MetaPhlAn2 database
Please note due to the size this might take a few minutes
Downloading https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.tar
Downloading file of size: 241.78 MB
241.78 MB 100.00 % 7.22 MB/sec 0 min -0 sec
Downloading https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.md5
Downloading file of size: 0.00 MB
0.01 MB 16062.75 % 3.95 MB/sec 0 min -0 sec
Decompressing ./metaphlan_databases/mpa_v20_m200/mpa_v20_m200.fna.bz2 into ./metaphlan_databases/mpa_v20_m200/mpa_v20_m200.fna
Building Bowtie2 indexes
Removing uncompress database ./metaphlan_databases/mpa_v20_m200/mpa_v20_m200.fna
Download complete
Help message for read_fastx.py
OSError: "[Errno 13] Permission denied: '/data/program/bowtie2-2.3.4.1'"
Fatal error running BowTie2. Is BowTie2 in the system path?
----------------------------------------------------------------------------
When I permitted and used those indexes for classification, it worked perfectly.
So, I replaced the original indexes with new ones, and now the first command that didn't work "$metaphlan2.py SRS014459-Stool.fasta --input_type fasta > stool.txt" revealed expected results!!
I greatly appreciate your discussion. I got a hint from your mention of index size.
I will be back when I meet another problem :)
Thank you again
Bests,
Huh
You are correct! When I downloaded database, it worked perfect.
I would like to express my biggest thanks.
Thank you
H