skbio.sequence.DNASequence.is_gap

classmethod DNASequence.is_gap(char)[source]

Return True if char is in the gap_alphabet set

Parameters:

char : str

The string to check for presence in the BiologicalSequence gap_alphabet.

Returns:

bool

Indicates whether char is in the BiologicalSequence attribute gap_alphabet.

Notes

This is a class method.

Examples

>>> from skbio.sequence import BiologicalSequence
>>> BiologicalSequence.is_gap('.')
True
>>> BiologicalSequence.is_gap('P')
False
>>> s = BiologicalSequence('ACACGACGTT')
>>> s.is_gap('-')
True