def check_overlap(pos, ins, thresh):
ins_pos = ins[<NUM_LIT:0>]<EOL>ins_len = ins[<NUM_LIT:2>]<EOL>ol = overlap(ins_pos, pos)<EOL>feat_len = pos[<NUM_LIT:1>] - pos[<NUM_LIT:0>] + <NUM_LIT:1><EOL><INDENT>print float(ol) / float(feat_len)<EOL><DEDENT>if float(ol) / float(feat_len) >= thresh:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
make sure thresh % feature is contained within insertion