# Error when running HUMAnN tutorial

**URL:** <https://forum.biobakery.org/t/error-when-running-humann-tutorial/8254>\
**Category:** HUMAnN\
**Created:** [July 14, 2025, 4:35pm UTC](https://forum.biobakery.org/t/error-when-running-humann-tutorial/8254 "2025-07-14T16:35:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tjhackmann](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@tjhackmann](https://forum.biobakery.org/u/tjhackmann)\
**Post date:** [July 25, 2025, 3:42pm UTC](https://forum.biobakery.org/t/error-when-running-humann-tutorial/8254/3 "2025-07-25T15:42:06Z")

</div>

Thank you for your response, Eric—it got me to the right answer. In case it helps other new users, here are the commands that worked for me:

# Installation

```auto
conda create --name biobakery4 python=3.12
conda activate biobakery4
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
conda config --add channels biobakery
conda install humann=4.0.0a1 metaphlan=4.1 -c biobakery
metaphlan --install --index mpa_vOct22_CHOCOPhlAnSGB_202403

```

This installs the correct version of MetaPhlAn (4.1); the one installed by default doesn’t work. It also installs the correct version of the database (mpa\_vOct22\_CHOCOPhlAnSGB\_202403).

# Running tutorial data

```auto
conda activate biobakery4
metaphlan demo.fastq.gz --input_type fastq > demo.tsv -x mpa_vOct22_CHOCOPhlAnSGB_202403 -t rel_ab_w_read_stats
humann -i demo.fastq.gz --taxonomic-profile demo.tsv --output demo

```

This runs MetaPhlAn and HUMAnN sequentially through two separate commands. They are run in a single command in the tutorial, but that didn’t work for me. It also uses the correct version of the database (mpa\_vOct22\_CHOCOPhlAnSGB\_202403).

I look forward to using MetaPhlAn and HUMAnN in a [tool](https://www.microbe-decoder.org/) my lab is developing.

---

_[View the full topic](https://forum.biobakery.org/t/error-when-running-humann-tutorial/8254)._
