scripts/export/fasta_export.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(r"[.-@|\s| -)|z-~|Z-`|EFIJLOPQX|efijlopqx+,]+")

    if(seq_val.search(sequence) is None):
        return True

    return False

    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(r"[.-@|\s| -)|z-~|Z-`|EFIJLOPQX|efijlopqx+,]+")
    if(seq_val.search(sequence) is None):
        return True
    return False
def seq_validator ( sequence ) : seq_val = re . compile ( r"[.-@|\s| -)|z-~|Z-`|EFIJLOPQX|efijlopqx+,]+" ) if ( seq_val . search ( sequence ) is None ) : return True return False
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
sequence