I have recently started using MetaPhlAn2, and I am having some trouble for setting up the configuration.
I have manually downloaded and installed Metaphlan2 in my session of a remote server. Following the tutorial instructions, I included the export PATH=$MDIR: $MDIR/utils/:$PATH command in bashrc file and manually downloaded and installed bowtie2.
I suspect that I am not installing bowtie2 correctly, because when I run a command:
$[Path]/metaphlan2.py $[Path_data]/0.15.01610.001_R1.fastq.gz --input_type fastq --bowtie2_exe $[Path]/bowtie2-2.3.4-mingw-x86_64/bowtie2 > $[Path_data]/../0.15.01610.001_R1_profile.txt
My output is:
Downloading https://bitbucket.org/biobakery/metaphlan2/downloads/mpa_v20_m200.tar
Downloading file of size: 241.78 MB
241.78 MB 100.00 % 16.66 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 % 25.44 MB/sec 0 min -0 sec
Decompressing /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.fna.bz2 into /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.fna
Building Bowtie2 indexes
Building a SMALL index
Could not open file for reading a reference graph: "/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.0.sa"
Error: Encountered internal Bowtie 2 exception (#1)
Command: bowtie2-build --wrapper basic-0 --quiet --threads 4 -f /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.fna /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200
Deleting "/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.3.bt2" file written during aborted indexing attempt.
Deleting "/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.4.bt2" file written during aborted indexing attempt.
Deleting "/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.1.bt2" file written during aborted indexing attempt.
Deleting "/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.2.bt2" file written during aborted indexing attempt.
Fatal error running 'bowtie2-build --quiet --threads 4 -f /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.fna /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200'
Error message: 'Command '['bowtie2-build', '--quiet', '--threads', '4', '-f', '/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200.fna', '/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/databases/mpa_v20_m200']' returned non-zero exit status 1'
Also, when I rerun the command:
No MetaPhlAn BowTie2 database found (--index option)!
Expecting location bowtie2db
Exiting...
What seems to be the problem?
Thanks a lot!
--
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.
Hi,
Thank you for your answer. But this is quite strange, because I did not specified the parameter --nproc in my script, although bowtie2 seems to be using that multi-thread option yopu mention... Would it work if I specify "--nproc 1"?
Help message for read_fastx.py
: No such file or directory
OSError: "Command '['/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/bowtie2-2.3.4-mingw-x86_64/bowtie2', '-h']' returned non-zero exit status 127"
Fatal error running BowTie2. Is BowTie2 in the system path?
Apparently, I have 2 different paths for bowtie2:
I discovered one using:
(pythonenv) [otinialg@fs6801 ~]$ which bowtie2
~/.conda/envs/pythonenv/bin/bowtie2
The other one is installed manually at this path:
'/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/bowtie2-2.3.4-mingw-x86_64/bowtie2'
And when using:
(pythonenv) [otinialg@fs6801 ~]$ vi ~/.bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
R_LIBS_USER=$HOME/R/
export R_LIBS_USER
export PATH=/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801:/home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/utils/:$PATH
export BTPATH=$BTPATH:~/.conda/envs/pythonenv/bin/bowtie2
Is there anything wrong with my bowtie installs?
Many thanks for your help.
Adrian
(pythonenv) [otinialg@fs6801 cleaned]$ /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/bowtie2-2.3.4-mingw-x86_64/bowtie2 -h
: No such file or directory
But, if I cd to that path "-h" seems to function correctly:
(pythonenv) [otinialg@fs6801 ~]$ cd /home/otras/ini/alg/biobakery-metaphlan2-5175d8783801/bowtie2-2.3.4-mingw-x86_64/
(pythonenv) [otinialg@fs6801 bowtie2-2.3.4-mingw-x86_64]$ ls
AUTHORS bowtie2-align-s.exe bowtie2-build-l.exe bowtie2-inspect-l-debug.exe example scripts
bowtie2 bowtie2.bat bowtie2-build-s-debug.exe bowtie2-inspect-l.exe LICENSE TUTORIAL
bowtie2-align-l-debug.exe bowtie2-build bowtie2-build-s.exe bowtie2-inspect-s-debug.exe MANUAL VERSION
bowtie2-align-l.exe bowtie2-build.bat bowtie2-inspect bowtie2-inspect-s.exe MANUAL.markdown
bowtie2-align-s-debug.exe bowtie2-build-l-debug.exe bowtie2-inspect.bat doc NEWS
(pythonenv) [otinialg@fs6801 bowtie2-2.3.4-mingw-x86_64]$ bowtie2 -h
Bowtie 2 version 2.2.8 by Ben Langmead (lan...@cs.jhu.edu, www.cs.jhu.edu/~langmea)
Usage:
[...]
when I remove --tmp_dir at the end
OSError: "[Errno 2] No such file or directory: '/data/program/bowtie2-2.3.4.1'"
Fatal error running BowTie2. Is BowTie2 in the system path?
what should I do to fix
Vào 18:11:56 UTC+7 Thứ Hai, ngày 16 tháng 4 năm 2018, adria...@inia.es đã viết:
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/metaphlan-users/2c9af37e-4f81-473a-84ca-d443f8e92727%40googlegroups.com.