Hello again!
I ran into some issues while trying to extract reads to train my classifier on. I decided to train it using the whole gene sequences I gathered from the BOLD database (the sequences are COI genes from Arthropoda), which was stated in another forum post as something that might not make significant differences in output for amplicon information using COI.
However, I still seem to be goofing something! I am using the rep-seq.qza from the denoising step (one of the outputs from the DADA2 step), and the classifier I trained on the full gene sequences and the taxonomy. My concern is that one of the files might not be correctly used - or that the initial input for them wasn’t up to par.
I have checked that my rep-seq.qza comes from the DADA2 denoising step, and I have reconfirmed the formatting for the inputs in training the classifier with a colleague - and it seemed reasonable.
When I try to run the following command:
qiime feature-classifier classify-sklearn --i-classifier again_classifier.qza --i-reads Qiime_try/rep-seqs.qza --o-classification evaluated_seq.qza --verbose > log_file_paired-ends.txt
This is the error I receive:
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2cli/commands.py”, line 274, in call
results = action(**arguments)
File “</home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/decorator.py:decorator-gen-338>”, line 2, in classify_sklearn
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 231, in bound_callable
output_types, provenance)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/qiime2/sdk/action.py”, line 365, in callable_executor
output_views = self._callable(**view_args)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_feature_classifier/classifier.py”, line 212, in classify_sklearn
reads, classifier, read_orientation=read_orientation)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_feature_classifier/classifier.py”, line 169, in _autodetect_orientation
result = list(zip(*predict(first_n_reads, classifier, confidence=0.)))
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_feature_classifier/_skl.py”, line 45, in predict
for chunk in _chunks(reads, chunk_size)) for m in c)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py”, line 917, in call
if self.dispatch_one_batch(iterator):
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py”, line 759, in dispatch_one_batch
self._dispatch(tasks)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py”, line 716, in _dispatch
job = self._backend.apply_async(batch, callback=cb)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/sklearn/externals/joblib/_parallel_backends.py”, line 182, in apply_async
result = ImmediateResult(func)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/sklearn/externals/joblib/_parallel_backends.py”, line 549, in init
self.results = batch()
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py”, line 225, in call
for func, args, kwargs in self.items]
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py”, line 225, in
for func, args, kwargs in self.items]
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_feature_classifier/_skl.py”, line 52, in _predict_chunk
return _predict_chunk_with_conf(pipeline, separator, confidence, chunk)
File “/home/andreaa/miniconda3/envs/qiime2-2019.1/lib/python3.6/site-packages/q2_feature_classifier/_skl.py”, line 68, in _predict_chunk_with_conf
raise ValueError(‘this classifier does not support confidence values’)
ValueError: this classifier does not support confidence values
Plugin error from feature-classifier: this classifier does not support confidence values
See above for debug info.
A previous forum post (Classifier does not support confidence values) rectified this by adding this parameter change --p-confidence -1, but this hasn’t seemed to change my results. The issue is a repetitive one, but I think this is not sourced by the same issue as from previously asked about forum posts.