Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • feixue1039
    Member
    • Mar 2011
    • 18

    #1

    how to calculate MAPQ value in the tophat

    Hi,

    I have mapped some RNA-seq reads back to genome with Tophat and found that a lot of reads in the output of Tophat have a MAPping Value of 255. As says in the SAM specification file , a value 255 indicates that the mapping quality is not available. I wonder that in what case a read will be allocated a MAPQ value of 255 ? Does it mean that this read don't align the genome well?

    I hope I have made the question clear to you all. Any reply will be appreciated.Thanks in advance!

    feixue1039
  • me_myself_andI
    Member
    • Nov 2010
    • 30

    #2
    Related and up to now also unanswered post:
    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    Comment

    • sqcrft
      Member
      • May 2012
      • 29

      #3
      some people say 255 means uniquely-mapped. but I can't find an source for that.

      Comment

      • sqcrft
        Member
        • May 2012
        • 29

        #4
        despite the sam format specification, 255 means no mapq

        Comment

        • sqcrft
          Member
          • May 2012
          • 29

          #5
          check this: http://user.list.galaxyproject.org/a...td4366680.html

          Jeremy,



          This is not strictly correct. Tophat/bowtie don’t report mapping quality values that are as meaningful as BWA, but there is some information in the mapping quality values tophat reports. Tophat yields 4 distinct values for its mapping quality values (you can do a “unique” count on the mapping quality field of any SAM file from tophat to verify this):



          255 = unique mapping

          3 = maps to 2 locations in the target

          2 = maps to 3 locations

          1 = maps to 4-9 locations

          0 = maps to 10 or more locations.



          Except for the 255 case, the simple rule that was encoded by the authors is the usual phred quality scale:



          MapQ = -10 log10(P)



          Where P = probability that this mapping is NOT the correct one. The authors ignore the number of mismatches in this calculation and simply assume that if it maps to 2 locations then P = 0.5, 3 locations implies P = 2/3, 4 locations => P = 3/4 etc.



          As you can clearly see, then MapQ = -10 log10(0.5) = 3; -10 log10(2/3) = 1.76 (rounds to 2);

          -10 log10(3/4) = 1.25 (rounds to 1), etc.



          -Kevin

          Comment

          • apredeus
            Senior Member
            • Jul 2012
            • 151

            #6
            Originally posted by sqcrft View Post
            check this: http://user.list.galaxyproject.org/a...td4366680.html

            Jeremy,

            This is not strictly correct. Tophat/bowtie don’t report mapping quality values that are as meaningful as BWA, but there is some information in the mapping quality values tophat reports. Tophat yields 4 distinct values for its mapping quality values (you can do a “unique” count on the mapping quality field of any SAM file from tophat to verify this):

            255 = unique mapping
            3 = maps to 2 locations in the target
            2 = maps to 3 locations
            1 = maps to 4-9 locations
            0 = maps to 10 or more locations.
            This actually does not seem to hold upon checking (or at least not anymore). In Tophat 1.4.1, there is no mapping quality of 2. I've looked at a large number of BAM files and it seems that the qualities are as follows:

            255 = unique mapping
            3 = maps to 2 locations in the target
            1 = maps to 3-4 locations
            0 = maps to 5 or more locations (up to the number defined in "--max-multihits").

            cheers

            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
              ...
              Yesterday, 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, Yesterday, 02:55 AM
            0 responses
            10 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-24-2026, 12:17 PM
            0 responses
            12 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-23-2026, 11:41 AM
            0 responses
            13 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...