Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgg
    Member
    • Nov 2011
    • 12

    #1

    cutadapt: guidance on rationale for --overlap=LENGTH values

    Hi,

    I'm getting up to speed with Marcel Martin's cutadapt for removing adapter sequences from Illumina libraries.

    I'd appreciate some expert input on what values might be reasonable for the -O (--overlap) parameter. As explained in the excellent help pages, this parameter defines the minumum overlap between the input adapter sequence and read sequences:
    Code:
      -O LENGTH, --overlap=LENGTH
           Minimum overlap length. If the overlap between the read and the adapter is
    shorter than LENGTH, the read is not modified.This reduces the no. of bases
     trimmed purely due to short random adapter matches (default: 3).
    My initial run has used the default. I get trim data like this:

    Code:
    Adapter 'GATCGGAAGAGCACACGTCTGAACTCCAGTCAC', length 33, was trimmed 205113 times.
    
    Histogram of adapter lengths
    length  count
    3       95613
    4       12912
    5       5869
    6       4173
    7       3809
    8       3323
    9       3183
    10      2934
    11      2938
    12      2464
    13      2213
    14      2041
    15      1803
    16      1650
    17      1489
    18      1334
    19      1269
    20      1147
    21      1031
    22      909
    23      859
    24      819
    25      701
    26      656
    27      536
    28      528
    29      488
    30      386
    31      368
    32      351
    33      47317
    I can see this is not sensible.

    With length=3 I get 95613 reads removed from my library; a good proportion of these must be spurious (i.e. by chance).
    With length=33 I get 47317 reads removed. These have a better chance of not being spurious.

    Somewhere between the boundaries here (3 .. 33) there must be a 'sensible' value for --offset. How do I identify it? Using what rationale? I could just opt for 33, the length of the adapter. But that would discount the probability that those of length 32 are also genuine (this library has an abrupt shift from 32 with 351 reads to 33 with the 47317, but not all my libraries look like this).

    How might I go about this??

    TIA
    mgg
  • mmartin
    Member
    • Aug 2009
    • 73

    #2
    My strategy so far was to not worry too much about the bases that get lost due to random matches. It depends on your data, but although 94613 looks large, you lose “only” 95613x3 bp, which may not be that bad.

    However, the “count” column in your histogram decreases montonically from length 3 to 32. This is different from what I see in my data. One explanation is that your adapter almost never appears partially – it's either fully there or not at all and all matches from length 3 to 32 are, in fact, spurious. In that case, you can safely set --overlap to 33.

    I'll probably change the output that cutadapt prints to make this all a bit clearer. Perhaps helpful would be print the number of bases removed and to give an estimate of how many of those were removed due to chance alone.

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    16 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    21 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-13-2026, 09:56 AM
    0 responses
    22 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-09-2026, 11:14 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Working...