Hi,
I have been having some issues with converting the taxonomy.qza artifact into a qiime2 visualizer after taxonomy has been assigned using the following command:
There was an issue with viewing the artifact taxonomy.qza as QIIME 2 Metadata:
An error message comes up which is pasted below:
CategoricalMetadataColumn does not support values with leading or trailing whitespace characters. Column ‘Taxon’ has the following value: 'D_0__Bacteria;D_1__Bacteroidetes;D_2__Ignavibacteria;D_3__OPB56;D_4__uncultured bacterium ’
I think the issues is whitespace in the taxonomy.qza. How should this be rectified?
I agree, I think you do have a white space in your taxonomy. Im wondering how you got there, though. Could you describe how you got to the taxonomy artefact?
If you’re getting the same error, the same solution should work: you need to remove the white spaces. I dont have additional context to know where they’re coming in, so its hard to diagnos further.
Hi, I am having the same problem following training a new classifier for 16S V3V4 using the Silva database.
The full code to create and train the classifier is below. When testing the classifier I get an error as follows: -
There was an issue with viewing the artifact 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__Firmicutes;D_2__Bacilli;D_3__Lactobacillales;D_4__Carnobacteriaceae;D_5__Alloiococcus;D_6__bacterium '
Code to train create and train classifier: -
#Training feature classifiers with q2-feature-classifier
I’m not sure where the white spaces are coming into your reference files! Its been a while since I trained a silva classifier, but I would use your favorite text editor to find and remove the white spaces there, train the classifier, and then go forward.