How to trim bases with bbduk.sh
1
0
Entering edit mode
13 months ago

Hi,

I am using BBMAP following command to trim adapter sequences from the fastq files.

bbduk.sh -Xmx1g \
  in1=1_R1_001.fastq.gz \
  in2=1_R2_001.fastq.gz \
  out1=1_R1_001-trimmed.fastq.gz \
  out2=1_R2_001-trimmed.fastq.gz \
  literal=AGATCGGAAGAGCACACGTCTGAACTCCAGTCA,AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT \
  qtrim=rl \
  trimq=20 \
  ktrim=r \
  k=16 \
  filterpolyg=5 \
  tbo tpe

Can anyone let me know how can I use bbduk to trim the first 5 bases from the demultiplexed FASTQ files?

Thanks

bbmap fastq • 481 views
ADD COMMENT
1
Entering edit mode
13 months ago
GenoMax 147k

from the demultiplexed FASTQ files?

You can use forcetrimleft=4 to remove the first 5 bases. Do you want to do this before the operation above or later? You can do this via a pipe.

ADD COMMENT

Login before adding your answer.

Traffic: 1866 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