# Getting HUMAnN2 and MetaPhlAn2 to run together

**URL:** <https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288>\
**Category:** HUMAnN\
**Created:** [March 16, 2020, 3:25pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288 "2020-03-16T15:25:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![azhang2](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@azhang2](https://forum.biobakery.org/u/azhang2)\
**Post date:** [March 16, 2020, 3:25pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288/1 "2020-03-16T15:25:52Z")

</div>

Hi, I’m trying to get functional profiles for my microbiome dataset using HUMAnN2.

I installed MetaPhlAn2 v2.9 and HUMAnN2 v2.8.1 but ran into this issue:

> ERROR: The MetaPhlAn2 taxonomic profile was generated with the CHOCOPhlAn\_201901 database. HUMANn2 is not yet compatible with this database. Please run with the legacy MetaPhlAn2 database. Also keep an eye out for HUMAnN2 v2.9 which will be compatible with the latest MetaPhlAn2 v2.9 database.

I tried installing MetaPhlAn2 v2.6, however when I tried using the example data, I got this error:

> No MetaPhlAn BowTie2 database found [–bowtie2db option]! (or wrong path provided).
> 
> Expecting location ${mpa\_dir}/db\_v20/map\_v20\_m200
> 
> Exiting…

I checked the bin directory and there was no directory call “db\_v20”. Is there anyway I can download the bowtie indices myself? I noticed with MetaPhlAn2 v2.9, the bowtie indices were generated automatically but they weren’t with MetaPhlAn v2.6.

Ultimately, I just want to be able to use HUMAnN2. Is there any other way I can get HUMAnN2 and MetaPhlAn2 to work together?

Thank you!

---

<div class="post-metadata">

**Author:** ![franzosa](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/franzosa/32/3511_2.png) [@franzosa](https://forum.biobakery.org/u/franzosa)\
**Post date:** [April 1, 2020, 3:52pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288/2 "2020-04-01T15:52:12Z")

</div>

Sorry for the delay. You’re correct that HUMAnN 2.8.1 requires a version of MetaPhlAn \<2.9. However, other recent versions of MetaPhlAn (\<2.9) _should_ build their marker databases automatically. It’s possible that by uninstalling the software, removing the MetaPhlAn databases, and re-installing that everything will get hooked up correctly.

Alternatively, you can find all versions of the marker databases here for manual download (you would want the v20 versions for use with HUMAnN 2.8.1):

> **[MetaPhlAn\_databases](https://www.dropbox.com/sh/7qze7m7g9fe2xjg/AADHWzATSQcI0CNFD0sk7MAga?lst=)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![JQL](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jql/32/164_2.png) [@JQL](https://forum.biobakery.org/u/JQL)\
**Post date:** [April 6, 2020, 3:22pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288/3 "2020-04-06T15:22:52Z")

</div>

Hi,

have you got this sorted out per franzosa’s suggestion? I’m running into a similar situation . Your update will be very helpful. thank you in advance!

J.

---

<div class="post-metadata">

**Author:** ![azhang2](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@azhang2](https://forum.biobakery.org/u/azhang2)\
**Post date:** [April 6, 2020, 3:43pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288/4 "2020-04-06T15:43:33Z")

</div>

Thank for the info @franzosa! @JQL, I ended up uninstalling MetaPhlAn and HUMAnN2 and reinstalled HUMAnN2 with

```auto
conda install -c biobakery humann2

```

That way, it install HUMAnN2 with the correct version of MetaPhlAn (and all the other dependencies).

---

<div class="post-metadata">

**Author:** ![JQL](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jql/32/164_2.png) [@JQL](https://forum.biobakery.org/u/JQL)\
**Post date:** [April 6, 2020, 5:49pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288/5 "2020-04-06T17:49:16Z")

</div>

thank you for your quickly reply.

---

<div class="post-metadata">

**Author:** ![DEEPCHANDA7](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@DEEPCHANDA7](https://forum.biobakery.org/u/DEEPCHANDA7)\
**Post date:** [May 8, 2020, 1:46pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288/6 "2020-05-08T13:46:02Z")

</div>

Hi @azhang2 !!!  
which version of humann2 and metaphlan does this command installs?

---

<div class="post-metadata">

**Author:** ![azhang2](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@azhang2](https://forum.biobakery.org/u/azhang2)\
**Post date:** [May 10, 2020, 7:49pm UTC](https://forum.biobakery.org/t/getting-humann2-and-metaphlan2-to-run-together/288/7 "2020-05-10T19:49:21Z")

</div>

I think it installs metaphlan2 v2.7.7 and humann2 v2.8.1
