# extract-reads to train classifier with more than 1 primer pair

**URL:** <https://forum.qiime2.org/t/extract-reads-to-train-classifier-with-more-than-1-primer-pair/22311>\
**Category:** User Support\
**Tags:** feature-classifier\
**Created:** [February 25, 2022, 10:47pm UTC](https://forum.qiime2.org/t/extract-reads-to-train-classifier-with-more-than-1-primer-pair/22311 "2022-02-25T22:47:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_C](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/g/7c8e57/32.png) [@Gaurav\_C](https://forum.qiime2.org/u/Gaurav_C)\
**Post date:** [February 25, 2022, 10:47pm UTC](https://forum.qiime2.org/t/extract-reads-to-train-classifier-with-more-than-1-primer-pair/22311/1 "2022-02-25T22:47:25Z")

</div>

Hi,  
I have a couple of questions.

1. We did full length 16S+18S sequencing. Our data have both 16S and 18S sequences in the same file. I would like to assign taxonomy to this dataset. I am trying to train a classifier for both 16S and 18S combined and would like to know for the step of extracting reads how do I assign more than 1 primer pair?  
Would it look something like this:  
qiime feature-classifier extract-reads  
–i-sequences 16S+18S.qza  
–p-f-primer primerF1 primerF2  
–p-r-primer primerR1 primerR2  
–o-reads 16S+18S\_trimmed.qza

2. On the page: [Data resources — QIIME 2 2021.11.0 documentation](https://docs.qiime2.org/2021.11/data-resources/)

> Naive Bayes classifiers trained on:
> 
> - [Silva 138 99% OTUs full-length sequences](https://data.qiime2.org/2021.11/common/silva-138-99-nb-classifier.qza) (MD5: `b8609f23e9b17bd4a1321a8971303310`)

Is this classifier for 16S+18S, or just 16S?

> Pre-formatted SILVA reference sequence and taxonomy files:
> 
> - [Silva 138 SSURef NR99 full-length sequences](https://data.qiime2.org/2021.11/common/silva-138-99-seqs.qza) (MD5: `de8886bb2c059b1e8752255d271f3010`)
> - [Silva 138 SSURef NR99 full-length taxonomy](https://data.qiime2.org/2021.11/common/silva-138-99-tax.qza) (MD5: `f12d5b78bf4b1519721fe52803581c3d`)

Are these files for both 16S and 18S or just 16S?

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:** [February 25, 2022, 11:25pm UTC](https://forum.qiime2.org/t/extract-reads-to-train-classifier-with-more-than-1-primer-pair/22311/2 "2022-02-25T23:25:46Z")

</div>

Hi @Gaurav_C,

SILVA has two sets of files, one for SSU and another for LSU. The SSU contains both the 16S & 18S sequences. Fortunately, we've made a great plugin to help you curate your own reference database: [RESCRIPt](https://github.com/bokulich-lab/RESCRIPt). You work through this [SILVA tutorial](https://forum.qiime2.org/t/processing-filtering-and-evaluating-the-silva-database-and-other-reference-sequence-data-with-rescript/15494).

You can either make two different classifiers based on your amplicon region or simply use the premade full-length classifier available on the [Data resources](https://docs.qiime2.org/2022.2/data-resources/) page. Check out this [post](https://forum.qiime2.org/t/how-do-i-recover-18s-reads-after-filtering-in-qiime-2/4205/3) for more details.

-Cheers!  
-Mike

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [March 23, 2022, 6:03am UTC](https://forum.qiime2.org/t/extract-reads-to-train-classifier-with-more-than-1-primer-pair/22311/3 "2022-03-23T06:03:06Z")

</div>

An off-topic reply has been split into a new topic: [is it possible to train a classifier with multiple genes?](https://forum.qiime2.org/t/is-it-possible-to-train-a-classifier-with-multiple-genes/22535)

Please keep replies on-topic in the future.

---

<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:** [April 23, 2022, 12:03pm UTC](https://forum.qiime2.org/t/extract-reads-to-train-classifier-with-more-than-1-primer-pair/22311/4 "2022-04-23T12:03:13Z")

</div>

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