skbio.sequence.DNA.definites

DNA.definites()[source]

Find positions containing definite characters in the sequence.

State: Stable as of 0.5.0.

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)