Unconfigured Ad

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

    Tophat output contains "unmapped"??

    Hello, there,

    I recently examined the output of tophat (tophat22.0.8) after converting them into sam file, and found that the following results:

    grep "HWI-ST514:143982632:C37PRACXX:5:1101:12852:4786" accepted_hits.ns.sam
    HWI-ST514:143982632:C37PRACXX:5:1101:12852:4786 89 A_ref-1.0_Cont33 766585 50 92M * 0 0 CTTGTATTGAGTACGATCTCTCCACCTCTCCGGTTCGCAATACAGCTTTGAGAAAGAACTTATTACCCTCTCTACTATATAATTAAATTGTA DDDDEDDDDDDDDDDDBDCDDDAACDDFHHJJJJJJJJIIHHJJJJJJJJJJJJJJJIJJIHFC:JJHGIIJJIJJJJJJJJJJJJJHHHFF MD:Z:92 XG:i:0 NH:i:1 NM:i:0 XM:i:0 XN:i:0 XO:i:0 AS:i:0 YT:Z:UU
    HWI-ST514:143982632:C37PRACXX:5:1101:12852:4786 137 A_ref-1.0_Cont33 766582 50 100M * 0 0 TTCCTTGTATTGAGTACGATCTCTCCACCTCTCCGGTTCGCAATACAGCTTTGAGAAAGAACTTATTACCCTCTCTACTATATAATTAAATTGTACTTTG CCCFFFFFHHHHHJGIIJJJJJJJJJJJJIJIIJJJFGIIJJJJJJJJIJHIJJJJJJJJHHHHHFFFFFFFDEEEEDEDEDEFEEEECCEDCCDEEFED MD:Z:100 XG:i:0 NH:i:1 NM:i:0 XM:i:0 XN:i:0 XO:i:0 AS:i:0 YT:Z:UU

    The reference is the genome scaffolds here. My question is about the samflag: 89 represents read paired,mate unmapped,read reverse strand,first in pair; 137 represents read paired, mate unmapped, second in pair.

    These reads appear to be paired, and both mapped. Then why did samflag say their mates were not mapped? Is it because they did not map to the same scaffold?

    Could anyone explain this to me?

    Thanks
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    It is Tophat, not samtools, that sets the flags. So look at Tophat for answers to your question. I presume you mean version 2.0.8 and not 22.0.8; if so a newer version of Tophat may give better results.

    I haven't used Tophat in about a year so treate the following with caution. For your specific question you say ".. Is it because they did not map to the same scaffold?..." but to my eye it looks like they did map to the same scaffold.

    1st read to A_ref-1.0_Cont33 at base 766585
    2nd read to A_ref-1.0_Cont33 at base 766582

    Same scaffold with a 3-bp overlap. My guess is that this is why Tophat did not consider the two to have the mate mapped.

    Comment

    • capricy
      Senior Member
      • Apr 2012
      • 125

      #3
      I meant that they did not map to the same strand of the scaffold...

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        This appears to be a bug that was fixed in version 2.0.9, which was released over a year ago.

        Comment

        • capricy
          Senior Member
          • Apr 2012
          • 125

          #5
          @dpryan, could you please explain a bit more? What is the correct information supposed to look like?

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            What do you mean "what is the correct information supposed to look like"? You're using an old version with a known bug (the one you're asking about). Just upgrade.

            Comment

            • capricy
              Senior Member
              • Apr 2012
              • 125

              #7
              well, upgrade and rerun, might take several days.

              So I wonder if the changes for these two reads in new tophat2.0.9 will be in samflag fields?

              Thanks

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #8
                Yeah, it should just fix the flags. In this example, the flags should become 83 and 163.

                BTW, if you switch to STAR you'll get alignments vastly faster.

                Comment

                • capricy
                  Senior Member
                  • Apr 2012
                  • 125

                  #9
                  thank you very much for explanations!

                  Comment

                  Latest Articles

                  Collapse

                  • mylaser
                    Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by mylaser
                    Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
                    If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
                    This guide explains everything you need to know about...
                    Yesterday, 01:13 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
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 07-09-2026, 10:04 AM
                  0 responses
                  19 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-08-2026, 10:08 AM
                  0 responses
                  11 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-07-2026, 11:05 AM
                  0 responses
                  26 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-02-2026, 11:08 AM
                  0 responses
                  31 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...