skbio.sequence.GrammaredSequence.nondegenerates#

GrammaredSequence.nondegenerates()[source]#

Find positions containing non-degenerate characters in the sequence.

Returns:
1D np.ndarray (bool)

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

Warning

nondegenerates is deprecated as of 0.5.0. It has been renamed to definites.

Examples

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