skbio.sequence.GrammaredSequence.has_nondegenerates

GrammaredSequence.has_nondegenerates()[source]

Determine if sequence contains one or more non-degenerate characters

Note

Deprecated as of 0.5.0 for removal in 0.5.2. Renamed to has_definites

Returns:

bool

Indicates whether there are one or more occurrences of non-degenerate characters in the biological sequence.

Examples

>>> from skbio import DNA
>>> s = DNA('NWNNNNNN')
>>> s.has_nondegenerates()
False
>>> t = DNA('ANCACWWGACGTT')
>>> t.has_nondegenerates()
True