# Taxa barplot (Plugin error; sample IDs missing)

**URL:** https://forum.qiime2.org/t/taxa-barplot-plugin-error-sample-ids-missing/23317
**Category:** Technical Support
**Tags:** taxonomy, barplot, metadata
**Created:** [June 10, 2022, 6:17pm UTC](https://forum.qiime2.org/t/taxa-barplot-plugin-error-sample-ids-missing/23317 "2022-06-10T18:17:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Anna\_Keisha\_Boateng](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anna_keisha_boateng/32/13591_2.png) [@Anna\_Keisha\_Boateng](https://forum.qiime2.org/u/Anna_Keisha_Boateng)
#### Post date: [June 10, 2022, 6:17pm UTC](https://forum.qiime2.org/t/taxa-barplot-plugin-error-sample-ids-missing/23317/1 "2022-06-10T18:17:54Z")

</div>

Hi,

The command I ran was:  
qiime taxa barplot --i-table ARTIFACT-table.qza --i-taxonomy taxonomic-classification-ARTIFACT.qza --m-metadata-file ./META.tsv --o-visualization ARTIFACT-taxa-viz.qzv --verbose

And the error message:  
Traceback (most recent call last):  
File "/home/keishamercy/miniconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/q2cli/commands.py", line 339, in **call**  
results = action(\*\*arguments)  
File "", line 2, in barplot  
File "/home/keishamercy/miniconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 245, in bound\_callable  
outputs = self._callable\_executor_(scope, callable\_args,  
File "/home/keishamercy/miniconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/qiime2/sdk/action.py", line 453, in _callable\_executor_  
ret\_val = self.\_callable(output\_dir=temp\_dir, \*\*view\_args)  
File "/home/keishamercy/miniconda3/envs/qiime2-2022.2/lib/python3.8/site-packages/q2\_taxa/\_visualizer.py", line 35, in barplot  
raise ValueError('Sample IDs found in the table are missing in the '  
ValueError: Sample IDs found in the table are missing in the metadata: {'trorod23-5-1', 'trorod26-5-2', 'trorod1-6', 'trorod26-5-1', 'trorod31-5', 'trorod6-6-2', 'trorod21-5', 'trorod8-6', 'trorod24-5', 'trorod25-5', 'trorod29-5-2', 'trorod22-5-2', 'trorod29-5-1', 'trorod22-5-1', 'trorod7-6', 'trorod23-5-2', 'trorod6-6-1', 'trorod22-5-3', 'trorod27-5'}.

Plugin error from taxa:

Sample IDs found in the table are missing in the metadata: {'trorod23-5-1', 'trorod26-5-2', 'trorod1-6', 'trorod26-5-1', 'trorod31-5', 'trorod6-6-2', 'trorod21-5', 'trorod8-6', 'trorod24-5', 'trorod25-5', 'trorod29-5-2', 'trorod22-5-2', 'trorod29-5-1', 'trorod22-5-1', 'trorod7-6', 'trorod23-5-2', 'trorod6-6-1', 'trorod22-5-3', 'trorod27-5'}.

See above for debug info.

But when looking in the metadata file (which I created using Keemei), those samples are present.

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

So I'm not sure why I keep getting this error message, and what can be done?

BR, Anna.

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [June 10, 2022, 7:20pm UTC](https://forum.qiime2.org/t/taxa-barplot-plugin-error-sample-ids-missing/23317/2 "2022-06-10T19:20:04Z")

</div>

Hello!  
In your feature table, samples are named: 'trorod23-5-1', 'trorod26-5-2'... In metadata: 'trorod-23-5-1', 'trorod-26-5-2'... Could you try to delete one extra "-" in sample IDs in metadata and try again?

---

<div class="post-metadata">

### Author: ![Anna\_Keisha\_Boateng](https://forum.qiime2.org/user_avatar/forum.qiime2.org/anna_keisha_boateng/32/13591_2.png) [@Anna\_Keisha\_Boateng](https://forum.qiime2.org/u/Anna_Keisha_Boateng)
#### Post date: [June 10, 2022, 10:09pm UTC](https://forum.qiime2.org/t/taxa-barplot-plugin-error-sample-ids-missing/23317/3 "2022-06-10T22:09:12Z")

</div>

Thank you so much! Lol, I've been starring at the file for so long, my eyes didn't even see that extra dash. Oh, what a mistake 🫢

I tried it out, and it works. Thanks!

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [June 11, 2022, 3:30am UTC](https://forum.qiime2.org/t/taxa-barplot-plugin-error-sample-ids-missing/23317/4 "2022-06-11T03:30:43Z")

</div>

I think we all here were sitting in front of the screen facing the same error and hypnotising our metadata file at least once 🙂

---

<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: [July 12, 2022, 9:31am UTC](https://forum.qiime2.org/t/taxa-barplot-plugin-error-sample-ids-missing/23317/5 "2022-07-12T09:31:26Z")

</div>

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