Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • capricy
    Senior Member
    • Apr 2012
    • 125

    #1

    question about the sam format

    Hello, there,

    I used tophat to map the reads to the genome reference and the got the aligned bam file. I have a question about the following reads:

    ====
    grep "HWI-ST514:143982632:C37PRACXX:7:1101:10044:92913" accepted_hits.bam.sam
    HWI-ST514:143982632:C37PRACXX:7:1101:10044:92913 97 A_Cont6 926942 50 61M102N4M A_Cont42 348362 0 TCACATGCTCGACCCTGCTCATGCTTCGCTCATCGAAAAGGCTCAGTTCTTCTACATCGCTGGAT IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII AS:i:0 XM:i:0 XO:i:0 XG:i:0 MD:Z:65 NM:i:0 XS:A:+ NH:i:1
    HWI-ST514:143982632:C37PRACXX:7:1101:10044:92913 153 A_Cont6 926970 50 33M102N32M * 0 0 CTCATCGAAAAGGCTCAGTTCTTCTACATCGCTGGATTCTTCTTGACTGTCTCGCCTCCATCAAT IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII AS:i:0 XM:i:0 XO:i:0 XG:i:0 MD:Z:65 NM:i:0 XS:A:+ NH:i:1
    ====

    My understanding is that these two reads are paired. For the first read, according to the flag value and field 7 (A_Cont42), its mate should be mapped, indicating the both reads are mapped. However, for the second read, flag value and field 7(*) indicate that its mate is not mapped.

    I feel there is discrepancy here. Could anyone help me figure out why?

    Thanks a lot!
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    That appears to be a bug in tophat. You're absolutely correct that that pair of alignments makes no sense. Given how tophat works, I suspect that it's incorrectly merging together alignments from one of the stages in the alignment process (namely from the split and map the mates separately across splice junctions step).

    Comment

    • capricy
      Senior Member
      • Apr 2012
      • 125

      #3
      looks like we can not trust the information about the mates in tophat output...

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Originally posted by capricy View Post
        looks like we can not trust the information about the mates in tophat output...
        At least that version of tophat. If you're using the most recent version and issue a bug report then perhaps this can get fixed for the next release.

        Comment

        • Mchicken
          Member
          • Jan 2014
          • 39

          #5
          That is a common problem of TopHat2 that I also observed two months ago. It is also a problem for some of the piccard-tools which you might run on your SAM files.

          Although the bitflag of paired end runs is misleading for some information, you can still infer the strand information (+/-) and the position in pair ("first in pair" / "second in pair"). If you still want to know if a pair of reads is proper mapped, simply verify that the two reads are mapped on opposite strands on the same chromosome and check if the distance between the mapping positions is within the range of your expected insert size. That is what I did in my analysis.

          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
          24 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...