skbio.sequence.Protein.has_gaps¶
-
Protein.
has_gaps
()[source]¶ Determine if the sequence contains one or more gap characters.
State: Stable as of 0.4.0.
- Returns
Indicates whether there are one or more occurrences of gap characters in the biological sequence.
- Return type
Examples
>>> from skbio import DNA >>> s = DNA('ACACGACGTT') >>> s.has_gaps() False >>> t = DNA('A.CAC--GACGTT') >>> t.has_gaps() True