# How to install Metaphlan2 legacy database

**URL:** <https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171>\
**Category:** HUMAnN\
**Created:** [January 29, 2020, 3:38pm UTC](https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171 "2020-01-29T15:38:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SonWende](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/sonwende/32/169_2.png) [@SonWende](https://forum.biobakery.org/u/SonWende)\
**Post date:** [January 29, 2020, 3:38pm UTC](https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171/1 "2020-01-29T15:38:02Z")

</div>

Hey,

i hope you can help me.  
I just installed MetaPhlAn2 and HUMAnN2 with conda in an virtual environment. This means i have now MetaPhlAn2 V2.96 and HUMAnN2 V2.8.1. Starting humann2 on a metagnome fastq file i run into this error:  
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

how and where do i get the legacy database, or do i need to downgrade to an older version of MetaPhlAn2? I couldn’t find any information on how to fix this

Thank you and best wishes  
Sonja

---

<div class="post-metadata">

**Author:** ![lauren.j.mciver](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lauren.j.mciver](https://forum.biobakery.org/u/lauren.j.mciver)\
**Post date:** [April 7, 2020, 9:45pm UTC](https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171/2 "2020-04-07T21:45:46Z")

</div>

Hello Sonja, If you downgrade to an older version of metaphlan v2 it will also install an older database. With this install change you should then be able to run humann v2.8.1.

Thank you,  
Lauren

---

<div class="post-metadata">

**Author:** ![krchhabria](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@krchhabria](https://forum.biobakery.org/u/krchhabria)\
**Post date:** [April 15, 2020, 8:37am UTC](https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171/3 "2020-04-15T08:37:23Z")

</div>

Hi! I’m a bit new to this and was wondering where exactly I can find an older version of metaphlan2 with the right databases. Will an old release from github be sufficient? Thank you so much!

-Karisma

---

<div class="post-metadata">

**Author:** ![SonWende](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/sonwende/32/169_2.png) [@SonWende](https://forum.biobakery.org/u/SonWende)\
**Post date:** [April 15, 2020, 9:22am UTC](https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171/4 "2020-04-15T09:22:37Z")

</div>

Hey,  
i installed an older Version with conda: you can list available Version with `conda search metaphlan2` and install it with `conda install metaphlan2=2.7.7` for example  
Not sure if is the best solution, but worked for me.

best wishes

---

<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 23, 2020, 12:51am UTC](https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171/5 "2020-04-23T00:51:30Z")

</div>

You can also use the `-x` flag to specify a database version, and if it’s available online MetaPhlAn will download and format it for you.

---

<div class="post-metadata">

**Author:** ![nutthawan.non](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nutthawan.non](https://forum.biobakery.org/u/nutthawan.non)\
**Post date:** [April 25, 2020, 11:45am UTC](https://forum.biobakery.org/t/how-to-install-metaphlan2-legacy-database/171/6 "2020-04-25T11:45:45Z")

</div>

Hi,  
I’m struggling with this error also.  
I used database “chocophlan.tar.gz” that downloaded from [http://huttenhower.sph.harvard.edu/humann2\_data/chocophlan/](http://huttenhower.sph.harvard.edu/humann2_data/chocophlan/)

i use Humann2 version 2.8.2  
below is more information from log file  
DATABASE SETTINGS  
nucleotide database folder = $chocophlan  
protein database folder = $uniref  
pathways database file 1 = $metacyc\_reactions\_level4ec\_only.uniref.bz2  
pathways database file 2 = $metacyc\_pathways\_structured\_filtered  
utility mapping database folder = $utility\_mapping

Thank you in advance for your help
