torchdms.utils.count_variants_with_a_mutation_towards_an_aa

torchdms.utils.count_variants_with_a_mutation_towards_an_aa(series_of_aa_substitutions, aa)[source]

Count mutations towards a given amino acid.

If an amino acid appears multiple times at different positions, we only count it once.