def parse_sam(sam, qual):
for line in sam:<EOL><INDENT>if line.startswith('<STR_LIT:@>'):<EOL><INDENT>continue<EOL><DEDENT>line = line.strip().split()<EOL>if int(line[<NUM_LIT:4>]) == <NUM_LIT:0> or int(line[<NUM_LIT:4>]) < qual:<EOL><INDENT>continue<EOL><DEDENT>yield line<EOL><DEDENT>
parse sam file and check mapping quality