Hi
I would like to use bbduk to replicate the command line flags used by trim_galore for EM-Seq (NEB).
The bismark user guide recommends this for trim_galore
--clip_R1 10 --clip_R2 10 --three_prime_clip_R1 10 --three_prime_clip_R2 10
Explanation of the trim_galore parameters
--clip_R1 <int>
Instructs Trim Galore to remove <int> bp from the 5' end
of read 1 (or single-end reads). This may be useful if
the qualities were very poor, or if there is some
sort of unwanted bias at the 5' end.
Default: OFF.
--clip_R2 <int>
Instructs Trim Galore to remove <int> bp from the 5' end
of read 2 (paired-end reads only). This may be useful if
the qualities were very poor, or if there is some sort
of unwanted bias at the 5' end. For paired-end BS-Seq,
it is recommended to remove the first few bp because
the end-repair reaction may introduce a bias towards low
methylation. Please refer to the M-bias plot section in
the Bismark User Guide for some examples.
Default: OFF.
--three_prime_clip_R1 <int>
Instructs Trim Galore to remove <int> bp from
the 3' end of read 1 (or single-end reads) AFTER
adapter/quality trimming has been performed. This
may remove some unwanted bias from the 3' end
that is not directly related to adapter sequence or
basecall quality.
Default: OFF.
--three_prime_clip_R2 <int>
Instructs Trim Galore to remove <int> bp from
the 3' end of read 2 AFTER adapter/quality trimming
has been performed. This may remove some
unwanted bias from the 3' end that is not
directly related to adapter sequence or basecall quality.
Default: OFF.
I was wondering how I could get the same with bbduk - the relevant bbduk flags I could find were
forcetrimleft=0 (ftl) If positive, trim bases to the left of this position
forcetrimright=0 (ftr) If positive, trim bases to the right of this position
forcetrimright2=0 (ftr2) If positive, trim this many bases on the right end.
forcetrimmod=0 (ftm) If positive, right-trim length to be equal to zero,
Based on what trim_galore provides, I am guessing the equivalent bbduk command line option would be
bbduk.sh in1=read1.fq in2=read2.fq out1=clean1.fq out2=clean2.fq ktrim=l ktrim=r forcetrimleft=10
forcetrimright2=10
Is the above correct?
Thanks in advance.
bbduk
trim-galore