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