# feature-classifier classify-sklearn fails silently with no output

**URL:** <https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370>\
**Category:** Technical Support\
**Tags:** feature-classifier\
**Created:** [September 10, 2024, 9:30pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370 "2024-09-10T21:30:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [September 10, 2024, 9:30pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/1 "2024-09-10T21:30:36Z")

</div>

Here's the code block I'm running:

```sh
! conda activate qiime2-amplicon-2024.5
# GTDB:
! qiime feature-classifier classify-sklearn \
  --i-classifier dbs/gtdb_classifier_r220.qza \
  --i-reads results_analysis2/dada2_f240_r240/representative_sequences.qza \
  --o-classification results_analysis2/dada2_f240_r240/taxonomy_gtdb_classifier_r220.qza \
  --p-read-orientation 'same' \
  --p-n-jobs 1 \
  --verbose
! qiime tools peek results_analysis2/dada2_f240_r240/taxonomy_gtdb_classifier_r220.qza

```

This give me the error:

> (1/1) Invalid value for 'ARTIFACT/VISUALIZATION': File  
> 'results\_analysis2/dada2\_f240\_r240/taxonomy\_gtdb\_classifier\_r220.qza' does  
> not exist.

That's from the final line, as `feature-classifier classify-sklearn` fails to save the file and fails to throw an error.

I feel like I'm missing something here. Am I missing a \ or - somewhere? Is --verbose broken for this plugin?

---

<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:** [September 10, 2024, 10:04pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/2 "2024-09-10T22:04:02Z")

</div>

Hey @colinbrislawn!

That's really weird that it's failing silently 🤨 Can you DM me your classifier file and I'll try to repro on my machine?

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [September 10, 2024, 10:16pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/3 "2024-09-10T22:16:43Z")

</div>

It's [gtdb\_classifier\_r220.qza](https://data.qiime2.org/classifiers/sklearn-1.4.2/gtdb/gtdb_classifier_r220.qza) from [https://resources.qiime2.org/](https://resources.qiime2.org/)

```sh
sha256sum dbs/gtdb_classifier_r220.qza 
07aadcf7472d9cc6f853f6b4615348619f1a3eceb56c1fb1b6d8dbb20554765f dbs/gtdb_classifier_r220.qza

```

Should I share my dada2 representative\_sequences.qza?

This is running on a Digital Ocean VM, in a Jupyter notebook, served by VS Code.  
I may be using the wrong conda env or python kernel or something...

---

<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:** [September 10, 2024, 10:25pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/4 "2024-09-10T22:25:27Z")

</div>

Whoops sorry, yes could you share your `rep_seqs` with me? 😅

I don't know... the error handling should be the same, regardless of the machine or your version of conda. If I can't repro on my machine, maybe I can try to set up a similar configuration to yours and see what happens!

---

<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:** [September 10, 2024, 10:47pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/6 "2024-09-10T22:47:29Z")

</div>



---

<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:** [September 11, 2024, 6:12pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/7 "2024-09-11T18:12:21Z")

</div>

Hey @colinbrislawn,

Okay so I had to run this twice (both times I included the `--verbose` flag) - on my first try, I used your rep seqs and the direct link you provided to the classifier, and that failed. I received the following CLI error:

```auto
 (1/1) Invalid value for '--i-classifier': colinb-gtdb_classifier_r220.qza is
  not a QIIME archive.

```

I confirmed this by running `qiime tools validate` on that file, which gave me the same output.

I then ran it a second time (also with your rep seqs) and downloaded the classifier directly from the resources page - and that was successful in ~3 mins.

I'm wondering if the CLI errors are somehow being masked on your machine... let's have you try a couple of things:

1. Try running any command with a missing required parameter, and see if that also fails silently.
2. Try running `qiime tools validate` on the classifier file you've been using - I know you got it from our resources page, but I'm wondering if the file was somehow corrupted when you downloaded it.

We'll get to the bottom of this! 🤓

---

<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:** [September 11, 2024, 6:12pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/8 "2024-09-11T18:12:26Z")

</div>



---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [September 11, 2024, 7:46pm UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/11 "2024-09-11T19:46:19Z")

</div>

The issue appears to be

1. lack of memory, causing the job to be 'killed'
2. poor Jupyter Notebook support, in which tasks killed by the OS look the same as finished tasks (yes, this is a [known issue](https://discourse.jupyter.org/t/i-cant-figure-out-why-my-script-stops/7273))

I'll get a machine with more RAM!

---

<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:** [October 13, 2024, 2:17am UTC](https://forum.qiime2.org/t/feature-classifier-classify-sklearn-fails-silently-with-no-output/31370/14 "2024-10-13T02:17:33Z")

</div>

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