Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • eoh001
    Member
    • Mar 2011
    • 19

    BWA MAPQ=0 with one best hit

    Hello
    I was trying to understand the mapping quality genererated by BWA. I put all the data in xxx.sam into MySQL DB, and investigated each Tag (MAPQ, TLEN, X0, X1, SM, MQ etc) by ordering or grouping.
    X0 is the number of best hits.
    SM is templete-independent mapping quality.
    MQ mapping quality of the mate.

    I found that there were many alingnments with SM=0 and X0=1.
    There is an example below.
    How the alignment with one best hit goes together with SM=0?

    mysql> select QNAME,FLAG,CIGAR,TLEN,MAPQ,X0,X1,XM,MD,NM,AM,SM,MQ,XT from HK11501_blood where QNAME="FCD0GULACXX:6:1106:20742:75128";[/SIZE]+--------------------------------+------+-------+------+------+------+------+------+------------+------+------+------+------+------+
    | QNAME | FLAG | CIGAR | TLEN | MAPQ | X0 | X1 | XM | MD | NM | AM | SM | MQ | XT |
    +--------------------------------+------+-------+------+------+------+------+------+------------+------+------+------+------+------+
    | FCD0GULACXX:6:1106:20742:75128 | 163 | 90M | 241 | 0 | 1 | 2 | 3 | 21G10T19G3 | 3 | 0 | 0 | 0 | U |
    | FCD0GULACXX:6:1106:20742:75128 | 83 | 90M | -241 | 0 | 1 | 2 | 1 | 7A82 | 1 | 0 | 0 | 0 | U |
    +--------------------------------+------+-------+------+------+------+------+------+------------+------+------+------+------+------+
  • dariober
    Senior Member
    • May 2010
    • 311

    #2
    Hi- In the example you posted, your two reads have 3 and 1 mismatches and they also have 2 suboptimal alignment (X1 tag). These might bring the MAPQ down.

    I guess the aligner is assigning to these read (example) 50% chance to come from the reported best position and 25% chance to each of the suboptimal positions. Then the MAPQ will be 0. (Not 100% sure though...)

    Best
    Dario

    Comment

    • eoh001
      Member
      • Mar 2011
      • 19

      #3
      Thank you..
      However, I found many alignments with MAPQ > 0 under the same situation.
      I wonder how to calucluate the SM of an alignment in BWA.

      mysql> select QNAME,FLAG,CIGAR,TLEN,MAPQ,X0,X1,XM,MD,NM,AM,SM,MQ,XT from HK11501_blood where QNAME='FCD0GULACXX:6:1303:19123:123872';
      +---------------------------------+------+-------+------+------+------+------+------+-----------+------+------+------+------+------+
      | QNAME | FLAG | CIGAR | TLEN | MAPQ | X0 | X1 | XM | MD | NM | AM | SM | MQ | XT |
      +---------------------------------+------+-------+------+------+------+------+------+-----------+------+------+------+------+------+
      | FCD0GULACXX:6:1303:19123:123872 | 163 | 90M | 195 | 40 | 1 | 2 | 2 | 31G30G27 | 2 | 20 | 20 | 40 | U |
      | FCD0GULACXX:6:1303:19123:123872 | 83 | 90M | -195 | 40 | 1 | 2 | 3 | 23G0T1G63 | 3 | 20 | 20 | 40 | U |
      +---------------------------------+------+-------+------+------+------+------+------+-----------+------+------+------+------+------+

      Comment

      Latest Articles

      Collapse

      • 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
        ...
        Today, 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
      • 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, Today, 11:10 AM
      0 responses
      7 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      29 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      38 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Working...