# Error with HUMANnN 3.0 and diamond version

**URL:** <https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029>\
**Category:** HUMAnN\
**Created:** [September 15, 2020, 8:56pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029 "2020-09-15T20:56:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadelbe](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sadelbe](https://forum.biobakery.org/u/sadelbe)\
**Post date:** [September 15, 2020, 8:56pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029/1 "2020-09-15T20:56:35Z")

</div>

Hello,

I just installed HUMAnN 3.0 and get an error when I try to run it:

CRITICAL ERROR: Please update diamond from version 0.8.22 to version 0.9.24

I check my diamond db info:  
$ diamond dbinfo --db uniref90\_201901.dmnd  
diamond v2.0.4.142 © Max Planck Society for the Advancement of Science  
Documentation, support and updates available at [http://www.diamondsearch.org](http://www.diamondsearch.org)

Database format version = 2  
Diamond build = 125  
Sequences = 87296736  
Letters = 29247941583

What do I need to do to fix this?

Thank you,  
Sophie

---

<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:** [September 25, 2020, 7:50pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029/2 "2020-09-25T19:50:16Z")

</div>

Hi Sophie, Thanks for the detailed post. It looks like you might have a diamond version installed that is not compatible with the HUMAnN version. If you would install diamond v0.9.24 it should match the version expected by HUMAnN and resolve the error message.

Thank you,  
Lauren

---

<div class="post-metadata">

**Author:** ![sadelbe](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sadelbe](https://forum.biobakery.org/u/sadelbe)\
**Post date:** [September 28, 2020, 2:54pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029/3 "2020-09-28T14:54:15Z")

</div>

Hello Lauren,

I downgraded to v0.9.24 and I am now getting the error  
CRITICAL ERROR: Please update diamond from version 0.8.22 to version 0.9.24

However when I check my diamond version:  
$ diamond dbinfo --db uniref90\_201901.dmnd  
diamond v0.9.24.125 | by Benjamin Buchfink [buchfink@gmail.com](mailto:buchfink@gmail.com)  
Licensed under the GNU GPL [https://www.gnu.org/licenses/gpl.txt](https://www.gnu.org/licenses/gpl.txt)  
Check [http://github.com/bbuchfink/diamond](http://github.com/bbuchfink/diamond) for updates.

Database format version = 2  
Diamond build = 125  
Sequences = 87296736  
Letters = 29247941583

Any ideas?

Thanks,  
Sophie

---

<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:** [September 28, 2020, 7:04pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029/4 "2020-09-28T19:04:04Z")

</div>

Hi Sophie - Thank you for the detailed follow up and sorry you are still seeing the error. Can you run “$ diamond --version” and see what it prints out? If that also lists “v0.9.24” can you double check you don’t have two versions of diamond installed and maybe HUMAnN is selecting the older version? If so you can run HUMAnN with the option “–diamond \<full\_path\_to\_directory\_with\_exe\>” to point HUMAnN to the diamond executable that you would like to run with.

Thank you,  
Lauren

---

<div class="post-metadata">

**Author:** ![sadelbe](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sadelbe](https://forum.biobakery.org/u/sadelbe)\
**Post date:** [September 29, 2020, 1:46pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029/5 "2020-09-29T13:46:56Z")

</div>

When I run “$ diamond --version” I get “diamond version 0.9.24”

When I try running humann specifying the path to diamond:  
$ ~/anaconda3/envs/biobakery3/bin/humann -i ./merged/d11\_1901Seekatz24\_12.fa -o ./humann\_out --output-basename d11\_1901Seekatz24 --diamond ~/anaconda3/envs/biobakery3/bin/diamond

I still get this output:  
CRITICAL ERROR: Please update diamond from version 0.8.22 to version 0.9.24

---

<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:** [September 29, 2020, 7:30pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029/6 "2020-09-29T19:30:52Z")

</div>

Hello, Thanks for the additional information. Would you try again with the path to the diamond executable folder instead of the full executable path (so use “–diamond ~/anaconda3/envs/biobakery3/bin/”)? Sorry it is a little confusing but HUMAnN expects the folder with the executable instead of the full executable path. If you still see the error I wonder if the diamond version output is slightly different then expected by HUMAnN like is the case for some of the bowtie2 conda installs. If you still see the error after rerunning with the change, if you would post the full contents of running “$ diamond --version” along with how you installed diamond that would be great.

Thank you,  
Lauren

---

<div class="post-metadata">

**Author:** ![sadelbe](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sadelbe](https://forum.biobakery.org/u/sadelbe)\
**Post date:** [September 30, 2020, 1:05pm UTC](https://forum.biobakery.org/t/error-with-humannn-3-0-and-diamond-version/1029/7 "2020-09-30T13:05:27Z")

</div>

Thank you so much for your help, Lauren. Your last suggestion of using “–diamond ~/anaconda3/envs/biobakery3/bin/” is working so far!
