# Diamond version error

**URL:** https://forum.biobakery.org/t/diamond-version-error/1241
**Category:** HUMAnN
**Created:** [November 9, 2020, 12:14pm UTC](https://forum.biobakery.org/t/diamond-version-error/1241 "2020-11-09T12:14:04Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![alienzj](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/alienzj/32/70_2.png) [@alienzj](https://forum.biobakery.org/u/alienzj)
#### Post date: [November 9, 2020, 12:14pm UTC](https://forum.biobakery.org/t/diamond-version-error/1241/1 "2020-11-09T12:14:04Z")

</div>

Hello, I use install HUMAnN by:

```auto
conda install -c biobakery humann

```

Then download database.

When I run HUMAnN, I see:

```auto
11/09/2020 05:41:50 PM - humann.utilities - DEBUG: Check software, diamond, for required version, 0.9.24
11/09/2020 05:41:50 PM - humann.utilities - CRITICAL: Can not call software version for diamond

```

Information:

```auto
$ diamond --version
diamond version 2.0.4

$ diamond dbinfo --db uniref90_201901.dmnd
diamond v2.0.4.142 (C) Max Planck Society for the Advancement of Science
Documentation, support and updates available at http://www.diamondsearch.org

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

$ diamond getseq -d uniref90_201901.dmnd | rg "^>" | wc -l
87296736

```

From this,  
[https://github.com/biobakery/conda-biobakery/blob/master/recipes/humann/meta.yaml#L49](https://github.com/biobakery/conda-biobakery/blob/master/recipes/humann/meta.yaml#L49),

I think diamond meets the version requirements.

Any help ? Thanks very much.

---

<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: [November 9, 2020, 8:18pm UTC](https://forum.biobakery.org/t/diamond-version-error/1241/2 "2020-11-09T20:18:38Z")

</div>

Hello, Thank you for the detailed post and sorry for any confusion. HUMAnN is compatible with diamond version 0.9.24 but not yet with the latest diamond v2. If you would roll back your diamond version it should resolve the errors you are seeing.

Thank you,  
Lauren

---

<div class="post-metadata">

### Author: ![alienzj](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/alienzj/32/70_2.png) [@alienzj](https://forum.biobakery.org/u/alienzj)
#### Post date: [November 10, 2020, 3:19am UTC](https://forum.biobakery.org/t/diamond-version-error/1241/3 "2020-11-10T03:19:46Z")

</div>

Thanks very much. Solved.

---

<div class="post-metadata">

### Author: ![Keyanchu](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@Keyanchu](https://forum.biobakery.org/u/Keyanchu)
#### Post date: [December 13, 2020, 5:18am UTC](https://forum.biobakery.org/t/diamond-version-error/1241/4 "2020-12-13T05:18:26Z")

</div>

I have questions when using humann2  
It showed  
"Running diamond …

Aligning to reference database: uniref90\_annotated.1.1.dmnd

CRITICAL ERROR: Error executing: /gpfs/share/home/1901111783/miniconda2/envs/humann2/bin/diamond blastx --query /gpfs/share/home/1901111783/meta/temp/p136C\_humann2\_temp/p136C\_bowtie2\_unaligned.fa --evalue 1.0 --threads 1 --max-target-seqs 20 --outfmt 6 --db /gpfs/share/home/1701111743/db/humann2/uniref/uniref90\_annotated.1.1 --out /gpfs/share/home/1901111783/meta/temp/p136C\_humann2\_temp/tmpmcMUXV/diamond\_m8\_UmaiPA --tmpdir /gpfs/share/home/1901111783/meta/temp/p136C\_humann2\_temp/tmpmcMUXV

"  
" Error message returned from diamond :  
diamond v0.8.36.98 | by Benjamin Buchfink [buchfink@gmail.com](mailto:buchfink@gmail.com)  
Check [http://github.com/bbuchfink/diamond](http://github.com/bbuchfink/diamond) for updates."

It seems that the diamond version is not right. However, I checked the diamond version requirement in website. It is ok when diamond version is from 0.8.22 to 0.9. My diamond version is right, my diamond version is 0.8.36.98, but the error say my diamond needs updates. I am very confused about this error. Thanks for your help!!

---

<div class="post-metadata">

### Author: ![BinhongLiu](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/binhongliu/32/714_2.png) [@BinhongLiu](https://forum.biobakery.org/u/BinhongLiu)
#### Post date: [April 11, 2021, 2:15am UTC](https://forum.biobakery.org/t/diamond-version-error/1241/5 "2021-04-11T02:15:34Z")

</div>

The same error as yours. But I’ve not found a solution for it

---

<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 12, 2021, 8:27pm UTC](https://forum.biobakery.org/t/diamond-version-error/1241/6 "2021-04-12T20:27:32Z")

</div>

Hello, Sorry for the slow response. You are right that HUMAnN v2 expects those diamond versions listed. HUMAnN checks the diamond version at the beginning and will issue a warning if the version does not match that expected. Did you see a warning message? It looks like from your post the error is during the diamond run. Does the diamond message include more information and if so can you post? Sorry again for the slow reply.

Thank you,  
Lauren

---

<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 12, 2021, 8:28pm UTC](https://forum.biobakery.org/t/diamond-version-error/1241/7 "2021-04-12T20:28:20Z")

</div>

Hello, Can you provide more information about the error that you see? If you could include the error output from diamond that would be great.

Thank you,  
Lauren

---

<div class="post-metadata">

### Author: ![YikeShen](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/yikeshen/32/866_2.png) [@YikeShen](https://forum.biobakery.org/u/YikeShen)
#### Post date: [May 12, 2021, 1:43am UTC](https://forum.biobakery.org/t/diamond-version-error/1241/8 "2021-05-12T01:43:41Z")

</div>

Hello Lauren,  
I have came across similar error message too. Looks like diamond 0.9.24 is not compatible with humann3.  
not sure what shall I do…  
Thanks!  
Yike

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/biobakery/original/1X/b5dd895c98e23cfdcd7d0ac193ec05960b247c32.png)

---

<div class="post-metadata">

### Author: ![rbrewster](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rbrewster](https://forum.biobakery.org/u/rbrewster)
#### Post date: [May 14, 2021, 11:29am UTC](https://forum.biobakery.org/t/diamond-version-error/1241/9 "2021-05-14T11:29:27Z")

</div>

I am also having issues when running humann. My specific error is:

```
humann --input 6070_08-30-17_1.fq.gz --output /labs/asbhatt/rbrewster/gvhd/humann3/

WARNING: Can not call software version for bowtie2

CRITICAL ERROR: Can not call software version for diamond

```

This was returned when trying both diamond versions 0.9.24 and 0.9.36. Interestingly, the UniRef90 database seems to only be compatible with version 0.9.36. Thanks in advance for any support you can provide!

---

<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: [June 3, 2021, 8:59pm UTC](https://forum.biobakery.org/t/diamond-version-error/1241/10 "2021-06-03T20:59:59Z")

</div>

Sorry for the late reply - this feels like a separate issue: something is preventing HUMAnN from calling (e.g.) `bowtie2 --version` during testing. Are you able to execute that command from a terminal? If so, what does it return?

---

<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: [June 24, 2021, 10:30pm UTC](https://forum.biobakery.org/t/diamond-version-error/1241/11 "2021-06-24T22:30:46Z")

</div>

Hi @YikeShen , Thank you for the detailed error message. If you upgrade your diamond install to v0.9.36 it should resolve the error you are seeing.

Thank you,  
Lauren
