# High percentage of unassigned reads (metagenomics)

**URL:** https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388
**Category:** General Discussion
**Created:** [July 3, 2025, 7:03am UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388 "2025-07-03T07:03:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [July 3, 2025, 7:03am UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388/1 "2025-07-03T07:03:21Z")

</div>

Hi all,

I am working on the pig fecal samples that were sequenced with shotgun approach (metagenomic samples).  
My pipeline included:

- QC
- Host DNA removal
- Import to Qiime2
- Taxonomy annotation with Kraken2 (moshpit) vs "nt" database, confidence 0

As the result, I still have a lot of reads that are unassigned to any taxa. I suspect that there are a lot of DNA from feed / contamination / residual DNA of the host that are still not annotated. My questions:

- Do you have experience with similar samples?
- Is it normal to have so high percentages of unassigned reads?
- Are there any things I missed in the pipeline?

Example figure:

 ![MG_Kits_domains_croped](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/3/e/3e26bf6744761cc78f1ed91129da4707968fdc0e.png)

Best,  
Timur

---

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [July 3, 2025, 1:44pm UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388/2 "2025-07-03T13:44:12Z")

</div>

Hi @timanix,

I also have some experience with feral pig shotgun metagenomics work. Sadly nothing came of it and it never saw the light of day. But I had similar issues...

I will say that when it comes to host removal I find that being more broad helps. For example, as we describe [here](https://moshpit.qiime2.org/en/latest/chapters/01_filtering/host-filtering.html#multiple-host-read-removal), it is best to use a pangenome if one exists, or use a suite of related reference genomes. I often take the approach of removing as much mammalian DNA as I can. For example, when analyzing rat microbiome data, I removed reads that mapped to: rat, mouse, pig, chimp, human (taking the output from one filtering step and using as input into the next filtering step, in that order), then proceeded to my analyses. You may want to look at the ingredients of the feed, and also remove associated genomes, like corn, wheat, etc... That will help you figure out what these unassigned reads are.

Assuming, you are interested in microbes, and not diet items, this should help quite a bit. If you are looking for diet items, which is what we were trying to do at the time... I could not remove all mammalian reads, as feral pigs are known to eat animals, and we wanted to detect those...

-Cheers!  
-Mike

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [July 3, 2025, 1:59pm UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388/3 "2025-07-03T13:59:42Z")

</div>

Hi @SoilRotifer  
Thank you for the reply!

> [@SoilRotifer](#):
>
> For example, as we describe [here](https://moshpit.qiime2.org/en/latest/chapters/01_filtering/host-filtering.html#multiple-host-read-removal), it is best to use a pangenome if one exists, or use a suite of related reference genomes.

Yes, I tried to remove host DNA by providing several genomes. Kraken2 with nt db still detected a small portion of reads assigned to pigs.

> [@SoilRotifer](#):
>
> I often take the approach of removing as much mammalian DNA as I can.

I ended up keeping only bacterial reads for diversity metrics and DA tests. I then constructed MAGs and obtained some strangely annotated MAGs, which are likely not of bacterial origin. So I removed all non-bacterial MAGs before functional annotations.

> [@SoilRotifer](#):
>
> You may want to look at the ingredients of the food pellets and also remove associated genomes, like corn, wheat, etc... That will help you figure out what these unassigned reads are.

Genomes from the feed were also already added by me to the host removal step.

> [@SoilRotifer](#):
>
> Assuming, you are interested in microbes, and not diet items, this should help quite a bit. If you are looking for diet items, which is what we were trying to do at the time... I could not remove all mammalian reads, as feral pigs are known to eat animals, and we wanted to detect those...

Sounds like an amazing investigation!  
Luckily for me, I am primarily interested in the bacterial community.

My steps that I took to deal with the issue:

- Remove all non-bacterial reads before diversity metrics and DA tests
- Remove non-bacterial MAGs before functional annotation

Thank you again for answering this topic. It appears that it is normal to have high amounts of unassigned reads with pig feces.

Best,  
Timur

---

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [July 3, 2025, 2:12pm UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388/4 "2025-07-03T14:12:51Z")

</div>

It seems like you are already on the right track. 🙂

I was recently advised to also try using GTDBtk for the MAGs. My understanding is that Kraken is better for identifying short reads and not MAGs. 🤷‍♂️ Perhaps others have experience with this phenomenon?

I am currently working on a dataset were the majority of my MAGs were unclassified with Kraken. I am currently validating the results with GTDBtk, by feeding the MAG fasta files to GTDBtk.

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [July 3, 2025, 2:17pm UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388/5 "2025-07-03T14:17:46Z")

</div>

> [@SoilRotifer](#):
>
> It seems like you are already on the right track. 🙂

Great! 🙂

> [@SoilRotifer](#):
>
> I was recently advised to also try using GTDBtk for the MAGs. My understanding is that Kraken is better for identifying short reads and not MAGs. 🤷‍♂️ Perhaps others have experience with this phenomenon?

I also heard the same!

> [@SoilRotifer](#):
>
> I am currently working on a dataset were the majority of my MAGs were unclassified with Kraken. I am currently validating the results with GTDBtk, by feeding the MAG fasta files to GTDBtk.

It was in my to-do list... Please share with me if you get big differences. I am using Kraken2 for both reads and MAGs just to keep the same taxonomy, but I had the same idea to check

---

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [July 3, 2025, 2:28pm UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388/6 "2025-07-03T14:28:34Z")

</div>

> [@timanix](#):
>
> It was in my to-do list... Please share with me if you get big differences. I am using Kraken2 for both reads and MAGs just to keep the same taxonomy, but I had the same idea to check

I just looked at my results. I was able to classify (only including MAGs that have a at least a phylum-level classification for Bacteria), 257 MAGs with Kraken and 369 MAGs with GTDBtk.

-Mike

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [July 3, 2025, 2:30pm UTC](https://forum.qiime2.org/t/high-percentage-of-unassigned-reads-metagenomics/33388/7 "2025-07-03T14:30:29Z")

</div>

That is a striking difference!  
Thank you for the update.
