skbio.sequence.GrammaredSequence.nondegenerates

GrammaredSequence.nondegenerates()[源代码]

查找序列中包含非退化字符的位置。

备注

从0.5.0起已弃用,以便在0.6.0中删除。重命名为定义

返回:

布尔向量,其中 True 表示生物序列中该位置存在非退化特征。

返回类型:

1D np.ndarray (bool)

示例

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