# Can I train a region-specific classifier using unaligned SILVA 144 sequences and qiime feature-classifier extract-reads ?

**URL:** <https://forum.qiime2.org/t/can-i-train-a-region-specific-classifier-using-unaligned-silva-144-sequences-and-qiime-feature-classifier-extract-reads/34408>\
**Category:** General Discussion\
**Tags:** feature-classifier, silva\
**Created:** [November 30, 2026, 8:01am UTC](https://forum.qiime2.org/t/can-i-train-a-region-specific-classifier-using-unaligned-silva-144-sequences-and-qiime-feature-classifier-extract-reads/34408 "2026-11-30T08:01:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhonglun\_cai](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zhonglun_cai/32/22109_2.png) [@zhonglun\_cai](https://forum.qiime2.org/u/zhonglun_cai)\
**Post date:** [November 30, 2026, 8:01am UTC](https://forum.qiime2.org/t/can-i-train-a-region-specific-classifier-using-unaligned-silva-144-sequences-and-qiime-feature-classifier-extract-reads/34408/1 "2026-11-30T08:01:28Z")

</div>

# Can I train a region-specific classifier using unaligned SILVA 144 sequences and qiime feature-classifier extract-reads ?

Hello everyone,

I am trying to train a Naive Bayes classifier for bacterial 16S rRNA V5–V6 amplicon sequences using SILVA 144 and QIIME 2 2026.10.

My proposed workflow is to download the **unaligned SILVA 144 SSURef\_NR99 sequences** using RESCRIPt, convert RNA sequences to DNA sequences, and then extract the target region using `qiime feature-classifier extract-reads`:

```bash
qiime feature-classifier extract-reads \
    --i-sequences silva-144-nr99-dna.qza \
    --p-f-primer AACMGGATTAGATACCCKG \
    --p-r-primer AGGGTTGCGCTCGTTG \
    --p-n-jobs 30 \
    --o-reads silva-144-nr99-dna-V56.qza \
    --o-read-extraction-stats silva-144-nr99-V56-stats.qza

```

I also tried using aligned SILVA sequences with `qiime alignment trim-alignment`, following this tutorial:

[Train a taxonomy classifier using SILVA aligned sequences](https://forum.qiime2.org/t/train-a-taxonomy-classifier-by-extracting-an-amplicon-region-from-a-curated-sequence-alignment-using-silva-as-an-example/34289)

However, **when running `qiime alignment trim-alignment` to extract the target region using the primer sequences, the memory consumption exceeded 1 TB, and the HPC system terminated the job.**

Therefore, I would like to ask:

**Is it scientifically and technically appropriate to use unaligned SILVA reference sequences with `qiime feature-classifier extract-reads` to extract my V5–V6 region and train a Naive Bayes classifier? Or is it necessary to use aligned SILVA sequences with `qiime alignment trim-alignment` instead?**

I would appreciate your advice. Thank you!

---

<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, 2026, 3:35pm UTC](https://forum.qiime2.org/t/can-i-train-a-region-specific-classifier-using-unaligned-silva-144-sequences-and-qiime-feature-classifier-extract-reads/34408/2 "2026-11-30T15:35:44Z")

</div>

Hi @zhonglun_cai,

Let's see if we can help.

> [@zhonglun\_cai](#):
>
> However, **when running `qiime alignment trim-alignment` to extract the target region using the primer sequences, the memory consumption exceeded 1 TB, and the HPC system terminated the job.**

This is exactly why, in the alignment tutorial, we've warned against using primers to extract the amplicon region:

> _Warning: We recomend providing explicit alignment positions. Although we provide the ability to supply PCR primers for alignment region extraction, this approach is VERY inefficient for large alignments._

We recommend using the alignment positions as listed in the table of the tutorial you linked (scroll to the right). It appears your V5V6 primer region is not listed, we can determine these and add the positions to the table. It might take a few days for us to get to it. Until then, use the unaligned files with extract-reads, see below.

On to your next question ...

> [@zhonglun\_cai](#):
>
> Is it scientifically and technically appropriate to use unaligned SILVA reference sequences with `qiime feature-classifier extract-reads` to extract my V5–V6 region and train a Naive Bayes classifier?

Yes. In fact, this is how most people construct their own classifiers. See [this tutorial](https://forum.qiime2.org/t/processing-filtering-and-evaluating-the-silva-database-and-other-reference-sequence-data-with-rescript/15494). There are various ways you can construct your classifier, see [here](https://forum.qiime2.org/t/how-to-perform-silva-v3-classifier-training/33790/2), and [here](https://forum.qiime2.org/t/rescript-plug-in-error-deprelicate-after-extracting-reads-for-amplicon-region-specific-classifier/34010/2) for example... The main tutorial is not an SOP and is just generally showing the myriad ways in which you can use RESCRIPt. Several other tutorials are linked on the [RESCRIPt GitHub page](https://github.com/bokulich-lab/RESCRIPt).

---

<div class="post-metadata">

**Author:** ![zhonglun\_cai](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zhonglun_cai/32/22109_2.png) [@zhonglun\_cai](https://forum.qiime2.org/u/zhonglun_cai)\
**Post date:** [December 1, 2026, 8:31am UTC](https://forum.qiime2.org/t/can-i-train-a-region-specific-classifier-using-unaligned-silva-144-sequences-and-qiime-feature-classifier-extract-reads/34408/3 "2026-12-01T08:31:27Z")

</div>

Thank you very much for your clarification! This is really helpful. I sincerely appreciate your time and help!
