# How can I separate amplicon sequences within an Illumina library?

**URL:** <https://forum.mothur.org/t/how-can-i-separate-amplicon-sequences-within-an-illumina-library/3123>\
**Category:** Commands in mothur\
**Created:** [February 11, 2017, 10:57pm UTC](https://forum.mothur.org/t/how-can-i-separate-amplicon-sequences-within-an-illumina-library/3123 "2017-02-11T22:57:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccollins](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@ccollins](https://forum.mothur.org/u/ccollins)\
**Post date:** [February 11, 2017, 10:57pm UTC](https://forum.mothur.org/t/how-can-i-separate-amplicon-sequences-within-an-illumina-library/3123/1 "2017-02-11T22:57:11Z")

</div>

I’m hoping someone can offer some guidance. I have Illumina libraries (one per experimental sample) as fastq files R1/R2 and within each of these is 5 different amplicons (16S, nifH, nosZ etc.). I’d like to separate these out based on the original primers similarly to barcodes but within a library (IE nifH primer vs 16S primer) so I can align them to the functional gene pipeline and repository databases ([http://fungene.cme.msu.edu/](http://fungene.cme.msu.edu/)). I’m not sure how to do this. Is there a better way?

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [February 13, 2017, 1:03pm UTC](https://forum.mothur.org/t/how-can-i-separate-amplicon-sequences-within-an-illumina-library/3123/2 "2017-02-13T13:03:10Z")

</div>

If the primers are still on the sequences then you can name your primers in the oligos file. You could run it with one primer set each time and change the output file name for each primer set.

Pat
