Sequence.
mismatches
(other)[source]¶Find positions that do not match with another sequence.
State: Stable as of 0.4.0.
Parameters: | other (str, Sequence, or 1D np.ndarray (np.uint8 or '|S1')) – Sequence to compare to. |
---|---|
Returns: | Boolean vector where |
Return type: | 1D np.ndarray (bool) |
Raises: |
|
See also
Examples
>>> from skbio import Sequence
>>> s = Sequence('GGUC')
>>> t = Sequence('GAUU')
>>> s.mismatches(t)
array([False, True, False, True], dtype=bool)