def count_mismatches(read):
if read is False:<EOL><INDENT>return False<EOL><DEDENT>mm = [int(i.split('<STR_LIT::>')[<NUM_LIT:2>]) for i in read[<NUM_LIT:11>:] if i.startswith('<STR_LIT>')]<EOL>if len(mm) > <NUM_LIT:0>:<EOL><INDENT>return sum(mm)<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
look for NM:i:<N> flag to determine number of mismatches