Hello,
I have just used BBDUK to remove adaptor sequence and phix from some raw illumina HiSeq 2X100bp reads and I'm really pleased with the improvement it has made in my sequences reported by FASTQC. I was just hoping someone could help me with a couple of questions to help me better understand how BBDUK removes contamination from a read, and if I'm using it correctly.
(1)When using BBDUK to remove adaptors, I chose to use mink to look for shorter adaptor sequence in my sequences than the chosen K=31 by using mink. Below are my parameters.
./bbduk.sh in=R1_001.fastq in2=R2_001.fastq minlen=51 mink=9 ktrim=r tbo tpe K=31 hdist=1 hdist2=1 ref=adapters.fa stats=stats_adaptor.txt out=R1_clean.fq out2=R2_clean.fq outm=ER1_adaptormatch.fq outm2=R2_adaptormatch.fq
This worked beautifully but it occurred to me that to use mink, I had to choose a side to trim from. I chose ktrim=r, but after I had done ktrim=r, am I meant to be repeating the process using the same commands as above and only changing ktrim=l so that both ends of the read have been checked for shorter kmers of contamination and then trimmed?
(2) My second question is about the removal of phix. I notice that in the post on seqanswers called "Introducing BBDuk: Adaptor/Quality Trimming and Filtering" that mink is not used unlike the adaptor search, just simply K=31. Is this because adaptor sequence is more likely to be present as a small fragment than the phix sequence?
I apologise if these are basic questions, I'm a masters student and I'm trying to ensure I thoroughly DQ my reads as well as understand all of the operations being performed.
Thank you all for your help.
I have just used BBDUK to remove adaptor sequence and phix from some raw illumina HiSeq 2X100bp reads and I'm really pleased with the improvement it has made in my sequences reported by FASTQC. I was just hoping someone could help me with a couple of questions to help me better understand how BBDUK removes contamination from a read, and if I'm using it correctly.
(1)When using BBDUK to remove adaptors, I chose to use mink to look for shorter adaptor sequence in my sequences than the chosen K=31 by using mink. Below are my parameters.
./bbduk.sh in=R1_001.fastq in2=R2_001.fastq minlen=51 mink=9 ktrim=r tbo tpe K=31 hdist=1 hdist2=1 ref=adapters.fa stats=stats_adaptor.txt out=R1_clean.fq out2=R2_clean.fq outm=ER1_adaptormatch.fq outm2=R2_adaptormatch.fq
This worked beautifully but it occurred to me that to use mink, I had to choose a side to trim from. I chose ktrim=r, but after I had done ktrim=r, am I meant to be repeating the process using the same commands as above and only changing ktrim=l so that both ends of the read have been checked for shorter kmers of contamination and then trimmed?
(2) My second question is about the removal of phix. I notice that in the post on seqanswers called "Introducing BBDuk: Adaptor/Quality Trimming and Filtering" that mink is not used unlike the adaptor search, just simply K=31. Is this because adaptor sequence is more likely to be present as a small fragment than the phix sequence?
I apologise if these are basic questions, I'm a masters student and I'm trying to ensure I thoroughly DQ my reads as well as understand all of the operations being performed.
Thank you all for your help.
Comment