Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #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


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

      Comment


      • #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


        • #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

          • seqadmin
            Strategies for Sequencing Challenging Samples
            by seqadmin


            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
            03-22-2024, 06:39 AM
          • seqadmin
            Techniques and Challenges in Conservation Genomics
            by seqadmin



            The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

            Avian Conservation
            Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
            03-08-2024, 10:41 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 06:37 PM
          0 responses
          10 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, Yesterday, 06:07 PM
          0 responses
          9 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 03-22-2024, 10:03 AM
          0 responses
          50 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 03-21-2024, 07:32 AM
          0 responses
          67 views
          0 likes
          Last Post seqadmin  
          Working...
          X