skbio.sequence.RNA.is_reverse_complement

RNA.is_reverse_complement(other)[源代码]

确定一个序列是否是这个序列的反向补码。

状态:0.4.0稳定。

参数:

other (str, Sequence, or 1D np.ndarray (np.uint8 or '|S1')) -- 要比较的序列。

返回:

True 如果 other 是核苷酸序列的反向补码。

返回类型:

bool

抛出:

TypeError -- 如果 other 是一个 Sequence 与核苷酸序列不同的对象。

示例

>>> from skbio import DNA
>>> DNA('TTCATT').is_reverse_complement('AATGAA')
True
>>> DNA('TTCATT').is_reverse_complement('AATGTT')
False
>>> DNA('ACGT').is_reverse_complement('ACGT')
True