# Oligos for COI data

**URL:** <https://forum.mothur.org/t/oligos-for-coi-data/20737>\
**Category:** Commands in mothur\
**Created:** [October 23, 2020, 1:02am UTC](https://forum.mothur.org/t/oligos-for-coi-data/20737 "2020-10-23T01:02:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmquestel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/jmquestel/32/184_2.png) [@jmquestel](https://forum.mothur.org/u/jmquestel)\
**Post date:** [October 23, 2020, 1:02am UTC](https://forum.mothur.org/t/oligos-for-coi-data/20737/1 "2020-10-23T01:02:42Z")

</div>

I am working with paired-end COI MiSeq data and need to remove the primers. My oligos file is as follows:

primer GGWACWGGWTGAACWGTWTAYCCYCC TAIACYTCIGGRTGICCRAARAAYCA

and I am using the oligos in the make.contigs command with a pdiffs=2

mothur \> make.contigs(file=current, insert=30, oligos=COI.oligos, pdiffs=2)

When I run this command a large percentage of sequences are scrapped. With reading through the SOP and some threads on here, it seems that the newer versions (I’m using 1.44.3) only allow for a max of 2 differences between both the forwards and reverse primers or else it is scrapped where older versions allowed for max of 4 differences. Is there a way to allow for a larger difference or is there a way to trim the first 26 and last 26 bp from each read before moving on with the dataset? My concern is that many usable sequences are being scrapped because there are more than two differences between the read and the primer set as COI is a highly variable gene.

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [October 28, 2020, 2:40pm UTC](https://forum.mothur.org/t/oligos-for-coi-data/20737/2 "2020-10-28T14:40:10Z")

</div>

Use make.contigs to assemble the reads, and then run pcr.seqs to remove the primers. The pcr.seqs command has parameters for the forward and reverse diffs.

mothur \> make.contigs(file=current, insert=30) - assemble reads  
mothur \> pcr.seqs(fasta=current, pdiffs=2, rdiffs=2, oligos=COI.oligos) - remove primers  
mothur \> list.seqs(fasta=current) - list reads with primers successfully removed  
mothur \> get.seqs(group=current, accnos=current) - select “good” reads from group file created by make.contigs.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/system/32/2_2.png) [@system](https://forum.mothur.org/u/system)\
**Post date:** [November 7, 2020, 2:40pm UTC](https://forum.mothur.org/t/oligos-for-coi-data/20737/3 "2020-11-07T14:40:12Z")

</div>

Closed on November 7, 2020, 2:40pm UTC

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