# Getting 67% unaligned reads with HUMANnN 3.0

**URL:** <https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891>\
**Category:** HUMAnN\
**Created:** [August 21, 2020, 9:56pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891 "2020-08-21T21:56:01Z")\
**Posts on this page:** 10\
**Page:** 1

<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:** [August 21, 2020, 9:56pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/1 "2020-08-21T21:56:01Z")

</div>

Hi @fbeghini, @franzosa !!!  
I am getting 67.78% unaligned reads with HUMAnN 3.0 after nucleotide search tier. After the translated search (against **uniref90\_ec\_filtered** database) it reduced to 63.05%.  
Is it very high amount and unlikely? If yes, what should I do?  
What is a normal range of unaligned reads for this step?

Thanks,  
DC7

---

<div class="post-metadata">

**Author:** ![BioMickWatson](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/biomickwatson/32/359_2.png) [@BioMickWatson](https://forum.biobakery.org/u/BioMickWatson)\
**Post date:** [August 25, 2020, 7:36pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/2 "2020-08-25T19:36:25Z")

</div>

What environment are your reads from?

---

<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:** [August 25, 2020, 7:37pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/3 "2020-08-25T19:37:06Z")

</div>

I am working with gut metagenome.

---

<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:** [August 28, 2020, 6:23pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/4 "2020-08-28T18:23:05Z")

</div>

That is a bit high for the gut in my experience. On a recent analysis of some gut metagenomes with HUMAnN 3 I saw ~55-75% of reads mapping to pangenomes (25-45% unmapped; IQRs).

What sequencing depth are you working with? If it’s particularly low it’s possible that many genes are failing to reach the 50% minimum coverage threshold and so their reads are treated as unmapped.

---

<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:** [August 30, 2020, 8:14am UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/5 "2020-08-30T08:14:43Z")

</div>

My files are of different size. Some are around 2 Gb and some like 4Gb around. Should I use files with same sequencing depth. Should I rarefy/normalize them before HUMAnN run? If yes, how to do that?

Thanks  
DC7

---

<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:** [September 10, 2020, 8:03pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/6 "2020-09-10T20:03:25Z")

</div>

No need to rarefy. We tend to exclude files with very low sequencing depths (where something appears to have gone wrong, e.g. \<1M reads) but otherwise you should be OK with variable depths (downstream normalization will correct for this).

---

<div class="post-metadata">

**Author:** ![erica5](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/erica5/32/962_2.png) [@erica5](https://forum.biobakery.org/u/erica5)\
**Post date:** [December 8, 2021, 7:17pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/7 "2021-12-08T19:17:06Z")

</div>

Hello, I’d like to re-open this thread because I have similarly high unmapped rates (73% unmapped after translated alignment) from mouse gut metatranscriptome data (2 x 75 bp) and am not sure how best to troubleshoot. I had poor mapping at the nucleotide alignment step (95% unaligned), so I tried loosening the nt coverage threshold to 0 and nt percent identity to 0.8, but the overall improvement was marginal (1% lower unmapped). I will try relaxing the thresholds at the translated stage, since this is where most of my reads are mapping anyway, but would love to get input as that is running. Is it typical to have the nucleotide alignment so low (just 5%)? Any other ideas to improve mapping?

For context, I used kneaddata to trim adapters and remove contaminants (rRNA, mouse) and then provided the clean, concatenated fastq file (~10GB) to humann3 with default parameters.

When I look into the final unaligned file and blast a few reads, I get mapping to:

1. 
  - genome not in chocophlan database (I suppose I can add a custom genome for coding regions, but this read also has good homology with M. intestinale which is present in the ref database)  
Muribaculum gordoncarteri: CCTTGGTTTCGCGTCCACCCCCGCCGACTGTGGCGCCTTGTTCAGACTCGCTTTCGCTTCGGCTCCGTGCGTCCTC

2. 
  - genome in reference database meeting threshold (not sure why this failed?):  
Bacillus sp.:  
TNCGTCACGGCTCAGGCTTACGACATGCGTACTTCACTACATGCCACCCTTACCGCTTGGACGCGTCACCATCTGC

3. 
  - genome in reference database but below threshold:  
Roseburia hominis: CGTACGGGTATGCTATGAACAATAGCGGCTTTTCTCGGTACATGGCATGCATGCTTCGCTACTATAAGTT  
CGCTCC

4. 
  - nothing with sig similarity (\>50% of reads ← why so many?)

I would hope to recover more of the reads belonging to the first two categories and understand why so many reads are falling into the last category.

I’ve uploaded the log file and an abbreviated version of the unaligned reads here:  
[https://transfer.lih.lu/?s=download&token=56c8d586-11ff-492c-91c8-f1acc24704b4](https://transfer.lih.lu/?s=download&token=56c8d586-11ff-492c-91c8-f1acc24704b4)

Thanks in advance for your suggestions!

---

<div class="post-metadata">

**Author:** ![erica5](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/erica5/32/962_2.png) [@erica5](https://forum.biobakery.org/u/erica5)\
**Post date:** [December 12, 2021, 7:36pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/8 "2021-12-12T19:36:47Z")

</div>

Hello all,  
Just wanted to followup on this post as (after messing around to high-heaven with the metaphlan/bowtie options) I think I’ve uncovered the culprit… I added the parameter “–add viruses” to the metaphlan options and saw that 80% of my reads are mapping to a murine astrovirus (!). In the end then, I guess I can proceed knowing I have comfortably mapped most of the bacterial transcripts… the consequence of the viral RNA in these samples is a bit outside of my scope of expertise, but super interesting and in a way satisfying to see because actually it makes some sense. I have previously run this pipeline with samples from gnotobiotic mice processed the same way and had 10% unmapped… so in the end I have the same unmapping rate for these SPF samples if I ignore the viral RNA.  
Hope this post might help others in a similar position of high unaligned reads!

---

<div class="post-metadata">

**Author:** ![Cheng\_Li](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/cheng_li/32/1283_2.png) [@Cheng\_Li](https://forum.biobakery.org/u/Cheng_Li)\
**Post date:** [May 27, 2022, 12:24am UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/9 "2022-05-27T00:24:54Z")

</div>

Hello, I have a really similar problem with this thread.

My samples are anodic biofilm samples from benthic microbial fuel cells. But I am getting over 90% of the relative abundance (after renorm) assigned to unmapped.  
[merged\_genefamilies\_EC\_unstratified\_RA.tsv](https://forum.biobakery.org/uploads/short-url/lCpNGfArRxUjKUA2FWV6W2WnJvU.tsv) (153.9 KB)

My files are mostly from 2G to 9G after BBmerge step. So seemingly depth isn’t the problem.

The code that I used is

#!/bin/bash  
source /local/cluster/all.q/humann3/activate.sh

for i in $(ls -1 \*fastq ); do  
base=${i/\_R\_cat.fastq/}  
echo “i=$i, base=$base”  
humann --input $i   
–output …/pathways/${base}   
–remove-temp-output   
–threads 16   
–nucleotide-database /nfs1/CGRB/databases/humann3/chocophlan   
–protein-database /nfs1/CGRB/databases/humann3/uniref  
done

the environment that I am running at:  
(/local/cluster/all.q/humann3) bash-4.2$ humann --version  
humann v3.0.1

Thanks for your help in advance! Any hint would be appreciated.

---

<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 28, 2022, 8:37pm UTC](https://forum.biobakery.org/t/getting-67-unaligned-reads-with-humannn-3-0/891/10 "2022-06-28T20:37:39Z")

</div>

Sorry for being slow to get caught up here. I would check out my responses in other threads about low mapping rates for additional details. As two quick summary replies here, 1) depending on how your metatranscriptomics were processed upstream of HUMAnN, you might have a lot of non-protein-coding reads RNA reads. Because HUMAnN is focused on protein-coding genes, it won’t be able to map those. 2) For environmental samples (DNA or RNA) I recommend mapping to UniRef50 rather than UniRef90. We automatically use a more relaxed homology-based search for the former which might help to improve your alignment rate.
