I used bowtie2 to map my reads to a reference genome and get the SAM files returned. I am wondering if there is a way to get the length of the identical mapped nucleotide length. Basically I want to get a hamming distance or identical mapping vs total read length ratio from the SAM files.
find out the answer in another post: https://www.biostars.org/p/7331/