seqme.metrics.Uniqueness#
- class seqme.metrics.Uniqueness[source]#
Fraction of unique sequences within a provided list of sequences.
The uniqueness score is defined as:
\[\text{uniqueness} = \frac{|\mathrm{unique}(S)|}{|S|}\]where \(S\) is the set of input sequences and \(|\mathrm{unique}(S)|\) is the number of distinct sequences.
- __init__()#
- __call__(sequences)[source]#
Compute the fraction of sequences remaining after removing any duplicate sequences.
Example
If
sequencescontains["KR", "KR"], the uniqueness is0.5.- Parameters:
- Returns:
Uniqueness.
- Return type:
Methods
Attributes
|
Name of the metric. |
|
Whether lower or higher scores indicate better performance. |