scripts/release/rfamseq_generator.py
def seq_validator(sequence):
    """
    Checks if the sequence provided is valid fasta sequence. Returns True
    if the sequence is valid, otherwise returns False.

    sequence: A string for validation
    """

    # checks for ascii characters that should not appear in a fasta sequence
    seq_val = re.compile("[^ATKMBVCNSWD-GUYRHatkbbvcnswdguyrh]")

    # if any illegal characters found return False
    if seq_val.search(sequence):
        return False

    return True

    Checks if the sequence provided is valid fasta sequence. Returns True
    if the sequence is valid, otherwise returns False.

    sequence: A string for validation
    
Checks if the sequence provided is valid fasta sequence. Returns True
if the sequence is valid, otherwise returns False.

A string for validation
Checks if the sequence provided is valid fasta sequence . Returns True if the sequence is valid otherwise returns False . A string for validation
def seq_validator(sequence):
    seq_val = re.compile("[^ATKMBVCNSWD-GUYRHatkbbvcnswdguyrh]")
    if seq_val.search(sequence):
        return False
    return True
def seq_validator ( sequence ) : seq_val = re . compile ( "[^ATKMBVCNSWD-GUYRHatkbbvcnswdguyrh]" ) if seq_val . search ( sequence ) : return False return True
Checks if the sequence provided is valid fasta sequence.
Checks if the sequence provided is valid fasta sequence .
"""
    Checks if the sequence provided is valid fasta sequence. Returns True
    if the sequence is valid, otherwise returns False.

    sequence: A string for validation
    """ # checks for ascii characters that should not appear in a fasta sequence # if any illegal characters found return False
sequence