# Training silva classifiers based on NCBI taxonomy

**URL:** https://forum.qiime2.org/t/training-silva-classifiers-based-on-ncbi-taxonomy/31578
**Category:** General Discussion
**Tags:** feature-classifier, rescript
**Created:** [October 3, 2024, 5:15am UTC](https://forum.qiime2.org/t/training-silva-classifiers-based-on-ncbi-taxonomy/31578 "2024-10-03T05:15:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Chengzi](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@Chengzi](https://forum.qiime2.org/u/Chengzi)
#### Post date: [October 3, 2024, 5:15am UTC](https://forum.qiime2.org/t/training-silva-classifiers-based-on-ncbi-taxonomy/31578/1 "2024-10-03T05:15:42Z")

</div>

I want to train my classifier using the SILVA database based on the NCBI taxonomy, I have tried a few times using RESCRIPt but come across many problems, so I think maybe the file I have chosen is wrong.

I go to the SILVA v138.2 archive to get the following taxonomy files:

- SILVA\_138.2\_SSURef\_Nr99---tax\_ncbi-species.txt
- SILVA\_138.2\_SSURef\_Nr99---taxmap\_ncbi.txt
- tax\_slv\_ssu\_138.2.tre  
The sequence file:
- SILVA\_138.2\_SSURef\_NR99\_tax\_silva\_trunc.fasta

Has anyone tried this before? (EMP 515F-806R)

---

<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: [October 3, 2024, 2:47pm UTC](https://forum.qiime2.org/t/training-silva-classifiers-based-on-ncbi-taxonomy/31578/2 "2024-10-03T14:47:58Z")

</div>

Hi @Chengzi,

Can you provide the commands you are running. Also, if you want to make use of `silva v 138.2` you'll can do one of the following:

- Download and process the `138.2` files manually as outlined [here](https://forum.qiime2.org/t/processing-filtering-and-evaluating-the-silva-database-and-other-reference-sequence-data-with-rescript/15494#getting-silva-data-hard-mode-4). Click on the drop menu "The gritty details". This allows you to grab SILVA versions that have not yet been added to RESCRIPt `get-silva-data` plugin action. Just update the version numbers of the file names.
- Alternatively, you can simply install the github version of RESCRIPt. ⚠ _Note, this may not always work as this is often tied to the QIIME 2 development cycle. Meaning that the current RESCRIPt code in GitHub may or may not be compatible with with the current QIIME 2 release._

```auto
    conda activate qiime2-amplicon-2024.5
    pip install git+https://github.com/bokulich-lab/RESCRIPt.git
    qiime dev refresh-cache

```

⚠ _The latest version of `SILVA 138.2` makes use of a new taxonomy schema as outlined [here](https://www.arb-silva.de/news/view/2024/07/11/silva-release-1382/), so the taxonomy is likely not compatible with any additional data downloaded from NCBI, so it'd be best to stick with `138.1` as the only difference between `138.1` and `138.2` is the updated taxonomy. Also, even if you are using prior versions of SILVA, there may be differences in rank labels, e.g. "kingdom" vs "domain". In which case you can use RESCRIPt's [edit-taxonomy](https://forum.qiime2.org/t/processing-filtering-and-evaluating-the-silva-database-and-other-reference-sequence-data-with-rescript/15494#heading--sixteenth-header) function._
