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:
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
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!