# taxonomy db problem

**URL:** <https://forum.qiime2.org/t/taxonomy-db-problem/21834>\
**Category:** User Support\
**Created:** [January 10, 2022, 7:58am UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834 "2022-01-10T07:58:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinseung](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@shinseung](https://forum.qiime2.org/u/shinseung)\
**Post date:** [January 10, 2022, 7:58am UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834/1 "2022-01-10T07:58:28Z")

</div>

Hello

I imported the database and ran vsearch.

Most of the taxonomy only comes up to "d\_\_bacteria".

There is no "d\_\_bacteria" in my database, starting at the phylum level.

Is there a separate format for the database import tsv file?

thank you.

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/8/8de3ede730b1cbe747d68566e78e2e183a39e42c.png)

---

<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:** [January 12, 2022, 1:02am UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834/2 "2022-01-12T01:02:34Z")

</div>

Helllo @shinseung,

Welcome back to the forums.

Can you post the full command you ran? I think that would help clarify what the vsearch plugin has done.

---

<div class="post-metadata">

**Author:** ![shinseung](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@shinseung](https://forum.qiime2.org/u/shinseung)\
**Post date:** [January 12, 2022, 12:10pm UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834/3 "2022-01-12T12:10:02Z")

</div>

Thank you for answer.

After editing the taxonomy file, some taxonomy names were correct.

The taxonomy txt file in the database has been imported into QIIME2, but there seems to be a problem with the format.

But still some come out as "d\_\_Bacteria".

Is there a way to validate the taxonomy file?

There seems to be an invisible tab.

thank you.

---

<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:** [January 12, 2022, 3:09pm UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834/4 "2022-01-12T15:09:46Z")

</div>

OK.

Can you post

- the command you ran to import the database
- the vsearch command you ran
- the first few lines of the database file before import

> [@shinseung](#):
>
> Is there a way to validate the taxonomy file?

It's a tab separated values file (TSV), but other than that I'm not sure we have a stand-alone validator. The RESCRIPt plugin does provide a lot of functionality. Check out this section of the tutorial about [editing taxonomy](https://forum.qiime2.org/t/processing-filtering-and-evaluating-the-silva-database-and-other-reference-sequence-data-with-rescript/15494#heading--sixteenth-header).

---

<div class="post-metadata">

**Author:** ![shinseung](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@shinseung](https://forum.qiime2.org/u/shinseung)\
**Post date:** [January 12, 2022, 3:45pm UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834/5 "2022-01-12T15:45:51Z")

</div>

The database is customized.

My guess is that the taxonomy format of gtdb is the problem.

'-' or '#' goes into the feature id.

Of course, only "d\_Bacteria" came out when vsearch was performed after importing and removing - and #.

The gtdb taxonomy file was created by extracting the header of the fasta file.

Attach the taxonomy file.

thank you.[add.txt](https://forum.qiime2.org/uploads/short-url/cFVpj5T1SZL6pdrz2UunFhdDEK.txt) (4.8 MB)

---

<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:** [January 12, 2022, 3:53pm UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834/6 "2022-01-12T15:53:31Z")

</div>

When we see cases in which most of the reads are poorly taxonomically assigned, it is likely that your sequences are not in the same orientation as the reference database. Here are a few threads that may help:

> [@Lots of Unassigned reads](https://forum.qiime2.org/t/lots-of-unassigned-reads/12061/3):
>
> Welcome to the forum @victoriamesa! The 50% unassigned is a pretty clear indicator: your reads are probably in mixed orientations. The classify-sklearn method currently only supports classification of sequences that are in a single orientation. However, the classify-consensus-vsearch method can classify mixed orientation reads just fine. Could you give that method a try and let us know what you see? Thanks! But @sixvable is also correct: Even though this is probably not what is causing this…

> [@Improving taxonomic classification](https://forum.qiime2.org/t/improving-taxonomic-classification/19820):
>
> Hello everyone, My colleagues and I are doing the analysis of some low biomass samples with Qiime 2 (v2021.4). It's the first time that we do a microbiota analysis and we have found some strange results. In our Feature table we have a total of 56 samples, 4 commercial mock community replicas and some negative control samples. We have trained the classifier with the SILVA database following the instructions described in "Moving Pictures" and "Parkinson's Mouse" tutorials and then we have taxonom…

> [@Host DNA or incorrect classifer workflow leading to high percentages just domain level classification](https://forum.qiime2.org/t/host-dna-or-incorrect-classifer-workflow-leading-to-high-percentages-just-domain-level-classification/20747/2):
>
> Hi @David_Bradshaw, I think much of what you have looks fine. Just a couple comments / suggestions: EDIT (05/22/2023): If you are running qiime rescript get-silva-data, there is no need to run the above command, as get-silva-data runs this for you behind the scenes. My mistake, this command should be run. I'd avoid removing Eukaryotes. A good classifier will contain a bunch of "outgroup" taxa. That is you should want to identify Eukaryotes, or any other "bad" items. Otherwise, Eukaryotic se…

> [@shinseung](#):
>
> There is no "d\_\_bacteria" in my database, starting at the phylum level.

When it is not possible to achieve an exact or near-hit to any of the reference sequences, the classifier will return the Lowest Common Ancestor (LCA) taxonomy of similar sequences.

-Cheers!  
-Mike

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [February 12, 2022, 9:54pm UTC](https://forum.qiime2.org/t/taxonomy-db-problem/21834/7 "2022-02-12T21:54:09Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
