I ran the following command using the humann executable:
humann --input demo.fastq.gz --output demo_fastq
Then, I receive the following error message:
Error message returned from metaphlan :
Downloading https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AAA4XDP85WHon_eHvztxkamTa/file_list.txt?dl=1
Warning: Unable to download https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AAA4XDP85WHon_eHvztxkamTa/file_list.txt?dl=1
Traceback (most recent call last):
File "/home/noyes046/dean0358/.conda/envs/metaphlan-3.0/bin/metaphlan", line 10, in <module>
sys.exit(main())
File "/home/noyes046/dean0358/.conda/envs/metaphlan-3.0/lib/python3.7/site-packages/metaphlan/metaphlan.py", line 916, in main
pars['index'] = check_and_install_database(pars['index'], pars['bowtie2db'], pars['bowtie2_build'], pars['nproc'], pars['force_download'])
File "/home/noyes046/dean0358/.conda/envs/metaphlan-3.0/lib/python3.7/site-packages/metaphlan/__init__.py", line 269, in check_and_install_database
index = resolve_latest_database(bowtie2_db, ls_f['mpa_latest'], force_redownload_latest)
UnboundLocalError: local variable 'ls_f' referenced before assignment
It looks like it is trying and failing to download one of the reference databases from Dropxbox, but I already have it installed. Is there a command-line option I can use to point humann to? Any help would be appreciated.
This looks like a MetaPhlAn error. I’ll go ahead and move the thread to that channel, although you might want to check if it’s already been solved there. When diagnosing MetaPhlAn issues arising in HUMAnN calls it can be handy to try running the MetaPhlAn command outside of HUMAnN first to make sure you see the same error.
Hi @Collin_Kessler and @cdeanj
The Dropbox download of the database has been deprecated and thus older versions of the MetaPhlAn 3 tool are not able to download the database. I suggest you to upgrade to the latest version available (3.0.14) or manually download the database from the following link Index of /biobakery3/metaphlan_databases