Module erm41

Module erm41 

Source

Structsยง

Erm41LofCall
Erm41LofRow ๐Ÿ”’
Erm41SusceptibilityCalls
All erm(41) susceptibility evidence for one sample, ready for UI display.

Enumsยง

Erm41Position28

Staticsยง

ERM41_LOF_SNPS ๐Ÿ”’

Functionsยง

call_erm41_lof_snps ๐Ÿ”’
Maps each known loss-of-function SNP position to the base observed in the query sequence, adjusting for the alignment offset between reference and query coordinates.
empty_string_as_none ๐Ÿ”’
find_erm41_display_window ๐Ÿ”’
identify_sequence_erm41
Unlike identify_sequence_hsp65() and identify_sequence_rrl_ntm(), this only uses reference sequences extracted via sequences.toml and not the database fetched via fetch_myco_sequences().
is_susceptible_erm41
Returns susceptibility for an erm(41) call given the observed LOF SNP calls.
is_susceptible_erm41_by_lof_snps
Returns Some(true) if any observed SNP base is a known LOF alt (erm(41) inactivated โ†’ susceptible), or None if no LOF alt is observed.
is_susceptible_erm41_by_position28
Returns susceptibility based on position 28 alone, without considering LOF SNP calls.
parse_erm41_lof_snps ๐Ÿ”’
Parse loss-of-function SNPs for erm(41) from a ntm-db resistance CSV.
three_letter_to_one ๐Ÿ”’
translate_codon ๐Ÿ”’

Type Aliasesยง

Erm41LofSnpMap ๐Ÿ”’
Maps a reference position to (wt_base, alts) where alts maps each LoF alt base to (mutation_label, drug).