skbio.sequence.Protein.stops#

Protein.stops()[source]#

Find positions containing stop characters in the protein sequence.

Returns:
1D np.ndarray (bool)

Boolean vector where True indicates a stop character is present at that position in the protein sequence.

See also

has_stops

Examples

>>> from skbio import Protein
>>> s = Protein('PAW')
>>> s.stops()
array([False, False, False], dtype=bool)
>>> s = Protein('PAW*E*')
>>> s.stops()
array([False, False, False,  True, False,  True], dtype=bool)