-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Description
We are using the AMR package to classify MIC results at the Swedish Veterinary Agency, based on our own custom breakpoint reference. While it generally works well, the support for custom breakpoints has some room for improvement. We suggest the following adjustments:
Breakpoint dataset
- Allow
hostto beNA: Our custom breakpoints are host-agnostic and as such we have no data to put in this column (currently we just put "dogs" so that it works, otherwise all SIR values come out asNA). For flexibility, the function could first look for a breakpoint reference row that matches the input host, and secondly match against rows where host isNA.
SIR interpretation logic
- Allow custom
guidelinelabel: The interpretation code is currently written such that a sample can never be classified as "R" ifguidelineis not EUCAST or CLSI, and will instead be classified as "I" even if is above the R breakpoint. - Add parameter for open/closed breakpoint interpretation: To avoid hardcoding EUCAST vs CLSI interpretations of what counts as "R" (and thereby allow custom guidelines), we suggest adding a function parameter to indicate whether a value should be considered "R" if it's
>=or just>the R breakpoint. If the former, the function should ensure that the S breakpoint is not equal to the R breakpoint. The value of this parameter could default to the appropriate value for EUCAST/CLSI ifguidelineis not a custom value, to ensure backward-compatibility.
Use Case (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request