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
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2
            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into a standard research
            ...
            Today, 11:01 AM
          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM
          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Today, 02:55 AM
          0 responses
          6 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          11 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-23-2026, 11:41 AM
          0 responses
          12 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-20-2026, 11:10 AM
          0 responses
          24 views
          0 reactions
          Last Post SEQadmin2  
          Working...