Hi,
I am trying to run strainPhlan and I get the following error:
File “/mypath/metaphlan-3.0/lib/python3.7/subprocess.py”, line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘bowtie2-build’, ‘–usage’]’ returned non-zero exit status 250.
Hi @Ana can you try installing MetaPhlAn in a separate environment?
You can do that by running conda create --name mpa -c bioconda python=3.7 metaphlan.
Before using MetaPhlAn, you should activate the mpa environment with conda activate mpa
This error is a result of a bug present in an older build, now resolved in the latest version.
Hi @fbeghini, I have tried removing my existing mpa environment and reinstalling MetaPhlAn in a separate environment as you instructed. However, I still got the same error. For context, I was trying to run $ metaphlan SRS014476-Supragingival_plaque.fasta.gz --input_type fasta > SRS014476-Supragingival_plaque_profile.txt as part of the tutorial. What should I do to get it working? Thanks!
Hi @fbeghini, thanks for your reply! I’m pretty sure I configured the bioconda channels correctly according to the Bioconda documentation. I tried reinstalling MetaPhlAn in a new environment with your command lines but the situation persisted. I also tried removing and reinstalling bowtie2 but to no avail. I believe the fact bowtie2 didn’t work properly was why I got an empty .txt file that was supposed to be one of the intermediate mapping results to unique sequence markers.