skbio.sequence.Protein.nondegenerates#
- Protein.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 of0.5.0
. It has been renamed todefinites
.See also
Examples
>>> from skbio import DNA >>> s = DNA('ACWGN') >>> s.nondegenerates() array([ True, True, False, True, False], dtype=bool)