RNA.is_reverse_complement(other)[source]¶Determine if a sequence is the reverse complement of this sequence.
State: Stable as of 0.4.0.
| Parameters: | other : str, Sequence, or 1D np.ndarray (np.uint8 or ‘|S1’)
|
|---|---|
| Returns: | bool
|
| Raises: | TypeError
|
See also
Examples
>>> 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