Thanks Istvan, my question was more about the value in the AS tag.
test3 0 chr20 47606481 60 100M * 0 0 AAAAAAAAAAATCAGTTTTCCACTGAGGAATGTCCATGATGAAGCAGCAACACTACACCTGGCCCTCATTCCCTTTTTTCCTTAAGTACCTTTCACTGAA 2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 NM:i:2 MD:Z:29T68T1 AS:i:93 XS:i:0
Computing score from MD we get 90, but the value reported is 93. I know that BWA-MEM keeps track of true score, but any reason why it is not reported as part of AS tag?