skbio.core.sequence.ProteinSequence.has_unsupported_characters

ProteinSequence.has_unsupported_characters()[source]

Return bool indicating presence/absence of unsupported characters

Returns:

bool

True if invalid characters are present in the BiologicalSequence (i.e., characters which are not in BiologicalSequence.alphabet or BiologicalSequence.gap_alphabet) and False otherwise.