skbio.sequence.Protein.definites#

Protein.definites()[source]#

Find positions containing definite characters in the sequence.

Returns:
1D np.ndarray (bool)

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

Examples

>>> from skbio import DNA
>>> s = DNA('ACWGN')
>>> s.definites()
array([ True,  True, False,  True, False], dtype=bool)