Skip to content

Commit

Permalink
prevent R mutations from being over written
Browse files Browse the repository at this point in the history
  • Loading branch information
sage-wright committed May 10, 2024
1 parent f63cd30 commit 431be18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tbp_parser/LIMS.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def apply_lims_rules(self, gene_dictionary, DF_LIMS, max_mdl_resistance, antimic
self.logger.debug("LIMS:There are no mutations for this gene ({}) associated with this drug ({})".format(gene, antimicrobial_name))
DF_LIMS[gene_code] = "No mutations detected"

if DF_LIMS[gene_code][0] == "No sequence":
self.logger.debug("LIMS:This gene has insufficient coverage; changing antimicrobial code")
if DF_LIMS[gene_code][0] == "No sequence" and max_mdl_resistance[0] != "R":
self.logger.debug("LIMS:This gene has insufficient coverage and the max resistance isn't R; changing antimicrobial code")
DF_LIMS[antimicrobial_code] = "Pending Retest"

if "Insufficient Coverage" in mdl_interpretations and max_mdl_resistance[0] in ["WT", "S", "Insufficient Coverage"]:
Expand Down

0 comments on commit 431be18

Please sign in to comment.