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