make qiime2 2026.4 compatible with classifiers made with Sklearn Version 1.4.2?

Hello, I upgraded my qiime version to 2026.4 and downloaded the latest qza classifiers from SILVA 138.2. When i tried to run the command qiime feature-classifier classify-sklearn i got the error 'The scikit-learn version (1.4.2) used to generate this artifact does not match the current version of scikit-learn installed (1.7.1). Please retrain your classifier for your current deployment to prevent data-corruption errors'.

I have got around the error by clonning the qiime 2026.4 version into a new environment and then forcing the installation of 1.4.2, which i am aware is a 'dirty' solution that can create many incompatibilities. Hence, my question is: is there any other elegant way of running the 'qiime feature-classifier classify-sklearn command' -e.g. a fixy in the command options to run scikit-learn with a specific version, that does not require building the classifiers ourselves but actually using the resources already available?

Just checking that I am not missing something

Hi @Carla_Perez_Mon,

The best approach would be to follow the general approach outlined here to construct your own classifier.

You can choose which steps you'd like to keep/skip and the order in which you lke to run them. For example, if I want to make an amplicon specific classifier (you do not have to; but it does help if you do not have enough memory on your machine to construct a classifier) I often follow this approach.

1 Like

Hi @Carla_Perez_Mon,

We are expecting to have the trained SILVA classifiers soon. I will try to circle back to this thread when they are available.

Thanks!

3 Likes

Hello!
I trained the Silva 138.2 (full-length) classifier a week ago for 2026.4. if you want to use it, you can download it here: classifiers.

If you need the sequences and taxonomy files, they're in the DB_files folder. Full-length classifier can be found in the q2_26-4 directory.

5 Likes