I'm wondering if anyone can help me...
I have downloaded Metaphlan2 and all of its dependencies via Conda, in a conda environment.
am trying to profile metagenomic paired end samples. I was testing this code preliminarily:
metaphlan2.py S1_QC_1.fastq,S1_QC_2.fastq --bowtie2out bowtie_output_S1.bz2 -t rel_ab_w_read_stats --nproc 12 --input_type fastq
But it keeps giving me the error:
No MetaPhlAn BowTie2 database found (--index option)!
Expecting location bowtie2db
I have downloaded the database files and they are all present in /miniconda2/envs/metaphlan/bin/metaphlan_databases/
mpa_v20_m200.fna mpa_v20_m200.fna.bz2 mpa_v20_m200_marker_info.txt mpa_v20_m200_marker_info.txt.bz2 mpa_v20_m200.md5 mpa_v20_m200.pkl mpa_v20_m200.tar
I'm not sure if I've missed something out of my command and if I should have used --bowtie2db?
Thanks in advance!
--
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.
The contents of the new metaphlan_databases folder is:
/miniconda2/envs/metaphlan/bin/metaphlan_databases$ ls
mpa_v20_m200.1.bt2 mpa_v20_m200.2.bt2 mpa_v20_m200.3.bt2 mpa_v20_m200.4.bt2 mpa_v20_m200.fna.bz2 mpa_v20_m200.md5 mpa_v20_m200.pkl mpa_v20_m200.tar
It seems that all of the correct files are present?
Thank you for your help!
Charlotte
$ls
mpa_v20_m200.1.bt2 mpa_v20_m200.3.bt2 mpa_v20_m200.fna mpa_v20_m200.md5 mpa_v20_m200.tar
mpa_v20_m200.2.bt2 mpa_v20_m200.4.bt2 mpa_v20_m200.fna.bz2 mpa_v20_m200.pkl
I don't appear to have the mpa_v20_m200.rev.1.bt2 mpa_v20_m200.rev.2.bt2 files.
And the version of bowtie2 that I have is the same as what you found:
/pub38/cchong/miniconda2/envs/metaphlan/bin/bowtie2-align-s version 2.3.4.1
64-bit
Built on default-df05fd51-3d07-4109-abba-6883676f3ae8
Mon Jun 25 23:12:07 UTC 2018
Compiler: gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)
Options: -O3 -m64 -msse2 -funroll-loops -g3 -DBOOST_MATH_DISABLE_FLOAT128 -m64 -fPIC -std=c++98 -DPOPCNT_CAPABILITY -DWITH_TBB -DNO_SPINLOCK -DWITH_QUEUELOCK=1
Sizeof {int, long, long long, void*, size_t, off_t}: {4, 8, 8, 8, 8, 8}
Thank you!
Charlotte
Thank you very much for your help. I have downloaded the metaphlan database files that you linked and my original command now runs.
However I am now getting another error. It appears that the script cannot find the read_fastx.py file, despite this being in correct place "/pub38/cchong/miniconda2/envs/metaphlan/bin/read_fastx.py".
The error I get is:
Help message for read_fastx.py
Traceback (most recent call last):
File "/pub38/cchong/miniconda2/envs/metaphlan/bin/read_fastx.py", line 123, in <module>
read_and_write_raw(f, opened=False, min_len=min_len)
File "/pub38/cchong/miniconda2/envs/metaphlan/bin/read_fastx.py", line 88, in read_and_write_raw
with fopen(fd) as inf:
File "/pub38/cchong/miniconda2/envs/metaphlan/bin/read_fastx.py", line 47, in fopen
return open(fn)
IOError: [Errno 2] No such file or directory: ''
Is this files linked to the ones bowtie builds? I'm unsure of how to fix this error.
Thank you in advance!
Charlotte
The command I used was:
metaphlan2.py /pub38/cchong/metaphlan_analysis/fastq_input/S1_QC_1.fastq, /pub38/cchong/metaphlan_analysis/fastq_input/S1_QC_2.fastq --bowtie2out /pub38/cchong/metaphlan_analysis/metaphlan2_output/bowtie_output/bowtie_output_S1.bz2 -t rel_ab_w_read_stats --nproc 12 --input_type fastq
I think I must be missing something from my command!
Thank you!
Charlotte
CRITICAL ERROR: Error executing: /home/adinasarapu/anaconda3/envs/ddocent_env/bin/metaphlan2.py /scratch/269684_JvK797BW/G45250_non_rRNA.fastq --input_type fastq --no_map --mpa_pkl /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200.pkl --bowtie2db /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200 -o /scratch/269684_JvK797BW/G45250_humann2/G45250_non_rRNA_humann2_temp/G45250_non_rRNA_metaphlan_bugs_list.tsv --input_type multifastq --bowtie2out /scratch/269684_JvK797BW/G45250_humann2/G45250_non_rRNA_humann2_temp/G45250_non_rRNA_metaphlan_bowtie2.txt --nproc 4
Error message returned from metaphlan2.py :
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 % 93.69 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 % 11.87 MB/sec 0 min -0 sec
Decompressing /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200/mpa_v20_m200.fna.bz2 into /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200/mpa_v20_m200.fna
Building Bowtie2 indexes
Error: could not open /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200/mpa_v20_m200.fna
Error: Encountered internal Bowtie 2 exception (#1)
Command: /mnt/icebreaker/data2/home/adinasarapu/anaconda3/envs/ddocent_env/bin/bowtie2-build-s --wrapper basic-0 --quiet --threads 4 -f /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200/mpa_v20_m200.fna /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200/mpa_v20_m200
Removing uncompress database /home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200/mpa_v20_m200.fna
Traceback (most recent call last):
File "/home/adinasarapu/anaconda3/envs/ddocent_env/bin/metaphlan2.py", line 1564, in <module>
metaphlan2()
File "/home/adinasarapu/anaconda3/envs/ddocent_env/bin/metaphlan2.py", line 1357, in metaphlan2
check_and_install_database(pars['index'], pars['bowtie2db'], pars['bowtie2_build'], pars['nproc'])
File "/home/adinasarapu/anaconda3/envs/ddocent_env/bin/metaphlan2.py", line 826, in check_and_install_database
download_unpack_tar(DATABASE_DOWNLOAD, index, bowtie2_db, bowtie2_build, nproc)
File "/home/adinasarapu/anaconda3/envs/ddocent_env/bin/metaphlan2.py", line 814, in download_unpack_tar
os.remove(fna_file)
OSError: [Errno 2] No such file or directory: '/home/adinasarapu/anaconda3/envs/ddocent_env/bin/db_v20/mpa_v20_m200/mpa_v20_m200.fna'
Hi Francesco,
I was following your instructions to solve the identical bowtie2 problem with Charlotte. and it worked.
Now I am also having a problem with read_fastx.py, after I used the command line: metaphlan2.py SRS014476-Supragingival_plaque.fasta.gz --input_type fasta > SRS014476-Supragingival_plaque_profile.txt --nproc 5.
The detailed error is shown in the figure.
I installed my Metaphlan2 with the zip file provided in Biobackery. My version is MetaPhlAn version 2.7.7 (31 May 2018).
Thank you very much.
Tianqi
To unsubscribe from this group and stop receiving emails from it, send an email to metaphlan-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metaphlan-users/b2c953b4-5c44-40bc-bdeb-fd6be6cb6ffd%40googlegroups.com.