skbio.core.sequence.BiologicalSequence.is_gapped

BiologicalSequence.is_gapped()[source]

Return True if char(s) in gap_alphabet are present

Returns:

bool

Indicates whether there are one or more occurences of any character in self.gap_alphabet in the BiologicalSequence.

Examples

>>> from skbio.core.sequence import BiologicalSequence
>>> s = BiologicalSequence('ACACGACGTT')
>>> s.is_gapped()
False
>>> t = BiologicalSequence('A.CAC--GACGTT')
>>> t.is_gapped()
True