DNA.match_frequency(other, relative=False)[source]¶Return count of positions that are the same between two sequences.
State: Stable as of 0.4.0.
| Parameters: |
|
|---|---|
| Returns: | Number of positions that are the same between the sequences. This
will be an |
| Return type: | int or float |
| Raises: |
|
See also
Examples
>>> from skbio import Sequence
>>> s = Sequence('GGUC')
>>> t = Sequence('AGUC')
>>> s.match_frequency(t)
3
>>> s.match_frequency(t, relative=True)
0.75