Module rrs

Module rrs 

Source

Structsยง

ResistanceVariant ๐Ÿ”’
RrsSnpCall
RrsSusceptibilityCalls
All rrs susceptibility evidence for one sample, ready for UI display.

Staticsยง

RRS_REFS ๐Ÿ”’
Parsed and substring-deduplicated rrs reference sequences, initialised once.
RRS_RESISTANCE_SNPS ๐Ÿ”’

Functionsยง

call_rrs_snps ๐Ÿ”’
identify_sequence_16s
Align query against every Mycobacteriaceae 16S rRNA reference in REF_MYCO_RRS and return all hits sorted by identity (highest first).
is_susceptible_rrs
Returns Some(false) if any observed SNP base is a resistance-conferring alt, or None if no resistance alt is observed.
is_susceptible_rrs_by_snp_calls_rare
Returns Some(false) if any observed SNP base is a resistance-conferring alt, or None otherwise. Parallel to is_susceptible_rrl_by_snp_calls_rare: rrs has no position-based anchor call, so all SNP resistance here is inherently not explained by a position mutation.
parse_rrs_resistance_snps ๐Ÿ”’

Type Aliasesยง

RrsSnpMap ๐Ÿ”’
Maps a reference position to (wt_base, alts) where alts maps each resistance alt to (drugs, E.coli nomenclature).