# Optimizing taxonomy assignment to reduce unassigned ITS reads

**URL:** https://forum.qiime2.org/t/optimizing-taxonomy-assignment-to-reduce-unassigned-its-reads/22249
**Category:** User Support
**Tags:** taxonomy, feature-classifier, its, fungi, unite
**Created:** [February 21, 2022, 12:46pm UTC](https://forum.qiime2.org/t/optimizing-taxonomy-assignment-to-reduce-unassigned-its-reads/22249 "2022-02-21T12:46:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [February 22, 2022, 2:17am UTC](https://forum.qiime2.org/t/optimizing-taxonomy-assignment-to-reduce-unassigned-its-reads/22249/2 "2022-02-22T02:17:28Z")

</div>

Hello Sonja,

What a great first post! There's a lot of discuss here, so let's dive in! 🤿

* * *

I think you are doing all the right things. From choosing pairing settings to preserve as many reads as possible, to reviewing the docs and looking for past questions on the forums. Validating results is essential, and I think you are doing a great job.

> [@Sonja](#):
>
> side question: does cutadapt also find partial matches at the 3' end? The help function only says "partial matches allowed" for the 5' end - i.e. something like sequencesequencePRIM instead of sequencesequencePRIMER

This depends on what combination of settings you use. If you want to post your command, we can take a look at exactly what it's doing. You already found the [q2-cutadapt](https://docs.qiime2.org/2022.2/plugins/available/cutadapt/trim-paired/) docs, so also check out the full Cutadapt docs that have a section about using [`anywhere` to allow partial matches on boths ends](https://cutadapt.readthedocs.io/en/stable/guide.html#allowing-partial-matches-at-both-ends).

> [@Sonja](#):
>
> As there are a lot of unassigned sequences, I searched for the problem in this forum and found two things to improve, using the untrimmed developer dataset of the database and also use the dataset that also includes non-fungi eukaryotes (12h).

Nice!

Could you post the full `classify-consensus-vsearch` command that you ran? As discussed [here](https://forum.qiime2.org/t/classify-consensus-vsearch-high-number-of-unassigned-features/2291/3), there's a bunch of settings within that pipeline that could change/improve results.

> [@Sonja](#):
>
> Do you think I could identify more sequences if I used a trained classifier instead of vsearch? Roughly, how much longer would that take to run?

It's worth a shot.

Training the classifier takes the most time, but running them is pretty fast. I made some [pre-trained UNITE classifiers](https://github.com/colinbrislawn/unite-train/releases/tag/8.3-qiime2-2021.11-demo) if you want to running them. Those have not been tested _at all_, so I don't know if they would perform better or worse than classify-consensus-vsearch.

You should totally try ITSxpress! It is designed with amplicons / metabarcoding in mind, so it should be a good fit for your data. If there are issues with trimming / region-extraction or joining, it could also help.

* * *

Or maybe, these results are good to go!

> [@Sonja](#):
>
> I got very few unassigned sequences (1-2%) in my other dataset of 16S sequences, I think I'm not doing it totally wrong. 😃

Oh, I've see than with Fungi too! While having a sample with 50% unassigned reads is unexpected with a classic 16S V4 dataset, your samples look pretty good for fungi, given that the ITS region varies more in length and the databases tend to be less complete.

My main concern when seeing a lot of unassigned reads is that something (extra barcodes, reversed reads, bad joining, etc.) is messing up my whole data set, and I don't think that's happening here. It might even be something as simple as those pretty high max Expected Error rates ( `--p-max-ee-f 3 --p-max-ee-r 5`) that let some extra noise through your dada2 step.

> [@Sonja](#):
>
> Blasting some of the unidentified sequences in NCBI gave results like "uncultured fungus", but some also more specific results (both fungi and other kingdoms).

A blast search is a great way to check on the classification results! That sounds like those reads may just be 'unclassifiable.'

Without a mock community of known composition to use as a positive control, I'm not sure if this is a technical problem or just a limit of our labels for fungi. 🤷

(Do you have a positive control of known composition? 🧪 == 📊)

Colin

P.S. Welcome to the forums!

> **P.P.S.**
>
> > [@Sonja](#):
> >
> > But I guess combining UNITE and NCBI databases as reference would lead to impracticable runtimes.
> 
> Building a database is a sisyphean task. Probably best to avoid that 🙃

---

_[View the full topic](https://forum.qiime2.org/t/optimizing-taxonomy-assignment-to-reduce-unassigned-its-reads/22249)._
