# Taxonomy file has lines not in sequences file

**URL:** https://forum.qiime2.org/t/taxonomy-file-has-lines-not-in-sequences-file/24512
**Category:** User Support
**Created:** [October 21, 2022, 5:24pm UTC](https://forum.qiime2.org/t/taxonomy-file-has-lines-not-in-sequences-file/24512 "2022-10-21T17:24:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![John](https://forum.qiime2.org/user_avatar/forum.qiime2.org/john/32/158_2.png) [@John](https://forum.qiime2.org/u/John)
#### Post date: [October 21, 2022, 5:24pm UTC](https://forum.qiime2.org/t/taxonomy-file-has-lines-not-in-sequences-file/24512/1 "2022-10-21T17:24:05Z")

</div>

Hello,

I passed a large database containing the entire ITS region through ITSx to isolate the ITS2 region. The process generated an ITS2 file that is missing some of the original fasta lines because it did not find the region. I have a taxonomy file that corresponds to the original database, which of course contains all the entries before filtering. Is it OK that the taxonomy file contains entries that are not in the corresponding sequences file? If not, is there a tool to do this or will I have to write a script to match and remove?

John

---

<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: [October 23, 2022, 4:12am UTC](https://forum.qiime2.org/t/taxonomy-file-has-lines-not-in-sequences-file/24512/2 "2022-10-23T04:12:08Z")

</div>

Hi @John ,

> [@John](#):
>
> Is it OK that the taxonomy file contains entries that are not in the corresponding sequences file?

Yes this is not a problem (and is quite typical, actually, after filtering out sequences for one reason or another). The extra lines in the taxonomy will just be ignored by most actions.

If you ever run into a situation where the taxonomy and sequences must match exactly (there are a few rare actions that require this), you can use RESCRIPt to filter your taxonomy as shown in this tutorial (see the `filter-taxa` action):

> [@Using RESCRIPt to compile sequence databases and taxonomy classifiers from NCBI Genbank](https://forum.qiime2.org/t/using-rescript-to-compile-sequence-databases-and-taxonomy-classifiers-from-ncbi-genbank/15947#creating-a-classifier-from-refseqs-data-4):
>
> This tutorial will describe how to create custom reference databases from NCBI Genbank using [RESCRIPt](https://github.com/bokulich-lab/RESCRIPt). Read more about RESCRIPt here: [Processing, filtering, and evaluating the SILVA database (and other reference sequence data) with RESCRIPt - #7](https://forum.qiime2.org/t/processing-filtering-and-evaluating-reference-sequence-data-with-rescript/15494/7) If using NCBI Genbank data, please be aware of the [NCBI disclaimer and copyright notice](https://www.ncbi.nlm.nih.gov/home/about/policies/). Citation: If you use RESCRIPt or any RESCRIPt-processed data in your research, please cite the following pre-print: Michael S Robeson II, Devon R O'Rourke, Benj…

---

<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: [November 23, 2022, 10:12am UTC](https://forum.qiime2.org/t/taxonomy-file-has-lines-not-in-sequences-file/24512/3 "2022-11-23T10:12:53Z")

</div>

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