# ValueError: Feature IDs found in the table are missing from the taxonomy

**URL:** <https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232>\
**Category:** User Support\
**Created:** [July 25, 2018, 12:11pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232 "2018-07-25T12:11:22Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt\_rogers](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@matt\_rogers](https://forum.qiime2.org/u/matt_rogers)\
**Post date:** [July 25, 2018, 12:11pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/1 "2018-07-25T12:11:22Z")

</div>

Hi,  
I'm using the June 2018 release of QIIME2 and I'm having a problem I didn't have with previous versions. I'm doing a community analysis of environmental samples taken at different time points and trying to merge the analyses together after sampling and sequencing. I've previously done this by importing the new sequences, demultiplexing, denoising with DADA2, using sklearn to assign taxonomy (Silva128 release) and then merging the feature tables and taxonomy tables.  
When trying to add my latest batch of sequences to the previously merged data set, I can merge and filter the feature table (remove singletons) and merge the taxonomies as before with no problem, but when I try to generate the barplot (qiime taxa barplot) I get the value error indicated in the subject line.  
I've gone back and repeated the merge step from my previous analyses (that worked before) and got the same error, so I wonder if something has changed in the new version that I'm missing?  
I've used the same feature classifier for all of the taxonomy assignations to try to avoid messing around with the feature id's but that strategy seems to have failed 🙂

I've attached the merged and filtered feature table as well as the merged taxonomy and screen shot of the error message.

 ![error_message](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/9/9d22d270825d65982c809683686c58070cf0bc8e.png)  
[July2018-merged-sklearn\_taxonomy\_silva128-97\_515-806.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/0/0ed764486a874e85af886c0f8157e5ca2cf91e32.qza) (672.5 KB)  
[July2018-merged-table-no-singletons.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/2/26e46ece4ce778c10c5478d6e3ded9a585693ba7.qza) (684.0 KB)

Thanks for any help or advice you have!

Also - for those of us that can't make it ISME this year, it'd be great to have a workshop in Asia some time in 2018!!!

---

<div class="post-metadata">

**Author:** ![matt\_rogers](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@matt\_rogers](https://forum.qiime2.org/u/matt_rogers)\
**Post date:** [July 25, 2018, 12:11pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/2 "2018-07-25T12:11:24Z")

</div>

Hi Again,

My last one is still pending so if you have a way to push these together on your system, then you should do that 🙂  
I've rolled back to the 04-2018 release and this problem disappears. Same commands, same input files. I'm guessing something has gone a bit haywire in the new release where this feature

> Fixed a UX bug by improving error transparency in the collapse method. Users are now notified if the Feature IDs in their FeatureTable[Frequency] are missing from their FeatureData[Taxonomy]. Thanks

Was added that it's not just notifying me, it's throwing an error and stopping the script.  
Is there a way around this?  
Thanks!

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [July 26, 2018, 2:21pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/7 "2018-07-26T14:21:44Z")

</div>

Hey there @matt_rogers!

> [@matt\_rogers](#):
>
> Was added that it’s not just notifying me, it’s throwing an error and stopping the script.

This is the intended behavior --- this missing ID situation is a problem --- previous versions of q2-taxa silently ignored this condition, now we are raising the warning and stopping execution. Its a problem because the old behavior was removing features that were in your table, but not in your taxonomy, which could be misleading when interpreting data.

> [@matt\_rogers](#):
>
> I’ve rolled back to the 04-2018 release and this problem disappears.

I would recommend sticking with the latest and greatest. As I mentioned above, this warning message is not a bug, it is warning you that you have mismatched feature IDs.

> [@matt\_rogers](#):
>
> Is there a way around this?

Yep, [filter](https://docs.qiime2.org/2018.6/tutorials/filtering/) those missing features out of your feature table. In particular, you can provide your taxonomy artifact as metadata when [performing ID-based filtering](https://docs.qiime2.org/2018.6/tutorials/filtering/#identifier-based-filtering):

```bash
qiime feature-table filter-features \
  --i-table table.qza \
  --m-metadata-file taxonomy.qza \
  --o-filtered-table id-filtered-table.qza

```

Hope that helps! 🦖 :qiime2:

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [July 26, 2018, 2:21pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/8 "2018-07-26T14:21:46Z")

</div>



---

<div class="post-metadata">

**Author:** ![matt\_rogers](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@matt\_rogers](https://forum.qiime2.org/u/matt_rogers)\
**Post date:** [July 27, 2018, 2:21am UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/9 "2018-07-27T02:21:52Z")

</div>

Hi! Thanks so much @thermokarst!

I've filtered the feature table using the taxonomy as you described and this error has gone away. When I look at the new feature table artifact I can see that 1882 features are present in the unfiltered table and not in the filtered table.

Just to make sure I understand why I need this step:

1. When I merge feature tables and taxonomies from different runs not necessarily all of the features in the merged table are present in the merged taxonomy.
2. I need to remove those features from the frequency table because otherwise the output from anything I do that requires both the frequency table and taxonomy artifacts (e.g. the barplot) won't necessarily match up with outputs from things I do with the feature table artifact alone (e.g. alpha diversity) because there are features in the frequency table that aren't in the taxonomy.
3. So I suppose that it only makes sense to perform this filtering step before doing any of the core metrics, etc. on the feature table so that everything is calculated using the same set of features.

Thanks so much for your help. You mods do an excellent job on this forum. Now if only there was a workshop somewhere in East Asia - Singapore and Hong Kong are nice almost every time of the year 😉 -

You can close this topic; thanks again!

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [July 27, 2018, 4:17am UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/10 "2018-07-27T04:17:35Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 2, 2018, 1:21pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/11 "2018-08-02T13:21:02Z")

</div>

> [@matt\_rogers](#):
>
> When I merge feature tables and taxonomies from different runs not necessarily all of the features in the merged table are present in the merged taxonomy.

I am not sure I understand the question - how are you "merging taxonomy"? When I am merging multiple runs, I do that first, then do taxonomic assignment --- the resulting taxonomy has exactly one entry per feature in the table/seqs.

> [@matt\_rogers](#):
>
> I need to remove those features from the frequency table because otherwise the output from anything I do that requires both the frequency table and taxonomy artifacts (e.g. the barplot) won’t necessarily match up with outputs from things I do with the feature table artifact alone (e.g. alpha diversity) because there are features in the frequency table that aren’t in the taxonomy.

👍

> [@matt\_rogers](#):
>
> Now if only there was a workshop somewhere in East Asia

Talk to your institution, we teach QIIME 2 workshops worldwide. For more info, check out this link:

> **[Official QIIME workshops](https://github.com/biocore/qiime/wiki/Official-QIIME-workshops)**
>
> Official QIIME 1 software repository. QIIME 2 (https://qiime2.org) has succeeded QIIME 1 as of January 2018. - biocore/qiime

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 2, 2018, 1:21pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/12 "2018-08-02T13:21:43Z")

</div>



---

<div class="post-metadata">

**Author:** ![matt\_rogers](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@matt\_rogers](https://forum.qiime2.org/u/matt_rogers)\
**Post date:** [August 3, 2018, 3:31am UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/13 "2018-08-03T03:31:04Z")

</div>

I merge taxonomies with "qiime feature-table merge-taxa" because if I try to assign taxonomy on the merged feature table my machine hangs or memories out ☹ I'm already trying to use this as a lever to get my PI to buy me a new machine 🤞

I think most of the feature discrepancies between the feature table and the taxonomy arise from table curation (singletons removal, etc), but there are definitely some features that are present in the merged feature table that are not present in the taxonomy. I'm not quite sure how this happens. Here is the merged feature table (without curation), the merged taxonomy and the error log. I assigned these taxa to the DADA2 output with an sklearn classifier trained on the Silva128 database and then merged with qiime-feature-table merge with the following commands:

> qiime feature-table merge   
> --i-tables /home/matt/Desktop/community\_analyses/combined\_watersheds/July2018/2018-07-table-dada2.qza   
> --i-tables /home/matt/Desktop/community\_analyses/combined\_watersheds/Feb2018/2018-02-table-dada2.qza   
> --i-tables /home/matt/Desktop/community\_analyses/combined\_watersheds/May2018/2018-05-table-dada2.qza   
> --i-tables /home/matt/Desktop/community\_analyses/combined\_watersheds/Dec2017/2017-12\_table-dada2.qza   
> --i-tables /home/matt/Desktop/community\_analyses/combined\_watersheds/Feb2017/2017-02-table-dada2.qza   
> --i-tables /home/matt/Desktop/community\_analyses/combined\_watersheds/Oct2016/2016-10-table-dada2.qza   
> --p-overlap-method sum   
> --o-merged-table merged-table.qza  
> qiime feature-table merge-taxa   
> --i-data /home/matt/Desktop/community\_analyses/combined\_watersheds/Oct2016/2016-10-sklearn\_taxonomy\_silva128-97\_515-806-new.qza   
> --i-data /home/matt/Desktop/community\_analyses/combined\_watersheds/Feb2017/2017-02-sklearn\_taxonomy\_silva128-97\_515-806-new.qza   
> --i-data /home/matt/Desktop/community\_analyses/combined\_watersheds/Dec2017/2017-12-sklearn\_taxonomy\_silva128-97\_515-806.qza   
> --i-data /home/matt/Desktop/community\_analyses/combined\_watersheds/Feb2017/2017-02-sklearn\_taxonomy\_silva128-97\_515-806-new.qza   
> --i-data /home/matt/Desktop/community\_analyses/combined\_watersheds/May2018/2018-05-sklearn\_taxonomy\_silva128-97\_515-806-new.qza   
> --i-data /home/matt/Desktop/community\_analyses/combined\_watersheds/July2018/2018-07-sklearn\_taxonomy\_silva128-97\_515-806-new.qza   
> --o-merged-data merged-sklearn\_taxonomy\_silva128-97\_515-806.qza  
> qiime taxa barplot   
> --i-table merged-table.qza   
> --i-taxonomy merged-sklearn\_taxonomy\_silva128-97\_515-806.qza   
> --m-metadata-file /home/matt/Desktop/community\_analyses/combined\_watersheds/merged/July2018-merged-map.tsv   
> --o-visualization merged-sklearn-taxonomy-table.qzv

The barplot is where the error occurs, as before. I know how to fix this problem now but it is a bit of a mystery to me where these features are coming from.

I've used the "sum" on the feature table merge because there is one sample that was rerun. In my actual analysis I've omitted that sample before merging the feature tables, but I wanted to run everything here with the original outputs.

If you have some ideas about where those features are coming from, I'd be grateful to hear them. But if you're busy with other people's actual problems don't worry about it since you've already solved mine 👏

[qiime2-q2cli-err-ro6tti4u.txt](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/3/310f326331627400bdd19d00b0b88370b2543a1b.txt) (72.2 KB)

[merged-sklearn\_taxonomy\_silva128-97\_515-806.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/6/6032b1400668baee6b5d46dabcaa2a565cd5359a.qza) (672.5 KB)  
[merged-table.qza](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/8/81cead0f7cff65261c6845022e4d5c2468989c05.qza) (892.9 KB)

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 3, 2018, 4:25am UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/14 "2018-08-03T04:25:19Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 6, 2018, 10:35pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/18 "2018-08-06T22:35:08Z")

</div>

Hey there @matt_rogers!

Thanks for sharing some data, that is super helpful --- honestly I have no clue what is wrong, and something isn't quite adding up here. Would you be willing to share the rep-seqs outputs from DADA2, too? You can send in a DM to me if you don't want to share publicly. These should be 5 `FeatureData[Sequence]` Artifacts with the following UUIDs:

- `5290cf7e-4e94-4b86-bed5-1b61218529ce`
- `e09ed347-0920-4e94-a6e1-f96582e8ffa1`
- `10eab8f1-b0d6-4fdc-a07e-cda750c627a0`
- `b5dc90b5-1b72-44fa-b091-467459a33892`
- `a415d117-916a-4e2a-a134-7c80af04fd64`

You can check an Artifact's UUID by running `qiime tools peek` on it.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 6, 2018, 10:35pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/19 "2018-08-06T22:35:28Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 13, 2018, 12:12pm UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/20 "2018-08-13T12:12:24Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 15, 2018, 4:08am UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/22 "2018-08-15T04:08:38Z")

</div>

Thanks for following up with more data in a DM, @matt_rogers!

As you pointed out in your DM, the artifact with UUID `3b05cddb-75a2-4636-8889-cca97589ba59` was merged twice, on accident:

 ![24%20PM](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/8/8d410fed7fa6ca3017369286ceb1025dd5508a65.png)

So, that would explain why there were missing features in your taxonomy! Phew, glad you figured this one out - I was sweating over here 😅

🦖

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [August 15, 2018, 4:08am UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/23 "2018-08-15T04:08:41Z")

</div>



---

<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:** [September 15, 2018, 10:19am UTC](https://forum.qiime2.org/t/valueerror-feature-ids-found-in-the-table-are-missing-from-the-taxonomy/5232/24 "2018-09-15T10:19:54Z")

</div>

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