Removing primers with degenerate codes
1
0
Entering edit mode
5.5 years ago
life99945 ▴ 20

Hello!

I have forward and reverse illumina myseq 16s rRNA v4-v6 amplicon reads with Pro-mod-341F 5’-CCTAYGGGDBGCWSCAG and Pro-mod-805R 5’-GACTACNVGGGTMTCTAATCC primers used. I want to make sure these primers are already removed. Is there any way to do it?

Thank you.

primers • 1.7k views
ADD COMMENT
3
Entering edit mode
5.5 years ago
h.mon 35k

Use bbduk.sh from the BBMap / BBTools packages to search for the primers:

bbduk.sh in=B1_sub_R1.fq.gz literal=CCTAYGGGDBGCWSCAG copyundefined=t mm=f \
  ktrim=l k=13 mink=3

You can also use bbduk to trim the primers, see an example at this dada2 tutorial (but note I think you need copyundefined=t):

bbduk.sh in=B1_sub_R1.fq in2=B1_sub_R2.fq \
  out=B1_sub_R1_trimmed.fq.gz out2=B1_sub_R2_trimmed.fq.gz \
  literal=GTGCCAGCMGCCGCGGTAA,GGACTACHVGGGTWTCTAAT k=10 ordered=t mink=2 \
  ktrim=l rcomp=f minlength=220 maxlength=280 tbo tpe
ADD COMMENT
0
Entering edit mode

Thank you very much!

ADD REPLY
0
Entering edit mode

Thank you very much, everything worked out, but I do not understand why in the example they don’t use copyundefined? After all, it greatly affects the reverse read trimming. And how can i count minlength? In example they say that "min and max length were based roughly on 10% smaller and bigger than would be expected after trimming the primers", but how can i expect to get 220 bp after trimming 17bp from 300bp?

ADD REPLY

Login before adding your answer.

Traffic: 2536 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6