Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GeGnome
    Junior Member
    • Jun 2011
    • 5

    #1

    How to mask and not remove "adapter" sequence?

    Hello,

    Our core recently acquired an Illumina system and we've been working through the bench and computational workflows of genome, exome, ChIP, and RNA-sequencing.

    This question is about RNA-seq... My boss came up with a modified random hexamer [not a hexamer, actually] so that we can conserve strandedness. The sequence is actually NNNNN[AGCT]NNNNNN where there is a defined 12 base sequence between the random bases. The point was to see which end of the read this sequence shows up on, which would tell us which strand it came from.

    Unfortunately, when he came up with the design he didn't count on the fact that reads with this sequence (half of the reads) would fail to map. I can easily trim this primer sequence with the usual tools, but he wants to retain it so that we know which end of the read it came from...we just want to ignore it, essentially.

    I have not found software that will soft clip reads based on adapter, vector, or other contaminating sequences...they all shorten the reads. The only work-around I've thought of is to identify this primer sequence in the reads, and to modify [lower] the Q-score of the base so that it can be masked out and soft clipped in the next step. This would then keep the sequence around, but not allow that portion of the read to contribute to alignment...that's the idea anyways.

    But I'm hoping there is a more straight-forward way to do this, as it's quite a hack of the data. Does anyone have any ideas they care to share?

    Thanks!
  • danielr
    Member
    • Sep 2009
    • 11

    #2
    You could preprocess the fastq file to change the read name according to which end the strandedness sequence is, together with removing it.

    Comment

    • GeGnome
      Junior Member
      • Jun 2011
      • 5

      #3
      That's a great idea, thank you! This will obviously require some scripting, but I think it's doable. Basically, when I grep, I can anchor the regex, and then store the end it's coming from and use that to modify the read name.

      I don't suppose anyone could point me to an existing library (biopython lib, something in BioC, etc) that has a function to re-name reads? I'm assuming the typical tools out there (fastx, cutadapt, etc) don't have this functionality built in.

      Thanks...

      EDIT: Actually, it appears that FASTX will rename the reads, so I'll start there!
      Last edited by GeGnome; 04-20-2012, 08:22 AM.

      Comment

      • scalabrin
        Member
        • Jul 2009
        • 22

        #4
        cutadapt has now this functionality

        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-22-2026, 11:13 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        25 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        41 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        45 views
        0 reactions
        Last Post SEQadmin2  
        Working...