I have been trying to install baqlava. First I installed humann v4.0.0.alpha.1. However, I am unable to install anadama2 (as a pre-requiry) properly –> doesn’t give any error but doesn’t show any output when hitting anadama2 –help. Do I need to install any specific version of anadama?
Hi Faezeh! BAQLaVa is not yet compatible with HUMAnN 4, please install v3.9. It is in the works to get a 4.0 compatible version so we should have that soon but just not yet! Is your AnADAMA2>=0.10.0?
Thanks a lot for your prompt response! Yes, I tried different versions of AnADAMA2 and all were the same.
Regarding HUMAnN v3.9, would you please guide me with all the database that is compatible with it? I struggled a lot for that too and at the end found the solution in this topic:
Thank you so much for reaching out to the bioBakery Lab. Re: For the anadama2 issue, I do not think the command anadama2 –-help will show the installed version or help options.
Can you type the following commands to test if anadama2 is installed in your system?
When I try to install it using $ conda install -c bioconda anadama2 inside the environment that I have installed HUMAaN 4, everything looks like to be working: # All requested packages already installed.
However, when I try $import anadama2 I get ModuleNotFoundError: No module named ‘leveldb’
And for print(anadama2.version) I get NameError: name ‘anadama2’ is not defined
Would you please guide me from scratch if I need to do it in a different conda environment. The question is which database is compatible with HUMAaN older versions if I have to use older HUMAaN version.
I am still struggling with having this working. I have also tried installing humann 3.9 but faced difficulty with its compatibility with metaphlan… Went through all related topics in the forum but no success. I was wondering if I should expect any updates from you.
Apologies you are still running into the installing issues for baqlava and its dependencies (humann and metaphlan). I see that you are now using humann v3.9 and metaphlan v4.1 with mpa_vJun23_CHOCOPhlAnSGB_202307 database in this post which is the correct path forward for baqlava installation.
Since metaphlan v4.1 demo is running as expected and humann v3.9 demo is not, this error usually happens when HUMAnN can’t properly run metaphlan --version, often because of an environment mismatch or small formatting issues in the command.
Could you quickly run:
which humann
which metaphlan
metaphlan --version
and confirm they’re coming from the same conda environment? Also, please try retyping the HUMAnN command manually just to avoid any hidden special characters(quotes).
Thank you for trying the commands and follow up. Everything looks good with the software installation. Can you try with moving the metaphlan database to default path where metaphlan is expecting the databases please?
Example Demo command without having to pass bowtie2 index flag:
I just moved the metaphlan database to the default path (substituted vJun23 with vJan25 version). Now I have the following as expected:
$ metaphlan --version
MetaPhlAn version 4.1.2 (16 Oct 2025)
Installed databases: mpa_vJun23_CHOCOPhlAnSGB_202307
Trying your command gives me the following error:
ERROR: Cannot find a local database. Please run MetaPhlAn using option "-x <database_name>".
You can download the MetaPhlAn database from
http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases
Checking it with database path I get:
$ metaphlan --input_type fastq examples/demo.fastq.gz --bowtie2db humann3_db/metaphlan_db_vJun23 --index mpa_vJun23_CHOCOPhlAnSGB_202307 -o profiled_metagenome.txt
[WARNING] Failed to launch x86-64-v3 version, staying with default
[WARNING] Failed to launch x86-64-v3 version, staying with default
[WARNING] Failed to launch x86-64-v3 version, staying with default
[WARNING] Failed to launch x86-64-v3 version, staying with default
WARNING: The metagenome profile contains clades that represent multiple species merged into a single representant.
An additional column listing the merged species is added to the MetaPhlAn output.
And checking the humann example, I have:
$ humann -i examples/demo.fastq.gz -o examples/SAMPLE2 --threads 16 --protein-database humann3_db/uniref --nucleotide-database humann3_db/chocophlan --metaphlan-options "–bowtie2db humann3_db/metaphlan_db_vJun23 -x mpa_vJun23_CHOCOPhlAnSGB_202307"
Output files will be written to: /rsrch6/home/hema_bio-Malignan/fdarbaniyan/Neeraj/HUMANN/examples/SAMPLE2
Decompressing gzipped file ...
CRITICAL ERROR: Can not call software version for metaphlan
Apparently, metaphlan and humann are still not connected.