Unconfigured Ad

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

    #1

    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

                  • 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-15-2026, 10:52 AM
                  0 responses
                  16 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  21 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-13-2026, 09:56 AM
                  0 responses
                  22 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-09-2026, 11:14 AM
                  0 responses
                  27 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...