Hi! I installed MetaPhlAn using conda:
conda create -n env_metaflan
conda activate env_metaflan
conda install -c bioconda python=3.7 metaphlan
#checked installed versions of requirements:
conda list -n env_metaflan
bowtie 2.4.2
numpy 1.20.1
biopython 1.78
#Following this recommendation: “If you have installed MetaPhlAn using Anaconda, it is advised to install the database in a folder outside the Conda environment.” I tried:
$ metaphlan --install --bowtie2db MetaPhIan
#I get this error message:
Downloading MetaPhlAn database
Please note due to the size this might take a few minutes
File MetaPhIan/mpa_v30_CHOCOPhlAn_201901.tar already present!
File MetaPhIan/mpa_v30_CHOCOPhlAn_201901.md5 already present!
Traceback (most recent call last):
File “/root/miniconda3/envs/env_metaflan/bin/metaphlan”, line 10, in
sys.exit(main())
File “/root/miniconda3/envs/env_metaflan/lib/python3.7/site-packages/metaphlan/metaphlan.py”, line 925, in main
pars[‘index’] = check_and_install_database(pars[‘index’], pars[‘bowtie2db’], pars[‘bowtie2_build’], pars[‘nproc’], pars[‘force_download’])
File “/root/miniconda3/envs/env_metaflan/lib/python3.7/site-packages/metaphlan/init.py”, line 301, in check_and_install_database
download_unpack_tar(index, bowtie2_db, bowtie2_build, nproc, use_zenodo)
File “/root/miniconda3/envs/env_metaflan/lib/python3.7/site-packages/metaphlan/init.py”, line 180, in download_unpack_tar
bt2_build_output = subp.check_output([bowtie2_build, ‘–usage’], stderr=subp.STDOUT)
File “/root/miniconda3/envs/env_metaflan/lib/python3.7/subprocess.py”, line 411, in check_output
**kwargs).stdout
File “/root/miniconda3/envs/env_metaflan/lib/python3.7/subprocess.py”, line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘bowtie2-build’, ‘–usage’]’ returned non-zero exit status 127.
Any suggestions?
Thank you