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
        16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by SEQadmin2




        NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
        Today, 06:46 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-28-2026, 09:57 AM
      0 responses
      22 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-28-2026, 09:51 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      68 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      48 views
      0 reactions
      Last Post SEQadmin2  
      Working...