Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Trimming with sliding window before alignment

    Hi,

    I'm just wondering how trimming with a sliding window, with a tool such as Trimmomatic, will affect alignment.

    If Trimmomatic cuts sequences in the middle of the reads, will that not negatively affect the quality of the alignment, rather than improve it?
    An aligner, such as Bowtie2, would not be aware of the missing bases in the middle of the read.

    Here is an example of a trimming command from the Trimmomatic website with the sliding window parameter.

    java -jar trimmomatic-0.27.jar PE s_1_1_sequence.txt.gz s_1_2_sequence.txt.gz lane1_forward_paired.fq.gz lane1_forward_unpaired.fq.gz lane1_reverse_paired.fq.gz lane1_reverse_unpaired.fq.gz ILLUMINACLIP:TruSeq3-PE.fa:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36

    Scan the read with a 4-base wide sliding window, cutting when the average quality per base drops below 15


    I don't understand how an aligner such as Bowtie2 can generate a better alignment with missing bases in the middle of the reads, rather than keeping the reads, knowing that they are of lesser quality, in the middle of the reads.

    Of course, if the trimming reduces the length of the reads below 36, the reads are dropped, which is fine. I am talking about the cases where the entire read is not dropped.

    Thank you.

  • #2
    Originally posted by blancha View Post
    Scan the read with a 4-base wide sliding window, cutting when the average quality per base drops below 15

    I don't understand how an aligner such as Bowtie2 can generate a better alignment with missing bases in the middle of the reads, rather than keeping the reads, knowing that they are of lesser quality, in the middle of the reads.
    Trimmomatic (or any trimming tool employing this strategy) does not remove bases and the middle while retain reads on either end of a read. What the sliding window trimming does is scan along the read in the 5'->3' direction calculating the average quality over the window size you have defined. Once it encounters a window with an average quality below the threshold you have specified it removes all bases in that window and beyond to the 3' end of the read, effectively trimming the read back to the point just before the sliding window fell below your threshold.

    Comment


    • #3
      Great. Thanks for the answer. That is exactly what I wanted to know. It's not very clear from their website or their paper, but your explanation makes perfect sense.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        05-06-2024, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 07:03 AM
      0 responses
      10 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-10-2024, 06:35 AM
      0 responses
      31 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-09-2024, 02:46 PM
      0 responses
      41 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      33 views
      0 likes
      Last Post seqadmin  
      Working...
      X