def strip_masked(fasta, min_len, print_masked):
for seq in parse_fasta(fasta):<EOL><INDENT>nm, masked = parse_masked(seq, min_len)<EOL>nm = ['<STR_LIT>' % (seq[<NUM_LIT:0>], min_len), '<STR_LIT>'.join(nm)]<EOL>yield [<NUM_LIT:0>, nm]<EOL>if print_masked is True:<EOL><INDENT>for i, m in enumerate([i for i in masked if i != []], <NUM_LIT:1>):<EOL><INDENT>m = ['<STR_LIT>' % (seq[<NUM_LIT:0>], i), '<STR_LIT>'.join(m)]<EOL>yield [<NUM_LIT:1>, m]<EOL><DEDENT><DEDENT><DEDENT>
remove masked regions from fasta file as long as
they are longer than min_len