I mapped some reads to a reference genome using bwa's bwasw option and it seems that the MD tag is never produced. Is there a way to make bwa create this tag for each mapped read?
Alternatively is there way to enforce bwa to output a CIGAR string with "X" and "=" characters (which stand respectively for sequence mismatch and match), instead of the ambiguous M (which stands for both match and mismatch) ?
I'm trying to find out how much of each mapped read mismatched the reference.
Thanks.
I hadn't. This seems to solve my problem. Thanks