# QIIME 2 has no plugin/command named 'feature-classifier'.

**URL:** https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293
**Category:** Library Support
**Created:** [January 23, 2023, 8:29pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293 "2023-01-23T20:29:48Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![turtle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/turtle/32/14698_2.png) [@turtle](https://forum.qiime2.org/u/turtle)
#### Post date: [January 23, 2023, 8:29pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/1 "2023-01-23T20:29:48Z")

</div>

I'm trying to run the following command to use feature-classifier in fondue, but having the error mentioned in the screenshot.

```auto
conda install --override-channels -c defaults scikit-learn=0.21.2

```

**Error image**

 ![Screenshot from 2023-01-24 02-15-52](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/2/278a8bc464cc2fec94d0c62a1efffccf8a17ffaa.png)

Can anyone suggest that what's the problem here?

I also tried to install python2.7 in my ubuntu virtual OS. And this is shown as the install pythone version in my ubuntu virtual.

 ![Screenshot from 2023-01-24 02-25-49](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/9/9b58fcd257226eae081bb5e42a5b87f2db6454f9.png)

I guess this means that python version in not switched to 2.7. It still is in 3.9.12, Isn't it?  
But how can I set python2.7 as my default python version?  
Or, if I'm still missing the point of error what should I do to use this feature classifier? Please help...

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [January 25, 2023, 5:45pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/2 "2023-01-25T17:45:46Z")

</div>

Hi @turtle,

Is there a reason you're trying to specify the scikit-learn version for this environment?

In order to use q2-feature-classifier as well as q2-fondue, you should follow these instructions for installing q2-fondue within a QIIME 2 conda environment:  
[https://github.com/bokulich-lab/q2-fondue#option-2-install-fondue-within-existing-qiime-2-environment](https://github.com/bokulich-lab/q2-fondue#option-2-install-fondue-within-existing-qiime-2-environment)

I would recommend starting fresh, and running `conda clean --all` if you've already tried installing these packages from scratch.

Cheers 🦎

---

<div class="post-metadata">

### Author: ![turtle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/turtle/32/14698_2.png) [@turtle](https://forum.qiime2.org/u/turtle)
#### Post date: [February 1, 2023, 10:47am UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/3 "2023-02-01T10:47:42Z")

</div>

Hi @lizgehret,  
I tried a clean start and install q2-fondue in a QIIME environment and then I run the following code. Which shows another error.

```auto
   qiime feature-classifier classify-sklearn \
  --i-reads fondue-output/rep_seq.qza \
  --i-classifier silva-132-99-515-806-nb-classifier.qza \
  --o-classification fondue-output/taxonomy.qza

```

**Error**

 ![classifier error](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/8/87fea6f4e4e7640066e9e8127ae00b66fa949cbc.png)

**Debug info saved in /tmp/qiime2-q2cli-err-p09a8wss.log is below**

 ![debug info](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/f9567306384b2ccabcc68ca94c5c6ae58ddbb4d5.png)

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [February 1, 2023, 3:52pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/4 "2023-02-01T15:52:46Z")

</div>

Hi @turtle,

Thanks for sharing those details! Here's what I suspect is going on - you had scikit-learn installed at a version of 0.21.2 when you ran q2-fondue to generate your `rep_seq.qza` file. Now you're attempting to run feature-classifier within your new QIIME 2 environment, which uses a newer version of scikit-learn (0.24.1). The short answer here is you'll need to re-run your q2-fondue command in your current environment to make sure you are using the same version of scikit learn for both commands.

Cheers 🦎

---

<div class="post-metadata">

### Author: ![turtle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/turtle/32/14698_2.png) [@turtle](https://forum.qiime2.org/u/turtle)
#### Post date: [February 1, 2023, 6:46pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/5 "2023-02-01T18:46:25Z")

</div>

> [@turtle](#):
>
> ```auto
> 
> ```

@lizgehret you mean I need to run the fondue command to recreate rep\_seq.qza file?  
I tried this but it doesn't work. Can you please be a little bit specific? like which code shoul I run or which command should I run in terminal?

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [February 1, 2023, 6:59pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/6 "2023-02-01T18:59:04Z")

</div>

> [@turtle](#):
>
> @lizgehret you mean I need to run the fondue command to recreate rep\_seq.qza file?

Yes, you'll need to re-run the command you ran in q2-fondue to create the `rep_seq.qza` file in this new conda environment. I don't know what command you ran in q2-fondue to create that file, so I can't advise on that - but it should just be the same thing that you already ran the first time you created that artifact.

If this doesn't work, please include details with your exact command along with the error message you are receiving, otherwise it's hard to say where things are going sideways.

Cheers 🦎

---

<div class="post-metadata">

### Author: ![turtle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/turtle/32/14698_2.png) [@turtle](https://forum.qiime2.org/u/turtle)
#### Post date: [February 2, 2023, 3:12pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/7 "2023-02-02T15:12:51Z")

</div>

Dear @lizgehret,

First I run the following commands

```auto
conda install mamba -n base -c conda-forge

```

```auto
conda activate qiime2-2022.11
mamba install -y \
   -c https://packages.qiime2.org/qiime2/2022.11/tested/ \
   -c conda-forge -c bioconda -c defaults \
   q2-fondue

```

```auto
qiime dev refresh-cache
qiime fondue --help

```

```auto
vdb-config -i

```

And then I run the following command to creat the rep\_seq.qza file,

```auto
qiime dada2 denoise-paired \
   --i-demultiplexed-seqs fondue-output/paired_reads.qza \
   --p-trunc-len-f 182 \
   --p-trunc-len-r 136 \
   --p-trim-left-f 19 \
   --p-trim-left-r 18 \
   --p-trunc-q 2 \
   --o-table fondue-output/dada2_table.qza \
   --o-representative-sequences fondue-output/rep_seq.qza \
   --o-denoising-stats fondue-output/dada2_stats.qza

```

Here is the files which I created by this command  
[dada2\_table.qza](https://forum.qiime2.org/uploads/short-url/9yrWl5PhCZa6n0dBZiCwWQEkJ0k.qza) (131.6 KB)  
[rep\_seq.qza](https://forum.qiime2.org/uploads/short-url/pIYC92F01tDTinUissPQfhm1v17.qza) (136.4 KB)  
[dada2\_table.qza](https://forum.qiime2.org/uploads/short-url/9yrWl5PhCZa6n0dBZiCwWQEkJ0k.qza) (131.6 KB)

And then I run the following command to assign the taxonomy,

```auto
qiime feature-classifier classify-sklearn \
  --i-reads fondue-output/rep_seq.qza \
  --i-classifier silva-132-99-515-806-nb-classifier.qza \
  --o-classification fondue-output/taxonomy.qza

```

The classifier I used is, [Silva 138 99% OTUs from 515F/806R region of sequences](https://data.qiime2.org/2022.11/common/silva-138-99-515-806-nb-classifier.qza)

But error showing after running the code is ,

 ![debug info 2](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/4/44b443aaca205aa8b5335ffc3cdfc533f496d965.png)

I guess that's all you need to know to help me. 🥺

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [February 2, 2023, 4:20pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/8 "2023-02-02T16:20:00Z")

</div>



---

<div class="post-metadata">

### Author: ![turtle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/turtle/32/14698_2.png) [@turtle](https://forum.qiime2.org/u/turtle)
#### Post date: [February 5, 2023, 11:03am UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/9 "2023-02-05T11:03:44Z")

</div>

@lizgehret or anyone can you guys help me out? 🥺

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [February 6, 2023, 5:37pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/11 "2023-02-06T17:37:23Z")

</div>

Good morning,

Please [be patient](https://forum.qiime2.org/t/faq-guidelines/5#patience) with us. Remember that this forum is a free service and we are all helping as best as we can.

It looks like there is still a version difference between the sklearn version installed, and what was used to make that silva classifier. Try downloading a matching silva classifier from here: [Data resources — QIIME 2 2022.11.1 documentation](https://docs.qiime2.org/2022.11/data-resources/)

---

<div class="post-metadata">

### Author: ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)
#### Post date: [February 6, 2023, 5:37pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/12 "2023-02-06T17:37:29Z")

</div>



---

<div class="post-metadata">

### Author: ![turtle](https://forum.qiime2.org/user_avatar/forum.qiime2.org/turtle/32/14698_2.png) [@turtle](https://forum.qiime2.org/u/turtle)
#### Post date: [February 6, 2023, 5:57pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/13 "2023-02-06T17:57:16Z")

</div>

Thank you @lizgehret,  
Sorry for my impatient 😥  
This works for the [Greengenes 13\_8 99% OTUs full-length sequences](https://data.qiime2.org/2022.11/common/gg-13-8-99-nb-classifier.qza) 💚  
Thank you....

---

<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: [March 9, 2023, 11:57pm UTC](https://forum.qiime2.org/t/qiime-2-has-no-plugin-command-named-feature-classifier/25293/14 "2023-03-09T23:57:26Z")

</div>

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