Skip to main content

classify_motifs

Function classify_motifs 

Source
pub fn classify_motifs(counts_desc: &[u64]) -> Vec<Motif>
Expand description

Classifies the variants of a position, given their counts in descending order:

  • Index: the highest count, if above 1 (all variants tied at the highest count are Index; Tharanga et al. 2025: “a position may exhibit more than one index or major variant”);
  • Unique: count 1;
  • Major: the highest count among the rest (ties are all Major);
  • Minor: everything else.