Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dlawrence
    Junior Member
    • Mar 2012
    • 8

    #1

    Tophat Paired Ends and trimming - A warning

    Only 0.5% of my reads were correctly paired with Tophat. And a huge amount were mapping to a different chromosome.

    I discovered the problem only occurred when I trimmed the reads first. (?)

    I then dug into Bowtie, and found out that it expects paired end reads to be in the same order of the input files. Thus if you remove a read from R1 but not R2, everything from that point in the file will be wrong.

    As far as I knew, fastq records were matched up by read ID NOT by position in the file. This requirement was NOT specified on the bowtie page[1]. There is NO warning that this is happening.

    I haven't seen this discussed before - so.... a warning: Don't do a quality trim w/discard on paired end data (unless you process the files in sync and throw a bad read in either out in both files so they remain in sync)

    I understand why they do this from an algorithm point of view, but it would be good to make the requirement explicit.

    Or, it would be pretty easy to test for this. In PairedDualPatternSource::nextReadPair() check that the read IDs are the same before return true.

    [1] Actually, I was looking on Bowtie1 page. Bowtie 2 says:

    "Pairs are often stored in a pair of files, one file containing the mate 1s and the other containing the mates 2s. The first mate in the file for mate 1 forms a pair with the first mate in the file for mate 2, the second with the second, and so on."

    So I guess it does say that... however it could be more explicit ("first fastq record in the file"), or do the read ID comparison test.
    Last edited by dlawrence; 08-15-2013, 01:46 AM.
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    If you have Illumina data, you can use Trimmomatic to trim your reads, it will remove unpaired reads and put them in separate files, one file for unpaired R1 reads, and another one for unpaired R2 reads. See

    Comment

    • nr23
      Member
      • Oct 2012
      • 42

      #3
      I also experienced this problem a while back. It is incredibly sloppy for them to have neglected this from my point of view. I use trimmomatic and have found it better on all fronts!

      N

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Well, the read IDs aren't always identical. They sometimes have /1 or _1 or other such things that differentiate them. As a rule, all aligners assume that paired-end reads in fastq files are in sync. One could write an aligner that could deal with out of sync reads, but its first step would be to sync them up, which is a silly thing for an aligner to have to do since the original files were in sync to begin with.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2




          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
          Today, 06:46 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        24 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-28-2026, 09:51 AM
        0 responses
        15 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        68 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        48 views
        0 reactions
        Last Post SEQadmin2  
        Working...