Unconfigured Ad

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

    #1

    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
        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, Yesterday, 11:13 AM
      0 responses
      14 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      13 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Working...