Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing contamination with BBDUK

    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.

  • #2
    In Illumina data the adapter contamination should only be on the 3'-end of the read, if all things have gone as expected. So doing just ktrim=r is fine.

    If your data was multiplexed (i.e. it had an index/tag) then you should not have to worry about phiX. Illumina's phiX does not have an index and should get discarded as part of the normal demultiplexing process.

    @Brian recently provided this additional bbduk command to check for and remove phiX sequence and other known sequencing artifacts (e.g. control sequences from TruSeq kit).
    Code:
    bbduk.sh in=trimmed.fq.gz out=filtered.fq.gz k=31 ref=artifacts,phix ordered cardinality

    Comment


    • #3
      Hi GenoMax,

      Thank you very much for your quick reply and explanations. I believe my data was multiplexed (it was already sequenced when I started my project), but BBDUK did find some phix sequence and discarded them into the outm files so I could be wrong. Also thank you for that command, I will give it a go on my sequences.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Non-Coding RNA Research and Technologies
        by seqadmin




        Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

        Nobel Prize for MicroRNA Discovery
        This week,...
        10-07-2024, 08:07 AM
      • seqadmin
        Recent Developments in Metagenomics
        by seqadmin





        Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
        09-23-2024, 06:35 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 02:44 PM
      0 responses
      7 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-11-2024, 06:55 AM
      0 responses
      14 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-02-2024, 04:51 AM
      0 responses
      110 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-01-2024, 07:10 AM
      0 responses
      117 views
      0 likes
      Last Post seqadmin  
      Working...
      X