# ERROR: Test the classifier, metadata tabulate

**URL:** https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892
**Category:** User Support
**Created:** [May 22, 2019, 2:01am UTC](https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892 "2019-05-22T02:01:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Grace1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@Grace1](https://forum.qiime2.org/u/Grace1)
#### Post date: [May 22, 2019, 2:01am UTC](https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892/1 "2019-05-22T02:01:24Z")

</div>

Hi there,

I'm currently in the stage of the QIIME pipeline where I am 'testing my 16S classifier'. I'm using 515F 806R primers and Silva 132 (99). I have used this pipeline before without any problems so unsure where the error is coming from.

I've just run this code to transform the resultant taxonomy file from .qza to .qzv (I use a HPC):  
qiime metadata tabulate   
--m-input-file /export/home/f-k/galmoaji/CH2/CH2\_taxonomy.qza   
--o-visualization /export/home/f-k/galmoaji/CH2/CH2\_taxonomy.qzv

But I got this error:  
There was an issue with viewing the artifact /export/home/f-k/galmoaji/CH2/CH2\_taxonomy.qza as QIIME 2 Metadata:  
CategoricalMetadataColumn does not support values with leading or trailing whitespace characters. Column 'Taxon' has the following value: 'D\_0\_\_Bacteria;D\_1\_\_Planctomycetes;D\_2\_\_Phycisphaerae;D\_3\_\_Phycisphaerales;D\_4\_\_Phycisphaeraceae;D\_5\_\_uncultured;D\_6\_\_uncultured bacterium '

I'm not sure what the error means, and as I said before I've used this pipeline and method before with no problems so no sure what to do.

Any help would be greatly appreciated!

Thanks  
Grace ☀

---

<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: [May 22, 2019, 4:24am UTC](https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892/2 "2019-05-22T04:24:51Z")

</div>

Hi!  
Here the commands to fix it

> [@Taxonomy analysis error](https://forum.qiime2.org/t/taxonomy-analysis-error/8429/3):
>
> Hi! I found on this forum and a little changed this way to fix it: !qiime feature-classifier classify-sklearn \ --i-classifier training-feature-classifiers/classifier.qza \ --i-reads rep-seqs.qza \ --o-classification taxonomy.qza !qiime tools export \ --input-path taxonomy.qza \ --output-path taxonomy-with-spaces !qiime metadata tabulate \ --m-input-file taxonomy-with-spaces/taxonomy.tsv \ --o-visualization taxonomy-as-metadata.qzv !qiime tools export \ --input-path taxonomy-a…

---

<div class="post-metadata">

### Author: ![Grace1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@Grace1](https://forum.qiime2.org/u/Grace1)
#### Post date: [May 22, 2019, 10:46pm UTC](https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892/3 "2019-05-22T22:46:17Z")

</div>

Thanks for that! I will give that a go.

Just having a look at the code:  
The first metadata tabulate code  
!qiime metadata tabulate   
--m-input-file taxonomy-with-spaces/taxonomy.tsv   
--o-visualization taxonomy-as-metadata.qzv

Where does the taxonomy.tsv file come from? is that my own metadata file or the taxonomy file from Silva?

I was also wondering if the ! are needed?

Thanks 🙂

Grace

---

<div class="post-metadata">

### Author: ![Grace1](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@Grace1](https://forum.qiime2.org/u/Grace1)
#### Post date: [May 23, 2019, 12:33am UTC](https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892/4 "2019-05-23T00:33:30Z")

</div>

Hi @timanix,

The code worked!

Thanks very much!

Got some great taxa barplots now 🙂

Grace

---

<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: [May 23, 2019, 4:27am UTC](https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892/5 "2019-05-23T04:27:06Z")

</div>

I guess, you already figured out everything by your own, sorry for the late answer.  
'!' - they are not necessary if you are working from the terminal. I copied it from Jupyter Notebook.  
Good luck with further analysis

---

<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: [June 23, 2019, 10:41am UTC](https://forum.qiime2.org/t/error-test-the-classifier-metadata-tabulate/9892/6 "2019-06-23T10:41:12Z")

</div>

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