Unconfigured Ad

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

    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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 06-09-2026, 11:58 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-05-2026, 10:09 AM
          0 responses
          34 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-04-2026, 08:59 AM
          0 responses
          40 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-02-2026, 12:03 PM
          0 responses
          62 views
          0 reactions
          Last Post SEQadmin2  
          Working...