Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    Trimmomatic -- Tony needs advice

    I have communicated with Tony Bolger about this bug. He gave permission to post on SeqAnswers.

    Basically I was doing trimming on some miRNAs but, incorrectly, using the TruSeq adapters. This uncovered a bug (or feature) of Trimmomatic for which Tony needs some advice.

    As an example, my original sequence is:
    Code:
    >original_2989:2125
    TCTCATTCCATACATCGTCTGATGGAATTCTCGGGTGCCAAGGAACTCCAGTCACGTTTCGATCTCGTATGCCGTCTTCTGCTTGAAAAAAAAAAAAAAAA
    When I use the TruSeq adapter as follows:
    Code:
    >TruSeq_Adapter_Index_21-GTTTCG
    GATCGGAAGAGCACACGTCTGAACTCCAGTCACGTTTCGATCTCGTATGCCGTCTTCTGCTTG
    Then with a mismatch of 2 and score of 15 I get as the trimmed sequence.
    Code:
    >truseq_trimmed
    TCTCATTCCATACATCGTCTGA
    Which is correct but is only due to happenstance. Note that the TruSeq adapter does not having the TGGAAT... sequence where the trimming begins. However the adapter and the original sequence do have a long match starting at the GAACTCC... part.

    I'll let Tony explain:

    OK - so what's happening is that, for some (arguably incorrect) reasons,
    trimmomatic is considering the alignment sufficiently good despite the
    relatively large number of mismatches in the first part of the adapter.

    Normally, assuming mismatches are relatively reliable bases (i.e with
    good Q scores) and distributed across the aligning region, they
    massively reduce the alignment score, thus bringing it below the
    threshold.

    However, given your example, where all the mismatches towards one end of
    the adapter, but the adapter itself is relatively long, the 'good match'
    region is alone sufficient to pass the threshold - in effect, a local
    alignment.

    This is arguably incorrect for illumina clipping, since you would
    normally expect at least the start of the adapter to be present, so
    maybe it would make more sense to require the hit to consider all bases
    from the start, thus causing early mismatches to have a more drastic
    effect on the alignment score.

    Another approach would be to leave it as a local alignment, but perform
    the trimming from the start of the local alignment region, rather than
    from the assumed start of adapter.

    Another variant is to combine these - first consider from the start of
    the adapter to the best aligning region, and trim if it's above the
    threshold, otherwise try the local alignment with local trimming.

    None of these changes are particularly difficult to make, so if you (and
    others) have a strong preference on it, I can change it.
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    Well, no one has responded (at least publicly) to Tony's request on how to change the Trimmomatic program. So in order to get my thoughts on record and in order to get this post back to the fore, here is my idea.

    All three methods are good choices and making the selection of the method into a command line parameter would be useful. However if I were to choose one method it would be for a local alignment -- that is, only trim once the adapter bases actually match the bases being trimmed.

    Comment

    Latest Articles

    Collapse

    • mylaser
      Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by mylaser
      Kheloyaar: The Complete Guide to Kheloyaar Loginand Kheloyaar ID
      The online gaming industry has transformed the way people enjoy digital entertainment. As technology continues to improve, players are looking for platforms that offer convenience, security, and a seamless user experience. Kheloyaarhas gained attention among users who value an easy-to-use platform, quick account access, and a simple registration process.
      Whether you're exploring Kheloyaar for the first time or want to understand...
      Today, 09:27 PM
    • SEQadmin2
      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by SEQadmin2



      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
      ...
      Today, 11:10 AM
    • SEQadmin2
      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
      by SEQadmin2



      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
      Yesterday, 05:17 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Today, 10:04 AM
    0 responses
    8 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 10:08 AM
    0 responses
    7 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-07-2026, 11:05 AM
    0 responses
    10 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-02-2026, 11:08 AM
    0 responses
    31 views
    0 reactions
    Last Post SEQadmin2  
    Working...