def iter_clean_fasta(fastafile):
    for header, seq in parse_fasta(fastafile):
        seq = "".join(x for x in seq if x in string.letters or x == '*')
        yield header, seq
dataset/ETHPy150Open tanghaibao/jcvi/formats/fasta.py/iter_clean_fasta/original