Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 |
    +--------------------------------+------+-------+------+------+------+------+------+------------+------+------+------+------+------+

  • #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


    • #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

      • seqadmin
        Recent Innovations in Spatial Biology
        by seqadmin


        Spatial biology is an exciting field that encompasses a wide range of techniques and technologies aimed at mapping the organization and interactions of various biomolecules in their native environments. As this area of research progresses, new tools and methodologies are being introduced, accompanied by efforts to establish benchmarking standards and drive technological innovation.

        3D Genomics
        While spatial biology often involves studying proteins and RNAs in their...
        Yesterday, 07:30 PM
      • seqadmin
        Advancing Precision Medicine for Rare Diseases in Children
        by seqadmin




        Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
        12-16-2024, 07:57 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 12-30-2024, 01:35 PM
      0 responses
      21 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-17-2024, 10:28 AM
      0 responses
      41 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-13-2024, 08:24 AM
      0 responses
      55 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-12-2024, 07:41 AM
      0 responses
      40 views
      0 likes
      Last Post seqadmin  
      Working...
      X