fn parse_erm41_lof_snps(
csv: &str,
refseq: &[u8],
) -> BTreeMap<usize, (u8, BTreeMap<u8, (String, Option<String>)>)>Expand description
Parse loss-of-function SNPs for erm(41) from a ntm-db resistance CSV.
Returns a map keyed by 0-based nucleotide position in the erm(41) reference sequence. Each value is a tuple:
.0— the wild-type base at that position (u8ASCII, e.g.b'A').1—lof_alts: a map from alternative base (u8ASCII) to a(mutation_label, drug)pair, wheremutation_labelis the HGVS protein annotation (e.g."p.Trp28*") anddrugis the affected drug (Noneif absent in the CSV, interpreted as susceptible). Only single-nucleotide substitutions that produce the annotated LoF amino-acid change (stop codon or annotated replacement) are included; synonymous changes are skipped.