# Taxonomic assignations

**URL:** https://forum.qiime2.org/t/taxonomic-assignations/12561
**Category:** Ideas and Suggestions
**Created:** [November 20, 2019, 12:32pm UTC](https://forum.qiime2.org/t/taxonomic-assignations/12561 "2019-11-20T12:32:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mamunnoz](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@mamunnoz](https://forum.qiime2.org/u/mamunnoz)
#### Post date: [November 20, 2019, 12:32pm UTC](https://forum.qiime2.org/t/taxonomic-assignations/12561/1 "2019-11-20T12:32:00Z")

</div>

Doing taxonomic assignations with sklearn and a fit classifier is easy to obtain incongruencies. For example, two sequences very similar, being probably the same taxon can be classify as different taxons if one is very similar to a taxon, and the other is more similar to one in the database classified as uncultured cyanobacterium, for example or to a sequence that was bad assigned. Then they are classified as different being the same taxon. This could be improved if the classification were made based not only in the similarity to the database but also in a phylogenetic tree that groups similar ASVs.  
Another thing that help me to assign taxonomy is to compare the ASVs (or OTUs) sequences to a list of sequences obtained from cultures isolated from the studied place. is it possible to do these with any of the pluggins implemented in qiiime2?, if not, it will usefull

---

<div class="post-metadata">

### Author: ![jwdebelius](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jwdebelius/32/9655_2.png) [@jwdebelius](https://forum.qiime2.org/u/jwdebelius)
#### Post date: [November 20, 2019, 12:36pm UTC](https://forum.qiime2.org/t/taxonomic-assignations/12561/2 "2019-11-20T12:36:42Z")

</div>

Hi @mamunnoz,

Have you looked at the [qiime library](https://library.qiime2.org/)? Specifically [q2-clawback](https://library.qiime2.org/plugins/q2-clawback/7/) and [q2-fragment-insertion](https://library.qiime2.org/plugins/q2-fragment-insertion/16/)? Have you looked at the [other methods of feature classification](https://docs.qiime2.org/2019.10/plugins/available/feature-classifier/) like consensus blast?

Best,  
Justine

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [November 20, 2019, 3:45pm UTC](https://forum.qiime2.org/t/taxonomic-assignations/12561/3 "2019-11-20T15:45:50Z")

</div>

> [@mamunnoz](#):
>
> For example, two sequences very similar, being probably the same taxon can be classify as different taxons if one is very similar to a taxon, and the other is more similar to one in the database classified as uncultured cyanobacterium

So in other words your classifications are only as good as your reference database. Junk in, junk out as they say. You could filter the reference database to remove these ambiguous and inaccurate classifications. Misannotations _do_ exist in the reference databases, and some have even suggested quite [high rates of misannotation](https://peerj.com/articles/5030/). Of course, cleaning that up is a monumental task, but that is where the chief issue here exists...

> [@mamunnoz](#):
>
> This could be improved if the classification were made based not only in the similarity to the database but also in a phylogenetic tree that groups similar ASVs.

Great idea! Maybe you should develop a novel method. However such a method already exists in QIIME 2 — see the experimental classifier in q2-fragment-insertion. Problem is, that classifier does a really poor job [based on our benchmarks](https://github.com/caporaso-lab/tax-credit-data/blob/master/ipynb/mock-community/evaluate-classification-accuracy.ipynb).

> [@mamunnoz](#):
>
> Another thing that help me to assign taxonomy is to compare the ASVs (or OTUs) sequences to a list of sequences obtained from cultures isolated from the studied place.

Check out q2-clawback as @jwdebelius suggested. It would be possible to compile taxonomic frequencies based on culture data and feed that to q2-clawback/q2-feature-classifier to perform the type of analysis you mention — but basing this on culture data alone would be error prone. We should discuss some more if you want to attempt to validate a new method for q2-clawback using culture data!

Hope that helps!

---

<div class="post-metadata">

### Author: ![mamunnoz](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@mamunnoz](https://forum.qiime2.org/u/mamunnoz)
#### Post date: [November 21, 2019, 9:46am UTC](https://forum.qiime2.org/t/taxonomic-assignations/12561/4 "2019-11-21T09:46:42Z")

</div>

Thank you for your help. Of course that performing taxonomic assignations basing on culture data alone would be error prone, because not all the microorganism can be cultured and a lot of them are very difficult of isolate, but this method is useful to assign part of the features very accurately and It would be interesting to use it in combination with other method. Now I do it manually (by comparing sequences), but it is time consuming and implies making the taxa plots also manually. Anyway I will try q2-clawback
