# ITS fungal feature-classifier classify-sklearn error

**URL:** <https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236>\
**Category:** User Support\
**Tags:** feature-classifier, taxonomy\
**Created:** [November 10, 2023, 5:24pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236 "2023-11-10T17:24:34Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parikrama\_Sapkota](https://forum.qiime2.org/user_avatar/forum.qiime2.org/parikrama_sapkota/32/16147_2.png) [@Parikrama\_Sapkota](https://forum.qiime2.org/u/Parikrama_Sapkota)\
**Post date:** [November 10, 2023, 5:24pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/1 "2023-11-10T17:24:34Z")

</div>

**I got this error:**

Plugin error from feature-classifier:

not enough values to unpack (expected 2, got 0)

Debug info has been saved to /var/folders/b0/0dmfv10d27723sxsp8pg9\_sh0000gn/T/qiime2-q2cli-err-73e4leaa.log

**While I ran this code**  
qiime tools import   
--type ''FeatureData[Sequence]''   
--input-path /export/home/......./sh\_refs\_qiime\_ver9\_99\_s\_25.07.2023.fasta   
--output-path /export/home/......./unite-ver7-99-seqs-25.07.2023.qza

qiime tools import   
--type ''FeatureData[Taxonomy]''   
--input-path /export/home/....../sh\_taxonomy\_qiime\_ver9\_99\_s\_25.07.2023.txt   
--output-path /export/......./qiime/unite-ver7-99-tax-25.07.2023.qza

qiime feature-classifier fit-classifier-naive-bayes   
--i-reference-reads /export/home/......./unite-ver7-99-seqs-25.07.2023.qza   
--i-reference-taxonomy /export/......./unite-ver7-99-tax-25.07.2023.qza   
--o-classifier /export/home/......./unite-ver7-99-classifier-25.07.2023.qza

qiime feature-classifier classify-sklearn   
--i-classifier /export/......./unite-ver7-99-seqs-25.07.2023.qza   
--i-reads /export/......./dada2\_rep\_set\_ITS.qza   
--o-classification /export/......./qiime/taxonomy.qza

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 13, 2023, 4:37pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/2 "2023-11-13T16:37:17Z")

</div>

Hi @Parikrama_Sapkota,  
Seems like a couple of users had this same issue: [Plugin error from feature-classifier: not enough values to unpack (expected 2, got 0)](https://forum.qiime2.org/t/plugin-error-from-feature-classifier-not-enough-values-to-unpack-expected-2-got-0/3906) and [Feature Classifier - Not enough values to unpack](https://forum.qiime2.org/t/feature-classifier-not-enough-values-to-unpack/3551/)

Can you look into these post and see if it applies to your error?

Hope that helps!  
🐢

---

<div class="post-metadata">

**Author:** ![Parikrama\_Sapkota](https://forum.qiime2.org/user_avatar/forum.qiime2.org/parikrama_sapkota/32/16147_2.png) [@Parikrama\_Sapkota](https://forum.qiime2.org/u/Parikrama_Sapkota)\
**Post date:** [November 17, 2023, 5:58pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/3 "2023-11-17T17:58:22Z")

</div>

Thank you.  
According to that post, I am to look for "#" in my txt file. However, when I opened it, I see (below):

| Feature ID | Taxon |
| --- | --- |
| SH0000020.09FU\_OM972481\_reps\_singleton | k\_\_Fungi;p\_\_Basidiomycota;c\_\_Agaricomycetes;o\_\_Gomphales;f\_\_Gomphaceae;g\_\_Ramaria;s\_\_Ramaria\_sp;sh\_\_SH0000020.09FU |
| SH0000021.09FU\_KY462650\_reps\_singleton | k\_\_Fungi;p\_\_Basidiomycota;c\_\_Agaricomycetes;o\_\_Gomphales;f\_\_Gomphaceae;g\_\_Ramaria;s\_\_Ramaria\_sp;sh\_\_SH0000021.09FU |

So, I don't see "#" to change;  
Any help is appreciate to navigate this!

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 17, 2023, 6:12pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/4 "2023-11-17T18:12:39Z")

</div>

Hi @Parikrama_Sapkota,  
I don't believe that the issue, if you don't have a '#' in your file.

The first link talks about this happening when your feature ids in your rep-seqs aren't the same as the ones in your taxonomy. I think this might be what is going wrong in your case.

Please investigate the feature-ids in both your rep-seqs and taxonomy and verify they are the same!

I hope that helps!  
🐢

---

<div class="post-metadata">

**Author:** ![Parikrama\_Sapkota](https://forum.qiime2.org/user_avatar/forum.qiime2.org/parikrama_sapkota/32/16147_2.png) [@Parikrama\_Sapkota](https://forum.qiime2.org/u/Parikrama_Sapkota)\
**Post date:** [November 20, 2023, 4:43pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/5 "2023-11-20T16:43:55Z")

</div>

> [@ITS fungal feature-classifier classify-sklearn error](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/4):
>
> Hi @Parikrama_Sapkota, I don't believe that the issue, if you don't have a '#' in your file. The first link talks about this happening when your feature ids in your rep-seqs aren't the same as the ones in your taxonomy. I think this might be what is going wrong in your case. Please investigate the feature-ids in both your rep-seqs and taxonomy and verify they are the same! I hope that helps! turtle

Hi Chloe,  
would you mind explaining bit more on this, I am lost on this. I don't understand why I have to look for rep-seqs and taxonomy from my 16S while I am trying to train classifier for ITS?  
Any info is very very much appreciated!!

Sincerely,  
Pari

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 20, 2023, 6:04pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/6 "2023-11-20T18:04:33Z")

</div>

Hi @Parikrama_Sapkota,  
Can you post or DM the rep-seqs file that you are trying to classify so I can take a look at it?

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 27, 2023, 10:00pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/7 "2023-11-27T22:00:52Z")

</div>



---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 27, 2023, 10:45pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/8 "2023-11-27T22:45:58Z")

</div>

Hi @Parikrama_Sapkota

Nothing seems wrong with your rep-seqs file, so thats good! Is it possible for you to send me your classifier as well? If its too big to send, could you upload it to google drive, dropbox, etc. and share the link with me?  
Sorry, this Debugging is taking a while! I promise we will get to the bottom of it 🔍

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 27, 2023, 10:46pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/9 "2023-11-27T22:46:02Z")

</div>



---

<div class="post-metadata">

**Author:** ![Parikrama\_Sapkota](https://forum.qiime2.org/user_avatar/forum.qiime2.org/parikrama_sapkota/32/16147_2.png) [@Parikrama\_Sapkota](https://forum.qiime2.org/u/Parikrama_Sapkota)\
**Post date:** [November 28, 2023, 1:30am UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/11 "2023-11-28T01:30:40Z")

</div>

No worries. It's been slow here due to holiday seasons. Slowly but surely I believe. Thank you for your patience with me.  
Here is the link [Error](https://minersutep-my.sharepoint.com/:u:/g/personal/psapkota_miners_utep_edu/ESl1kySOOFFElnO6WC2L0wAB-08FjVAhbMX3bdFXXsM9OA?e=G3xgwi)

---

<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:** [November 28, 2023, 5:42pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/12 "2023-11-28T17:42:19Z")

</div>



---

<div class="post-metadata">

**Author:** ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)\
**Post date:** [November 28, 2023, 6:28pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/13 "2023-11-28T18:28:49Z")

</div>

Hi @Parikrama_Sapkota,

I just wanted to mention that you can follow this [RESCRIPt tutorial](https://forum.qiime2.org/t/how-to-train-a-unite-classifier-using-rescript/28285) to automatically download, curate, and train a UNITE classifier.

If you are running the latest version of QIIME 2 (2023.9), follow [these RESCRIPt install instructions](https://forum.qiime2.org/t/rescript-says-it-installed-but-i-cannot-use-it/27955/8). Otherwise, follow the instructions [here](https://github.com/bokulich-lab/RESCRIPt#option-2-install-within-qiime-2-environment).

-Cheers!  
-Mike

---

<div class="post-metadata">

**Author:** ![Parikrama\_Sapkota](https://forum.qiime2.org/user_avatar/forum.qiime2.org/parikrama_sapkota/32/16147_2.png) [@Parikrama\_Sapkota](https://forum.qiime2.org/u/Parikrama_Sapkota)\
**Post date:** [November 29, 2023, 1:39am UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/14 "2023-11-29T01:39:38Z")

</div>

thank you. I will try it and let you know.

---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 29, 2023, 2:43pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/15 "2023-11-29T14:43:02Z")

</div>



---

<div class="post-metadata">

**Author:** ![cherman2](https://forum.qiime2.org/user_avatar/forum.qiime2.org/cherman2/32/17129_2.png) [@cherman2](https://forum.qiime2.org/u/cherman2)\
**Post date:** [November 29, 2023, 2:43pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/16 "2023-11-29T14:43:35Z")

</div>



---

<div class="post-metadata">

**Author:** ![Parikrama\_Sapkota](https://forum.qiime2.org/user_avatar/forum.qiime2.org/parikrama_sapkota/32/16147_2.png) [@Parikrama\_Sapkota](https://forum.qiime2.org/u/Parikrama_Sapkota)\
**Post date:** [November 30, 2023, 8:13pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/17 "2023-11-30T20:13:49Z")

</div>

Hi @SoilRotifer

I downloaded  
conda install -c conda-forge -c bioconda -c qiime2 -c [2023.5-tested](https://packages.qiime2.org/qiime2/2023.5/tested/) -c defaults   
xmltodict 'q2-types-genomics\>2023.2' ncbi-datasets-pylib

Your installed version is: 2.17  
And also did pip install

(qiime2-2022.8) -bash-4.2$ qiime rescript get-unite-data \

> ```
> --p-version 9.0 \
> --p-taxon-group /export/home///UNITE-ALL/sh_taxonomy_qiime_ver9_97_all_25.07.2023.txt \
> --p-cluster-id /export/home///UNITE-ALL/sh_taxonomy_qiime_ver9_dynamic_all_25.07.2023.txt \
> --p-no-singletons \
> --verbose \
> --output-dir /export/home///UNITE-ALl/uniteDB
> 
> ```

Error: QIIME 2 plugin 'rescript' has no action 'get-unite-data'. Did you mean 'get-ncbi-data'?

But then I got this error?  
Why is it asking for NCBI data ?

---

<div class="post-metadata">

**Author:** ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)\
**Post date:** [November 30, 2023, 9:36pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/18 "2023-11-30T21:36:57Z")

</div>

Hi @Parikrama_Sapkota,

> [@Parikrama\_Sapkota](#):
>
> conda install -c conda-forge -c bioconda -c qiime2 -c [2023.5-tested](https://packages.qiime2.org/qiime2/2023.5/tested/) -c defaults  
> xmltodict 'q2-types-genomics\>2023.2' ncbi-datasets-pylib

What version of QIIME 2 are you running? I'd recommend using the latest version of QIIME 2 (`qiime2-amplicon-2023.9`). As I indicated previously, the install command for the latest version of QIIME 2, is slightly different than the one outlined on the github page. The forum post I linked to should help.

Also, for the conda install, if you are using `2023.9` use:

```auto
-c https://packages.qiime2.org/qiime2/2023.9/shotgun/released/ 

```

If using `2023.7`, then use:

```auto
-c https://packages.qiime2.org/qiime2/2023.7/tested/

```

If using `2023.5`

```auto
-c https://packages.qiime2.org/qiime2/2023.5/tested/

```

Sorry for the confusion, we're still working towards tidying everything. 🙂

The values you are using here:

> [@Parikrama\_Sapkota](#):
>
> ```auto
> --p-taxon-group /export/home///UNITE-ALL/sh_taxonomy_qiime_ver9_97_all_25.07.2023.txt \
> --p-cluster-id /export/home///UNITE-ALL/sh_taxonomy_qiime_ver9_dynamic_all_25.07.2023.txt \
> 
> ```

are not the appropriate values. The UNITE tutorial I linked should help you with this.

---

<div class="post-metadata">

**Author:** ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)\
**Post date:** [November 30, 2023, 9:37pm UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/19 "2023-11-30T21:37:52Z")

</div>



---

<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:** [January 1, 2024, 3:38am UTC](https://forum.qiime2.org/t/its-fungal-feature-classifier-classify-sklearn-error/28236/20 "2024-01-01T03:38:01Z")

</div>

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