skbio.sequence.DNASequence.is_valid

DNASequence.is_valid()[source]

Return True if the sequence is valid

Returns:

bool

True if self is valid, and False otherwise.

Notes

Validity is defined as not containing any characters outside of self.alphabet and self.gap_alphabet.