is_susceptible_erm41

Function is_susceptible_erm41 

Source
pub fn is_susceptible_erm41(
    pos_opt: Option<&Erm41Position28>,
    snp_calls: &[Erm41LofCall],
) -> Option<bool>
Expand description

Returns susceptibility for an erm(41) call given the observed LOF SNP calls.

Returns Some(true) if any observed base is a LOF alt — a single LOF mutation is sufficient to render erm(41) non-functional, making the organism susceptible. Otherwise delegates to pos_opt.is_susceptible(), preserving None for ambiguous, undetermined, or absent positions. pos_opt: None (anchor not found) still allows LOF SNPs to return Some(true).