Hi,
I was trying to run the following command with my dataset:
qiime sample-classifier classify-samples
--i-table moving-pictures-table.qza
--m-metadata-file moving-pictures-sample-metadata.tsv
--m-metadata-column body-site
--p-optimize-feature-selection
--p-parameter-tuning
--p-estimator RandomForestClassifier
--p-n-estimators 20
--p-random-state 123
--output-dir moving-pictures-classifier
BUT I got following error:
Plugin error from sample-classifier:
You have chosen to predict a metadata column that contains one or more values that match only one sample. For proper stratification of data into training and test sets, each class (value) must contain at least two samples. This is a requirement for classification problems, but stratification can be disabled for regression by setting stratify=False. Alternatively, remove all samples that bear a unique class label for your chosen metadata column. Note that disabling stratification can negatively impact predictive accuracy for small data sets.
Debug info has been saved to /tmp/qiime2-q2cli-err-5tchsqkm.log
So how to fix this problem? there is no such option of stratify=False in above command. Also it is not recommended as seen from error message. The metadata column I am selecting is non-numeric category. I saw the tutorial and I think there is not any error in sample metadata file.
Please suggest.
Thanks and Regards