Files
AMR/news/index.md
T

1194 lines
64 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog
## AMR 3.1.0.9012
This version fixes a critical bug in WISCA that biased all coverage
estimates of [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
and `antibiogram(..., wisca = TRUE)` downwards since AMR 3.0.0. Users
are strongly advised to re-run their WISCA analyses.
#### Changed
- WISCA ([`wisca()`](https://amr-for-r.org/reference/antibiogram.md) and
`antibiogram(..., wisca = TRUE)`)
- Fixed a critical bug that systematically underestimated the coverage
of every WISCA since AMR 3.0.0. Pathogens absent from a syndromic
group, and pathogens without any test result for a regimen, were
still included in the model with only prior information: each added
a prior weight of 1 to the pathogen incidence, and untested
pathogens kept their full incidence weight while counting as about
50% susceptible. The bias was largest for stratified analyses (e.g.,
up to 14 percentage points for meropenem in random strata of
`example_isolates`). Now, only pathogens that occur in a group and
have at least one test result for the regimen are included. Please
re-run all WISCA analyses
([\#337](https://github.com/msberends/AMR/issues/337))
- [`retrieve_wisca_parameters()`](https://amr-for-r.org/reference/antibiogram.md)
now returns only the parameters actually used in the model, and
`n_total` in the `long_numeric` attribute now counts only isolates
of the pathogens included for that regimen
- A new warning is given when the prior weight of 1 per pathogen
(Bielicki *et al.*, 2016) accounts for more than 5% of the pathogen
incidence, i.e., with rare pathogens or small groups, as this can
strongly lower the estimated coverage; consider
[`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
or fewer and larger groups in that case
- Microorganism coercion
([`as.mo()`](https://amr-for-r.org/reference/as.mo.md))
- Fixed the misaligned arrows in the message on taxonomically renamed
microorganisms in colour-supporting consoles, for old names whose
author reference lacks “*et al.*”
([\#336](https://github.com/msberends/AMR/issues/336))
#### Other
- The manual index on the website was rewritten to improve findability,
with sections ordered by task and a filter field
- Fixed the link to the copyright section and added MycoBank as a
taxonomy source in the *Welcome to AMR* vignette
([\#325](https://github.com/msberends/AMR/issues/325))
## AMR 3.1.0
CRAN release: 2026-10-16
This substantial release makes most core functions considerably faster,
adds EUCAST 2026 and CLSI 2026 breakpoints, adopts the new prokaryotic
kingdoms of Göker and Oren (2024), introduces WT/NWT interpretation for
ECOFFs, unifies the EUCAST and CLSI interpretive rules, and supports
`tidymodels` pipelines. As it contains several breaking changes, please
read the *Breaking* section below before updating.
#### Breaking
- The former *kingdoms* Bacteria and Archaea are now each divided into
four kingdoms, with new top-level *domains* Bacteria and Archaea
(Göker and Oren, 2024, DOI: 10.1099/ijsem.0.006242). Following this, a
new `domain` column was added to the `microorganisms` data set, and
[`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md) now
returns the formal kingdom (e.g., `"Pseudomonadati"` instead of
`"Bacteria"`). Use
[`mo_domain()`](https://amr-for-r.org/reference/mo_property.md) for
the old behaviour. For non-prokaryotic kingdoms (Fungi, Protozoa,
etc.), `kingdom` and `domain` are identical.
| [`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md) \< 3.1.0 | [`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md) now | [`mo_domain()`](https://amr-for-r.org/reference/mo_property.md) (unchanged) |
|----|----|----|
| Bacteria | Bacillati | Bacteria |
| | Fusobacteriati | Bacteria |
| | Pseudomonadati | Bacteria |
| | Thermotogati | Bacteria |
| | | |
| Archaea | Methanobacteriati | Archaea |
| | Nanobdellati | Archaea |
| | Promethearchaeati | Archaea |
| | Thermoproteati | Archaea |
| | | |
| Fungi | Fungi | Fungi |
| | | |
| Protozoa | Protozoa | Protozoa |
Previously,
[`mo_domain()`](https://amr-for-r.org/reference/mo_property.md) was an
alias of
[`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md); it
is now a distinct function. Its output is therefore unchanged, while
[`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md) now
returns the new formal kingdom. A one-time note per session explains
this change when bacterial or archaeal records are queried.
- Parallel computing in
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md),
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md), and
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md) now uses
the `future` and `future.apply` packages, which is faster. A
non-sequential plan (e.g., `future::plan(future::multisession)`) must
be active before using `parallel = TRUE`
([\#281](https://github.com/msberends/AMR/issues/281)).
- The options of `capped_mic_handling` in
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md) have been
redefined as `"none"`, `"conservative"`, `"standard"` (default), and
`"lenient"`. The option `"inverse"` is no longer available
([\#243](https://github.com/msberends/AMR/issues/243)).
- [`as.sir()`](https://amr-for-r.org/reference/as.sir.md) now returns
WT/NWT (Wildtype/Non-wildtype) instead of S/R when using ECOFF-based
interpretation with `breakpoint_type = "ECOFF"`. WT/NWT results are
fully supported in all resistance and susceptibility functions and in
all plots ([\#254](https://github.com/msberends/AMR/issues/254)).
- Aggregated analyses now follow the guideline for the ‘I’ category, set
with the new `guideline` argument or the `AMR_guideline` option:
EUCAST considers ‘I’ susceptible and CLSI considers ‘I’ resistant,
while SDD and WT are always considered susceptible, and NWT and NS
always resistant (see section *Interpretation of SIR* in
[`?as.sir`](https://amr-for-r.org/reference/as.sir.md)). This applies
to [`count_df()`](https://amr-for-r.org/reference/count.md),
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md),
[`sir_df()`](https://amr-for-r.org/reference/proportion.md),
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md), and
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md),
which with CLSI now return `"S"` vs. `"IR"` instead of `"SI"`
vs. `"R"`, and to
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md),
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), and
[`format()`](https://rdrr.io/r/base/format.html) on the output of
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md).
Previously, these functions always considered ‘I’ susceptible, as with
EUCAST. Use `guideline = "EUCAST"` for the old behaviour.
- The `combine_SI` argument of these functions is deprecated in favour
of `guideline`. While set, it is followed literally and takes
precedence over `guideline`. Use `guideline = NULL` instead of
`combine_SI = FALSE` to keep S, I, and R separate.
#### New
- **Updated clinical breakpoints**
- EUCAST 2026 and CLSI 2026 are now supported, by adding over 5,700
new breakpoints to the `clinical_breakpoints` data set. EUCAST 2026
is now the default guideline for all MIC and disk diffusion
interpretations.
- Human EUCAST breakpoints from 2019 (v9.0) onwards are now retrieved
directly from the EUCAST Excel files, instead of relying on the
WHONET repository. As a result:
- `clinical_breakpoints` now contains blocking rows (`NA`
breakpoints, with the reason in `note`) where EUCAST gives no
breakpoint for an organism, so that
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md) no longer
falls back to the breakpoint of a broader taxon. This includes
infections other than UTI where EUCAST gives breakpoints in
brackets or no breakpoint, but does give a breakpoint for UTI,
e.g., aminoglycosides for *Acinetobacter* spp.
- Restrictions in EUCAST notes are applied, e.g., zone diameter
breakpoints for *E. coli* only
- EUCAST PK-PD (non-species related) breakpoints of 2019-2023 and
*H. parainfluenzae* MIC breakpoints are now included
- **Unified interpretive rules**
- New function
[`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
applies the interpretive rules of both EUCAST and CLSI.
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
is now a wrapper around this function
([\#235](https://github.com/msberends/AMR/issues/235),
[\#259](https://github.com/msberends/AMR/issues/259)).
- Species named in a rule now also match all other names of the same
accepted taxon (e.g., ‘Clostridium ramosum’ for *Thomasclavelia
ramosa*). This also updated the `intrinsic_resistant` data set.
- **Support for `tidymodels` pipelines**
- New recipe steps
[`step_mic_log2()`](https://amr-for-r.org/reference/amr-tidymodels.md)
and
[`step_sir_numeric()`](https://amr-for-r.org/reference/amr-tidymodels.md)
to use MIC and SIR data in modelling pipelines
- New column selectors
[`all_sir()`](https://amr-for-r.org/reference/amr-tidymodels.md),
[`all_mic()`](https://amr-for-r.org/reference/amr-tidymodels.md),
and
[`all_disk()`](https://amr-for-r.org/reference/amr-tidymodels.md)
- New `esbl_isolates` data set for practising AMR modelling
- **Morphology of bacteria**
- New `morphology` column in the `microorganisms` data set, with the
corresponding function
[`mo_morphology()`](https://amr-for-r.org/reference/mo_property.md)
to return the cell shape of bacteria. Data are sourced from BacDive;
values prefixed with “likely” are extrapolated from the consensus at
genus level.
- New argument `add_morphology` in
[`mo_gramstain()`](https://amr-for-r.org/reference/mo_property.md)
to return combined results, such as `"Gram-negative rods"`
- **Antimicrobials**
- New function
[`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md) to
combine SIR results of multiple antimicrobials into one variable,
for combination therapy (`method = "most_susceptible"`) or for
resistance within a group (`method = "most_resistant"`)
([\#321](https://github.com/msberends/AMR/issues/321))
- New function
[`add_custom_antimicrobial_synonyms()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
to add local names, such as trade names, to existing antimicrobials
([\#307](https://github.com/msberends/AMR/issues/307))
- New antimicrobial selectors
[`ionophores()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`peptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`phosphonics()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
and
[`spiropyrimidinetriones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
- New antimicrobials: cefepime/taniborbactam (`FTA`),
ceftibuten/avibactam (`CTA`), clorobiocin (`CLB`), kasugamycin
(`KAS`), ostreogrycin (`OST`), sulbactam/durlobactam (`SUD1`,
[\#308](https://github.com/msberends/AMR/issues/308)), taniborbactam
(`TAN`), thiostrepton (`THS`), xeruborbactam (`XER`), and zorbamycin
(`ZOR`)
- **Other**
- New function
[`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md) to
assess the distributions of susceptibility and incidence from the
Monte Carlo simulations of WISCA
- New function
[`amr_course()`](https://amr-for-r.org/reference/amr_course.md) to
download and unpack course or webinar materials from GitHub in one
call
- New typed missing value constants `NA_ab_` and `NA_mo_`, for use in
pipelines that need missing values of a specific class
- A registry of all MO codes since v2.0.0 now prevents existing codes
from being reused or mixed up. Codes of earlier releases are
translated to the current code of the same taxon.
- New column `source` in the `microorganisms.codes` data set, stating
the source of a code and the name it refers to, e.g.,
`"WHONET (Enterobacter aerogenes)"`
#### Changed
- SIR interpretation
([`as.sir()`](https://amr-for-r.org/reference/as.sir.md))
- New argument `enforce_method` (`"auto"`, `"mic"`, or `"disk"`) to
force the interpretation method when S3 class information is lost,
e.g., when called from Python
([\#291](https://github.com/msberends/AMR/issues/291))
- When input consists of whole numbers only, disk zones are now
assumed rather than MIC values
([\#291](https://github.com/msberends/AMR/issues/291))
- Capped MICs (e.g., `<=0.5`) now return `I` instead of `S` or `NI` if
there is no S category, i.e., in case of an off-scale S breakpoint
such as EUCAST’s 0.001 mg/L
([\#295](https://github.com/msberends/AMR/issues/295))
- Capped MICs are no longer forced to `S` or `R` if there is no
breakpoint for the drug-bug combination
- Fixed the documented default of `capped_mic_handling`, which is
`"standard"`
- On data frames, already-converted SIR columns are no longer dropped
on a re-run ([\#278](https://github.com/msberends/AMR/issues/278))
- Metadata columns (e.g., `patient`, `ward`) are no longer
misidentified as antimicrobial columns
- `info = FALSE` now suppresses all messages, including those for
columns without breakpoints
- Combined MIC/SIR input values (e.g., `"<= 0.002; S"` or
`"S; 0.002"`) are now parsed correctly
([\#252](https://github.com/msberends/AMR/issues/252))
- Setting a year-qualified guideline, such as
`options(AMR_guideline = "EUCAST 2012")`, no longer causes errors or
silently wrong results in
[`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md),
[`resistance()`](https://amr-for-r.org/reference/proportion.md),
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md),
[`count_resistant()`](https://amr-for-r.org/reference/count.md),
[`count_susceptible()`](https://amr-for-r.org/reference/count.md),
and the SIR plotting and printing functions
([\#298](https://github.com/msberends/AMR/issues/298))
- With an unknown `uti` (`NA`, the default), non-UTI breakpoints are
now consistently preferred over UTI breakpoints. Previously, this
preference was only applied together with its note, which is shown
once. UTI breakpoints are only used if there are no non-UTI
breakpoints, which is now noted in
[`sir_interpretation_history()`](https://amr-for-r.org/reference/as.sir.md)
for every interpretation. A blocking row of a broader taxon does not
override a UTI breakpoint of the organism itself, e.g.,
Enterobacterales and nitroxoline for *E. coli*.
- `clinical_breakpoints` data set
- Fixed EUCAST breakpoint rules for *Aerococcus* (v12 onwards), which
were never applied, and for *Pasteurella*, which were partly filed
under *Neisseria meningitidis*
([\#290](https://github.com/msberends/AMR/issues/290))
- Fixed streptomycin breakpoints imported from WHONET, which were
coded as streptoduocin (`STR`) instead of streptomycin (`STR1`)
- Fixed CLSI breakpoints for sulbactam/durlobactam, which were coded
as sulfadimethoxine (`SUD`), and added the missing EUCAST 2011
breakpoints for roxithromycin
([\#308](https://github.com/msberends/AMR/issues/308))
- Fixed some EUCAST Expert Rules, mostly on *S. pneumoniae*
- Zone diameters for which the guideline has no S category (coded by
WHONET as an S breakpoint of 80 or 99 mm) are now blocking rows for
EUCAST, e.g. cefuroxime oral in *H. influenzae* in EUCAST 2011, and
keep only the R breakpoint for CLSI, e.g. fluconazole in *C.
glabrata*. Previously, these S breakpoints were stored as 50 mm.
- Breakpoints and ECOFFs for *Salmonella* serovars Typhi, Typhimurium,
and Paratyphi, and ECOFFs for the *Bacteroides fragilis* complex,
are now assigned to these taxa instead of to *S. enterica* subsp.
*enterica* and *B. fragilis*, and ECOFFs of amphotericin B for
*Neocosmospora solani* were added
- Microorganism coercion
([`as.mo()`](https://amr-for-r.org/reference/as.mo.md)) and properties
(`mo_*()`)
- Considerably faster through one consistent session cache design,
which is cleared when lookup tables change, e.g., after
[`add_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
([\#313](https://github.com/msberends/AMR/issues/313))
- `mo_*()` functions now retrieve properties of valid `mo` input
directly, and only for unique values
- Subsetting, combining, and binding rows of `mo` vectors (e.g., in
[`rbind()`](https://rdrr.io/r/base/cbind.html)) is now much faster,
as codes are checked against a hashed set instead of the whole
`microorganisms` data set
- The mapping of outdated taxonomic names to their current names is
now remembered per code
- Previously coerced input is now recognised again, e.g., for an
unknown species of a known genus, instead of being matched again on
every call ([\#313](https://github.com/msberends/AMR/issues/313))
- [`mo_uncertainties()`](https://amr-for-r.org/reference/as.mo.md) now
also lists uncertainties of previously coerced input
- Translated names in the set language are now recognised, such as the
output of `mo_name(x, language = "fr")`, and cached per language
- Input of the form `"X complex"` now falls back to `"X"` when the
complex is not a distinct taxon, preventing `NA` for valid clinical
descriptions such as `"Proteus vulgaris complex"`, while a complex
named after several of its species returns the complex of one of
them, e.g., `"Acinetobacter calcoaceticus-baumannii complex"`
returns *A. baumannii* complex
([\#287](https://github.com/msberends/AMR/issues/287))
- Abbreviated genus input now ranks candidates with an exactly
matching species epithet above more prevalent organisms, so that
e.g. `"S. apiospermum"` returns *Scedosporium apiospermum* instead
of a *Staphylococcus* species
([\#288](https://github.com/msberends/AMR/issues/288))
- Abbreviated genus input for species with subspecies (e.g.,
`"P. ovale"`) now returns the species instead of a more prevalent
organism, while explicit subspecies (e.g., `"P. ovale curtisi"`) are
preserved ([\#288](https://github.com/msberends/AMR/issues/288))
- *Salmonella* serovars written with the species, such as
`"Salmonella enterica serovar Typhi"`, no longer return *Salmonella
bongori* or another subspecies
- [`as.mo()`](https://amr-for-r.org/reference/as.mo.md) and
[`mo_current()`](https://amr-for-r.org/reference/mo_property.md) now
find the current name of synonyms with multiple sources (e.g.,
*Chaetomium abuense*)
- [`mo_taxonomy()`](https://amr-for-r.org/reference/mo_property.md)
and [`mo_info()`](https://amr-for-r.org/reference/mo_property.md)
now contain an extra element `domain`
- Own microorganism codes
([`set_mo_source()`](https://amr-for-r.org/reference/mo_source.md) and
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md))
- Fixed
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
removing the `mo_source` file at the default location in interactive
sessions, when called with a `destination` that does not exist
- Fixed
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
returning the `mo_source` already loaded instead of the one at the
requested `destination`
- Fixed
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md),
and therefore [`as.mo()`](https://amr-for-r.org/reference/as.mo.md)
and all `mo_*()` functions, throwing an error in interactive
sessions after the original file of the `mo_source` was moved or
deleted. The `mo_source` file is now removed, as documented.
- An updated original file now updates the `mo_source` file at its own
`destination` instead of at the default location
- `microorganisms` data set
- Taxonomic update of all microorganisms, now based on COL 2026-04-18
XR, LPSN and BacDive of October 2026, and MycoBank of January 2026
- Names listed twice by a source now take the correct record (e.g.,
*Eggerthella lenta*, *Gordonia amarae*, and *Anisakis simplex* were
synonyms without a current name)
- Synonyms without a current name are now linked via LPSN or removed,
with their codes retired. The *M. tuberculosis* complex is always
kept.
- Higher taxonomy and parent records are now consistent, and all data
sets refer only to current names (except `intrinsic_resistant` and
`microorganisms.codes`)
- *Erysipelatoclostridium* and its species are now synonyms of
*Thomasclavelia*; *E. merdavium* is retired
- Author references now strip `emend.` and everything after it, so
that `ref` reflects the combination authority rather than the
emendation author (e.g., *Rhodococcus equi* now returns “Goodfellow
et al., 1977” instead of “Nouioui et al., 2018”)
- `microorganisms.codes` data set
- Fixed WHONET codes that referred to an unrelated microorganism,
e.g., `VAG` (“Vaginal flora”) to *Vagococcus*, `PAR` (“Parasite”) to
*Paracoccus*, the *Leptospira interrogans* serovars to *Legionella*,
and *Salmonella* O-groups to *Salmonella* Group A. Codes for
organisms that are not in the `microorganisms` data set, such as
viruses, now refer to `UNKNOWN`, and names that only partly exist
refer to the genus.
- WHONET codes for *Salmonella* serovars now refer to the serovar
instead of *S. enterica* subsp. *enterica*, e.g., `SAT` to
*Salmonella* Typhi
- Codes now refer to the name they were named after, also if that name
is outdated, so that the code and the microorganism code remain
relatable, e.g., `EAE` refers to *Enterobacter aerogenes*
(`B_ENTRBC_AERG`).
[`as.mo()`](https://amr-for-r.org/reference/as.mo.md) still returns
the current name, here *Klebsiella aerogenes*.
- Added 271 WHONET codes
- Antimicrobial coercion
([`as.ab()`](https://amr-for-r.org/reference/as.ab.md)) and
`antimicrobials` data set
- Considerably faster through the same session cache design as
[`as.mo()`](https://amr-for-r.org/reference/as.mo.md)
([\#313](https://github.com/msberends/AMR/issues/313))
- Input that is not a known name or code is now coerced up to 70 times
faster, with identical results, as LOINC codes, synonyms, and
abbreviations are looked up in one step instead of per
antimicrobial, and translated names are built once per language
- Fixed a bug where results of `fast_mode` (used internally) were
remembered and reused by later regular calls, which could return
`NA` for valid input
([\#313](https://github.com/msberends/AMR/issues/313))
- Codes containing “PH” or “TH” (e.g., `ETH`, `PHE`) no longer return
`NA` when mixed with unrecognised input
([\#245](https://github.com/msberends/AMR/issues/245))
- Input that is not valid UTF-8 (e.g., text exported in a local
encoding such as CP949) now returns `NA` with a warning instead of
an error
- [`ab_reset_session()`](https://amr-for-r.org/reference/as.ab.md) no
longer clears the uncertainties of
[`as.mo()`](https://amr-for-r.org/reference/as.mo.md)
([\#313](https://github.com/msberends/AMR/issues/313))
- `antimicrobials$group` is now a `list`, so that drugs belonging to
multiple groups are fully represented. Use
`ab_group(all_groups = TRUE)` to retrieve all groups of a drug
([\#246](https://github.com/msberends/AMR/issues/246)).
- Trade names of combinations (Tazocin, Timentin, Recarbrio, Exblifep)
were listed under a single component, and names of screening
libraries and suppliers (e.g., Prestwick, Spectrum) as synonyms.
These have been corrected
([\#315](https://github.com/msberends/AMR/issues/315)).
- Antibiograms
([`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md) and
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md))
- [`wisca()`](https://amr-for-r.org/reference/antibiogram.md) now
follows Bielicki *et al.* (2016) more strictly by using
$`\text{Beta}(1, 9999)`$ for intrinsically resistant pairs, forcing
near-zero susceptibility regardless of observed data (based on
EUCAST Expected Resistant Phenotypes)
- Fixed a bug where both functions failed without the `antimicrobials`
argument if `tidyselect` was not available, e.g., for binary
installations without `dplyr`
- Isolates of unknown species are now included in grouped antibiograms
and in [`wisca()`](https://amr-for-r.org/reference/antibiogram.md),
as they already were in traditional antibiograms. They were
previously excluded silently, with the warning “invalid
microorganism code, NA generated”. This can change WISCA coverage
estimates.
- Grouped traditional antibiograms now show the (translated) pathogen
names, as ungrouped antibiograms do, instead of microorganism codes
- [`wisca()`](https://amr-for-r.org/reference/antibiogram.md) and
[`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md) are
considerably faster, especially with syndromic groups, by
determining intrinsic resistance and pathogen names only once per
regimen and pathogen
- Resistance and susceptibility calculation
- New argument `guideline` (default: the `AMR_guideline` option,
otherwise EUCAST) in
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md),
[`resistance()`](https://amr-for-r.org/reference/proportion.md),
[`count_df()`](https://amr-for-r.org/reference/count.md),
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md),
[`sir_df()`](https://amr-for-r.org/reference/proportion.md),
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md),
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md),
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md), and
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md)
to interpret the ‘I’ category correctly per guideline. Functions
that return results per category also accept `guideline = NULL` to
keep S, I, and R separate, while functions that return a single
proportion or count give an informative error.
- When EUCAST is assumed because neither the `guideline` argument nor
the `AMR_guideline` option is set, a message explains how to change
this, once per session and not in R Markdown or Quarto documents
- `count_*()` and `proportion_*()` now handle WT, NWT, NS, and NI
results correctly
([\#321](https://github.com/msberends/AMR/issues/321))
- MICs and disk diffusion
- New argument `round_to_next_log2` in
[`as.mic()`](https://amr-for-r.org/reference/as.mic.md) and
[`rescale_mic()`](https://amr-for-r.org/reference/as.mic.md) to
round values up to the nearest log2 dilution level
([\#255](https://github.com/msberends/AMR/issues/255))
- [`as.mic()`](https://amr-for-r.org/reference/as.mic.md) now handles
values in scientific notation (e.g., `1e-3`) correctly
- Input validation of
[`as.disk()`](https://amr-for-r.org/reference/as.disk.md) is now
more strict, rejecting values that are not recognisable as a numeric
disk zone diameter. Values higher than 50 mm now return `NA` with a
warning, instead of being set to 50 mm.
- Plotting ([`plot()`](https://amr-for-r.org/reference/plot.md),
[`barplot()`](https://rdrr.io/r/graphics/barplot.html), and
[`autoplot()`](https://ggplot2.tidyverse.org/reference/autoplot.html)
for MIC, disk diffusion and SIR values, and the `scale_*_mic()` and
`scale_*_sir()` functions)
- The colours and legend labels of interpreted MIC and disk values are
now based on the interpretation itself instead of matching colours,
so that the legend of
[`plot()`](https://amr-for-r.org/reference/plot.md) no longer shows
SDD when `colours_SIR` gives SDD the colour of S (e.g., with one or
three colours), and NI and NS are labelled too
- Fixed
[`autoplot()`](https://ggplot2.tidyverse.org/reference/autoplot.html)
for disk diffusion values, which left SDD bars without colour and
legend entry
- Fixed [`barplot()`](https://rdrr.io/r/graphics/barplot.html) for MIC
values, which ignored the `language` and `expand` arguments, and
which now also has the `include_PKPD` and `breakpoint_type`
arguments
- Fixed [`barplot()`](https://rdrr.io/r/graphics/barplot.html) for SIR
values, which gave NI, WT, and NWT the wrong colours, and always
showed empty bars for WT, NWT, and NS.
[`barplot()`](https://rdrr.io/r/graphics/barplot.html) and
[`autoplot()`](https://ggplot2.tidyverse.org/reference/autoplot.html)
for SIR values now always show S and R, and all other values (such
as SDD, I, WT, NWT, and NS) only when they occur. Data with only WT
and NWT shows these two.
- [`autoplot()`](https://ggplot2.tidyverse.org/reference/autoplot.html)
for disk diffusion values now validates `include_PKPD` and
`breakpoint_type`, and
[`plot()`](https://amr-for-r.org/reference/plot.md) and
[`autoplot()`](https://ggplot2.tidyverse.org/reference/autoplot.html)
for SIR values now validate `language`
- The y axis of [`plot()`](https://amr-for-r.org/reference/plot.md)
and [`barplot()`](https://rdrr.io/r/graphics/barplot.html) now has a
readable number of tick marks for large counts, instead of one per
count
- A named `colours_SIR` is now matched by name in all plotting
functions, and S, I and R get their default colour if not set. SDD
gets the colour of S if not set. Previously, the colours of S/I and
I/R were taken by position, and a named vector of three colours gave
missing colours.
- `keep_operators = TRUE` and `FALSE` in the `scale_*_mic()` functions
now behave like `"all"` and `"none"`, as in
[`as.mic()`](https://amr-for-r.org/reference/as.mic.md)
- Fixed the `scale_*_sir()` functions failing when `values` was set. A
named `values` (e.g., `values = c(S = "green")`) now replaces the
colours of the SIR values it names, and
[`scale_x_sir()`](https://amr-for-r.org/reference/plot.md) warns
that it ignores `values`.
- Fixed [`scale_x_sir()`](https://amr-for-r.org/reference/plot.md)
ignoring other arguments, such as `name`
- The `scale_*_sir()` functions now call ‘I’ “Intermediate” by default
if the `AMR_guideline` option is set to EUCAST before 2019
- [`facet_sir()`](https://amr-for-r.org/reference/plot.md) now accepts
unquoted column names, e.g., `facet_sir(antibiotic)`
- MDRO determination
([`mdro()`](https://amr-for-r.org/reference/mdro.md))
- Resistance can now be inferred from a drug/inhibitor combination
when the column of the base drug is absent (e.g., piperacillin
inferred from piperacillin/tazobactam). This is controlled with the
new argument `infer_from_combinations` (default: `TRUE`)
([\#209](https://github.com/msberends/AMR/issues/209)).
- BRMO classification now includes bacterial complexes
([\#275](https://github.com/msberends/AMR/issues/275))
- Fixed a bug in the CMI 2012 guideline where pandrug-resistant (PDR)
isolates were classified as extensively drug-resistant (XDR), and
another isolate could be marked as PDR instead, if the isolate was
not among the first rows of the data. This can change the PDR and
XDR results of `guideline = "CMI 2012"` (the default).
- Considerably faster, as the classes per isolate are now determined
per column instead of per cell
- [`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
- New argument `property_for_each` for sub-grouping within the top *n*
groups. Rank ordering is enforced, so that only lower taxonomic
ranks are allowed.
- `property = NULL` is now accepted
- The inner filter now tracks the original row indices, to prevent
contamination across groups
- Translations
- Improved French translations, kindly provided by Mathilde Garé
([\#322](https://github.com/msberends/AMR/issues/322))
- Improved translations of combination names and antimicrobial groups
in 20 languages
- Translating is now around 50 times faster, with identical results,
as the translations are prepared once per language and applied to
all values at once. This also makes
[`ab_group()`](https://amr-for-r.org/reference/ab_property.md)
faster in other languages.
- Translations are no longer translated again (e.g., “Ticarcillinee”
in Dutch and “groupee” in French), and parts of combination names
are no longer left untranslated
- Fixed Italian names of CoNS and CoPS
([\#256](https://github.com/msberends/AMR/issues/256)), Dutch names
of antimicrobials, and output of
[`sir_df()`](https://amr-for-r.org/reference/proportion.md) in other
languages ([\#272](https://github.com/msberends/AMR/issues/272))
- Added translations of “Susceptible dose-dependent”,
“Non-susceptible”, “Wildtype”, and “Non-wildtype”, which were
previously shown half translated in plots
- Corrected the translations of the interpretation categories (S, I,
R, and NI) in 18 languages, which were partly incorrect (e.g.,
Ukrainian words in Russian, “temporary” for Intermediate in Finnish,
and “intermediate product” in Czech), and made them consistent with
the newly added categories. Where available, the terms of national
antimicrobial susceptibility testing committees and laboratories are
used, e.g., “Sensibel bei erhöhter Exposition” (German), “Sensible,
cuando se incrementa la exposición” (Spanish), and “Känslig vid ökad
exponering” (Swedish).
- Interpretive rules
([`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md),
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md),
and
[`clsi_rules()`](https://amr-for-r.org/reference/interpretive_rules.md))
- Considerably faster, around 11 to 18 times, with identical results
- The number of added and changed values now only counts values that
were actually written, so that values left untouched due to
`overwrite = FALSE` or `add_if_missing = FALSE` are no longer
reported as changes or additions, also not in the output of
`verbose = TRUE`
([\#259](https://github.com/msberends/AMR/issues/259))
- The changes of custom rules are now also printed when no other rules
were applied
- The `rule` column of the output of `verbose = TRUE` no longer
contains formatting markup (e.g., `{.field AMC}`) for the
inhibitor-inheritance rules
- [`custom_eucast_rules()`](https://amr-for-r.org/reference/AMR-deprecated.md)
has been renamed to
[`custom_interpretive_rules()`](https://amr-for-r.org/reference/custom_interpretive_rules.md).
The old name is now deprecated but still works
([\#268](https://github.com/msberends/AMR/issues/268)).
- The package option `AMR_eucastrules` has been replaced by
`AMR_interpretive_rules`, which applies to
[`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md),
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md),
and
[`clsi_rules()`](https://amr-for-r.org/reference/interpretive_rules.md).
Its default is now `c("breakpoints", "expected_phenotypes")`. A set
`AMR_eucastrules` option is now ignored, with a warning in
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md).
- Logical comparison (`==`, `!=`) of the `sir` class with a `factor` is
now possible on R \>= 4.3
- New argument `guideline` in
[`random_mic()`](https://amr-for-r.org/reference/random.md) and
[`random_disk()`](https://amr-for-r.org/reference/random.md),
defaulting to the `AMR_guideline` option (otherwise EUCAST), so that
generated values are based on the latest breakpoints of one guideline
instead of those of all guidelines and years combined
- Fixed [`format()`](https://rdrr.io/r/base/format.html) on the output
of
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md),
which counted I and SDD as resistant with the default
`combine_SI = TRUE`, contrary to its documentation. It now reads the
guideline used in
[`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md),
which can be overridden with its own `guideline` argument, and also
counts NS as resistant.
- Fixed a bug in [`g.test()`](https://amr-for-r.org/reference/g.test.md)
that returned the degrees of freedom as `argument` instead of
`parameter`, so that they were not printed
- Fixed a bug where R could crash after unloading the `data.table`
package, and where suggested packages available on the machine that
built the package were used even if they were not available to the
user
#### Other
- Improved console messages with clickable links throughout the package,
powered by `cli` if it is installed
([\#191](https://github.com/msberends/AMR/issues/191),
[\#265](https://github.com/msberends/AMR/issues/265))
- The section *Interpretation of SIR* (in
[`?as.sir`](https://amr-for-r.org/reference/as.sir.md)) now explains
for all functions with a `guideline` argument for aggregated analyses
how S, SDD, I, R, WT, NWT, NS, and NI are categorised per guideline.
The handling of ‘I’ per MDRO guideline in
[`mdro()`](https://amr-for-r.org/reference/mdro.md) will be revised in
a future version
([\#323](https://github.com/msberends/AMR/issues/323)).
- [`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
is now documented together with
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
- Corrected the documentation of `colours_SIR` and `eucast_I` in the
plotting functions, and an example of
[`scale_colour_sir()`](https://amr-for-r.org/reference/plot.md) in
which the title was not applied
- The documentation of
[`get_AMR_locale()`](https://amr-for-r.org/reference/translate.md) now
describes the actual order in which the language is determined: the
`AMR_locale` option, then the `LANG` system variable, then `LANGUAGE`
only if `LANG` is not set, and then the system locale
- Revamped console output of
[`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md),
with section headers, S/I/R values styled as in the printing of `sir`
columns in tibbles, and the summary of edits sorted by SIR level,
using `cli` if it is installed
([\#259](https://github.com/msberends/AMR/issues/259))
- The printing of
[`custom_interpretive_rules()`](https://amr-for-r.org/reference/custom_interpretive_rules.md)
and
[`custom_mdro_guideline()`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
now styles SIR values as in tibbles, i.e., the colour of `I` depends
on the guideline. `WT`, `NWT`, and `NS` were previously shown as
`SDD`, `I`, and `R`, and values other than `S` and `R` as `I`.
- The ‘AMR for Python’ vignette now contains sections on installation
channels (stable from CRAN, or development from GitHub via `AMR.beta`)
and on using `enforce_method` in `as_sir()` from Python
## AMR 3.0.1
CRAN release: 2025-09-20
This is a bugfix release following the release of v3.0.0 in June 2025.
#### Changed
- Fixed bugs introduced by `ggplot2` v4.0.0
([\#236](https://github.com/msberends/AMR/issues/236))
- MIC scale functions (such as
[`scale_y_mic()`](https://amr-for-r.org/reference/plot.md)) will now
be applied automatically when plotting values of class `mic`
- SIR scale functions (such as
[`scale_x_sir()`](https://amr-for-r.org/reference/plot.md)) will now
be applied automatically when plotting values of class `sir`
- Fixed a bug in
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md) for
when no antimicrobials are set
- Fixed a bug in
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md) to
allow column names containing the `+` character
([\#222](https://github.com/msberends/AMR/issues/222))
- Fixed a bug in [`as.ab()`](https://amr-for-r.org/reference/as.ab.md)
for antimicrobial codes with a number in it if they are preceded by a
space
- Fixed a bug in
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
for using specific custom rules
- Fixed a bug in [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
to allow any tidyselect language
([\#220](https://github.com/msberends/AMR/issues/220))
- Fixed a bug in [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
to pick right breakpoint when `uti = FALSE`
([\#216](https://github.com/msberends/AMR/issues/216))
- Fixed a bug in
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md) when
using `combine_SI = FALSE`
([\#213](https://github.com/msberends/AMR/issues/213))
- Fixed a bug in [`mdro()`](https://amr-for-r.org/reference/mdro.md) to
make sure all genes specified in arguments are acknowledged
- Fixed a bug the `antimicrobials` data set to remove statins
([\#229](https://github.com/msberends/AMR/issues/229))
- Fixed a bug the `microorganisms` data set for MycoBank IDs and
synonyms ([\#233](https://github.com/msberends/AMR/issues/233))
- Fixed ATC J01CR05 to map to piperacillin/tazobactam rather than
piperacillin/sulbactam
([\#230](https://github.com/msberends/AMR/issues/230))
- Fixed skimmers (`skimr` package) of class `ab`, `sir`, and `disk`
([\#234](https://github.com/msberends/AMR/issues/234))
- Fixed all plotting to contain a separate colour for SDD (susceptible
dose-dependent) ([\#223](https://github.com/msberends/AMR/issues/223))
- Fixed some specific Dutch translations for antimicrobials
- Added a warning to
[`as.ab()`](https://amr-for-r.org/reference/as.ab.md) if input
resembles antiviral codes or names
([\#232](https://github.com/msberends/AMR/issues/232))
- Added all reasons in verbose output of
[`mdro()`](https://amr-for-r.org/reference/mdro.md)
([\#227](https://github.com/msberends/AMR/issues/227))
- Added `names` to
[`age_groups()`](https://amr-for-r.org/reference/age_groups.md) so
that custom names can be given
([\#215](https://github.com/msberends/AMR/issues/215))
- Added note to [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
to make it explicit when higher-level taxonomic breakpoints are used
([\#218](https://github.com/msberends/AMR/issues/218))
- Added antibiotic codes from the Comprehensive Antibiotic Resistance
Database (CARD) to the `antimicrobials` data set
([\#225](https://github.com/msberends/AMR/issues/225))
- Updated Fosfomycin to be of antibiotic class Phosphonics
([\#225](https://github.com/msberends/AMR/issues/225))
- Updated [`random_mic()`](https://amr-for-r.org/reference/random.md)
and [`random_disk()`](https://amr-for-r.org/reference/random.md) to
set skewedness of the distribution and allow multiple microorganisms
## AMR 3.0.0
CRAN release: 2025-06-02
This package now supports not only tools for AMR data analysis in
clinical settings, but also for veterinary and environmental
microbiology. This was made possible through a collaboration with the
[University of Prince Edward Island’s Atlantic Veterinary
College](https://www.upei.ca/avc), Canada. To celebrate this great
improvement of the package, we also updated the package logo to reflect
this change.
#### Breaking
- Data set `antibiotics` has been renamed to `antimicrobials` as the
data set contains more than just antibiotics. Using `antibiotics` will
still work, but now returns a warning.
- Removed all functions and references that used the deprecated `rsi`
class, which were all replaced with their `sir` equivalents over two
years ago.
- Functions
[`resistance_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
and
[`sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
are now deprecated and will be removed in a future version. Use the
`tidymodels` framework instead, for which we [wrote a basic
introduction](https://amr-for-r.org/articles/AMR_with_tidymodels.html).
#### New
- **One Health implementation**
- Function [`as.sir()`](https://amr-for-r.org/reference/as.sir.md) now
has extensive support for veterinary breakpoints from CLSI. Use
`breakpoint_type = "animal"` and set the `host` argument to a
variable that contains animal species names.
- The `clinical_breakpoints` data set contains all these breakpoints,
and can be downloaded on our [download
page](https://amr-for-r.org/articles/datasets.html).
- The (new) `antimicrobials` data set contains all veterinary
antimicrobials, such as pradofloxacin and enrofloxacin. All WHOCC
codes for veterinary use have been added as well.
- [`ab_atc()`](https://amr-for-r.org/reference/ab_property.md) now
supports ATC codes of veterinary antimicrobials (that all start with
“Q”)
- [`ab_url()`](https://amr-for-r.org/reference/ab_property.md) now
supports retrieving the WHOCC url of their ATCvet pages
- **Support for WISCA antibiograms**
- The
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
function now supports creating true Weighted-Incidence Syndromic
Combination Antibiograms (WISCA), a powerful Bayesian method for
estimating regimen coverage probabilities using pathogen incidence
and antimicrobial susceptibility data. WISCA offers improved
precision for syndrome-specific treatment, even in data sets with
sparse data. A dedicated
[`wisca()`](https://amr-for-r.org/reference/antibiogram.md) function
is also available for easy usage.
- **More global coverage of languages**
- Added full support for 8 new languages: Arabic, Bengali, Hindi,
Indonesian, Korean, Swahili, Urdu, and Vietnamese. The `AMR` package
is now available in 28 languages.
- **Major update to fungal taxonomy and tools for mycologists**
- MycoBank has now been integrated as the primary taxonomic source for
fungi. The `microorganisms` data set has been enriched with new
columns (`mycobank`, `mycobank_parent`, and `mycobank_renamed_to`)
that provide detailed information for fungal species.
- A remarkable addition of over 20,000 new fungal records
- New function
[`mo_mycobank()`](https://amr-for-r.org/reference/mo_property.md) to
retrieve the MycoBank record number, analogous to existing functions
such as
[`mo_lpsn()`](https://amr-for-r.org/reference/mo_property.md) and
[`mo_gbif()`](https://amr-for-r.org/reference/mo_property.md).
- The [`as.mo()`](https://amr-for-r.org/reference/as.mo.md) function
and all `mo_*()` functions now include an `only_fungi` argument,
allowing users to restrict results solely to fungal species. This
ensures fungi are prioritised over bacteria during microorganism
identification. This can also be set globally with the new
`AMR_only_fungi` option.
- Also updated other kingdoms, welcoming a total of 2,149 new records
from 2023 and 927 from 2024.
- **Updated clinical breakpoints**
- Breakpoint of 2024 and 2025 of both CLSI and EUCAST are now
supported, by adding all of their over 10,000 new clinical
breakpoints to the `clinical_breakpoints` data set for usage in
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md). EUCAST 2025
is now the new default guideline for all MIC and disk diffusion
interpretations.
- Added all Expected Resistant Phenotypes from EUCAST (v1.2). The
default `rules` for
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
are now: `c("breakpoints", "expected_phenotypes")`.
- Updated the `intrinsic_resistant` data set, which is now based on
EUCAST Expected Resistant Phenotypes v1.2
- [`as.sir()`](https://amr-for-r.org/reference/as.sir.md) now brings
additional factor levels: “NI” for non-interpretable and “SDD” for
susceptible dose-dependent. Currently, the `clinical_breakpoints`
data set contains 24 breakpoints that can return the value “SDD”
instead of “I”.
- EUCAST interpretive rules (using
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md))
are now available for EUCAST 12 (2022), 13 (2023), 14 (2024), and 15
(2025).
- EUCAST dosage tables (`dosage` data set) are now available for
EUCAST 13 (2023), 14 (2024), and 15 (2025).
- **New advanced ggplot2 extensions for MIC and SIR plotting and
transforming**
- New function group `scale_*_mic()`, namely:
[`scale_x_mic()`](https://amr-for-r.org/reference/plot.md),
[`scale_y_mic()`](https://amr-for-r.org/reference/plot.md),
[`scale_colour_mic()`](https://amr-for-r.org/reference/plot.md) and
[`scale_fill_mic()`](https://amr-for-r.org/reference/plot.md). They
allow easy plotting of MIC values. They allow for manual range
definition and plotting missing intermediate log2 levels.
- New function group `scale_*_sir()`, namely:
[`scale_x_sir()`](https://amr-for-r.org/reference/plot.md),
[`scale_colour_sir()`](https://amr-for-r.org/reference/plot.md) and
[`scale_fill_sir()`](https://amr-for-r.org/reference/plot.md). They
allow to plot the `sir` class, and translates into the system
language at default. They also set colourblind-safe colours to the
plots.
- New function
[`rescale_mic()`](https://amr-for-r.org/reference/as.mic.md), which
allows users to rescale MIC values to a manually set range. This is
the powerhouse behind the `scale_*_mic()` functions, but it can be
used independently to, for instance, compare equality in MIC
distributions by rescaling them to the same range first.
- **Support for Python**
- While using R for the heavy lifting, [our ‘AMR’ Python
Package](https://pypi.org/project/AMR/) was developed to run the AMR
R package natively in Python. The Python package will always have
the same version number as the R package, as it is built
automatically with every code change.
- **Support for `tidymodels`**
- All antimicrobial selectors (such as
[`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
and
[`betalactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md))
are now supported in `tidymodels` packages such as `recipe` and
`parsnip`. See for more info [our
tutorial](https://amr-for-r.org/articles/AMR_with_tidymodels.html)
on using these AMR functions for predictive modelling.
- **Other**
- New function
[`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
to filter a data set to the top *n* of any taxonomic property, e.g.,
filter to the top 3 species, filter to any species in the top 5
genera, or filter to the top 3 species in each of the top 5 genera
- New function
[`mo_group_members()`](https://amr-for-r.org/reference/mo_property.md)
to retrieve the member microorganisms of a microorganism group. For
example, `mo_group_members("Strep group C")` returns a vector of all
microorganisms that belong to that group.
- New functions
[`mic_p50()`](https://amr-for-r.org/reference/as.mic.md) and
[`mic_p90()`](https://amr-for-r.org/reference/as.mic.md) to retrieve
the 50th and 90th percentile of MIC values.
#### Changed
- SIR interpretation
- Support for parallel computing to greatly improve speed using the
`parallel` package (part of base R). Use
`as.sir(your_data, parallel = TRUE)` to run SIR interpretation using
multiple cores.
- For [`as.sir()`](https://amr-for-r.org/reference/as.sir.md), it is
now possible to use column names for arguments `guideline`, `ab`,
`mo`, and `uti`
- Users can now set their own criteria (using regular expressions) as
to what should be considered S, I, R, SDD, and NI.
- To get quantitative values,
[`as.double()`](https://rdrr.io/r/base/double.html) on a `sir`
object will return 1 for S, 2 for SDD/I, and 3 for R (NI will become
`NA`). Other functions using `sir` classes (e.g.,
[`summary()`](https://rdrr.io/r/base/summary.html)) are updated to
reflect the change to contain NI and SDD.
- Following CLSI interpretation rules, values outside the
log2-dilution range will be rounded upwards to the nearest
log2-level before interpretation. Only if using a CLSI guideline.
- Combined MIC values (e.g., from CLSI) are now supported
- The argument `conserve_capped_values` in
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md) has been
replaced with `capped_mic_handling`, which allows greater
flexibility in handling capped MIC values (`<`, `<=`, `>`, `>=`).
The four available options (`"standard"`, `"strict"`, `"relaxed"`,
`"inverse"`) provide full control over whether these values should
be interpreted conservatively or ignored. Using
`conserve_capped_values` is now deprecated and returns a warning.
- Added argument `info` to silence all console messages
- [`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
function
- Argument `antibiotics` has been renamed to `antimicrobials`. Using
`antibiotics` will still work, but now returns a warning.
- Added argument `formatting_type` to set any of the 22 options for
the formatting of all ‘cells’. This defaults to `18` for non-WISCA
and `14` for WISCA, changing the output of antibiograms to cells
with more info.
- For this reason, `add_total_n` is now deprecated and `FALSE` at
default since the denominators are added to the cells dependent on
the `formatting_type` setting
- The `ab_transform` argument now defaults to `"name"`, displaying
antibiotic column names instead of codes
- Antimicrobial selectors (previously: *antibiotic selectors*)
- ‘Antibiotic selectors’ are now called ‘antimicrobial selectors’
since their scope is broader than just antibiotics. All
documentation have been updated, and
[`ab_class()`](https://amr-for-r.org/reference/AMR-deprecated.md)
and
[`ab_selector()`](https://amr-for-r.org/reference/AMR-deprecated.md)
have been replaced with
[`amr_class()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
and
[`amr_selector()`](https://amr-for-r.org/reference/antimicrobial_selectors.md).
The old functions are now deprecated and will be removed in a future
version.
- Added selectors
[`isoxazolylpenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`monobactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`nitrofurans()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`phenicols()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`rifamycins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
and
[`sulfonamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
- When using antimicrobial selectors that exclude non-treatable drugs
(such as gentamicin-high when using
[`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)),
the function now always returns a warning that these can be included
using `only_treatable = FALSE`
- Added a new argument `return_all` to all selectors, which defaults
to `TRUE` to include any match. With `FALSE`, the old behaviour,
only the first hit for each unique antimicrobial is returned.
- All selectors can now be run as a separate command to retrieve a
vector of all possible antimicrobials that the selector can select
- The selectors
[`lincosamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
and
[`macrolides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
do not overlap anymore - each antibiotic is now classified as either
of these and not both
- Fixed selector
[`fluoroquinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
which now really only selects second-generation quinolones and up
(first-generation quinolones do not contain a fluorine group)
- `antimicrobials` data set
- Added agents used for screening, with an ID all ending with `-S`:
benzylpenicillin screening test (`PEN-S`), beta-lactamase screening
test (`BLA-S`), cefotaxime screening test (`CTX-S`), clindamycin
inducible screening test (`CLI-S`), nalidixic acid screening test
(`NAL-S`), norfloxacin screening test (`NOR-S`), oxacillin screening
test (`OXA-S`), pefloxacin screening test (`PEF-S`), and
tetracycline screening test (`TCY-S`). The ID of cefoxitin screening
was renamed from `FOX1` to `FOX-S`, while the old code remains to
work.
- For this reason, the antimicrobial selectors
[`cephalosporins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`cephalosporins_3rd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`lincosamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`isoxazolylpenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`quinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`fluoroquinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
and
[`tetracyclines()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
now contain the argument `only_treatable = TRUE` (similar to other
antimicrobial selectors that contain non-treatable drugs)
- Added amorolfine (`AMO`, D01AE16), an antimycotic, which is now also
part of the
[`antifungals()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
selector
- Added cefepime/enmetazobactam (`FPE`), a 4th gen cephalosporin
- Added tigemonam (`TNM`), a monobactam
- Added bleomycin (`BLM`), a glycopeptide
- Added efflux (`EFF`), to allow mapping to AMRFinderPlus
- Updated all ATC codes, trade names, and DDDs
- MICs
- Added as valid levels: 4096, 6 powers of 0.0625, and 5 powers of 192
(192, 384, 576, 768, 960)
- Fixed a bug in
[`as.mic()`](https://amr-for-r.org/reference/as.mic.md) that failed
translation of scientifically formatted numbers
- Added new argument `keep_operators` to
[`as.mic()`](https://amr-for-r.org/reference/as.mic.md). This can be
`"all"` (default), `"none"`, or `"edges"`. This argument is also
available in the new
[`rescale_mic()`](https://amr-for-r.org/reference/as.mic.md) and
`scale_*_mic()` functions.
- Comparisons of MIC values are now more strict. For example, `>32` is
higher than (and never equal to) `32`. Thus,
`as.mic(">32") == as.mic(32)` now returns `FALSE`, and
`as.mic(">32") > as.mic(32)` now returns `TRUE`.
- Sorting of MIC values (using
[`sort()`](https://rdrr.io/r/base/sort.html)) was fixed in the same
manner; `<0.001` now gets sorted before `0.001`, and `>0.001` gets
sorted after `0.001`.
- Intermediate log2 levels used for MIC plotting are now more common
values instead of following a strict dilution range
- [`is.mic()`](https://amr-for-r.org/reference/as.mic.md) now returns
a vector of `TRUE`/`FALSE` if the input is a `data.frame`, just like
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
- [`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
now has an argument `overwrite` (default: `FALSE`) to indicate whether
non-`NA` values should be overwritten
- Disks of 0 to 5 mm are now allowed, the newly allowed range for disk
diffusion ([`as.disk()`](https://amr-for-r.org/reference/as.disk.md))
is now between 0 and 50 mm
- Updated
[`italicise_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
to support HTML output
- [`custom_eucast_rules()`](https://amr-for-r.org/reference/AMR-deprecated.md)
now supports multiple antimicrobials and antimicrobial groups to be
affected by a single rule
- [`mo_info()`](https://amr-for-r.org/reference/mo_property.md) now
contains an extra element `rank` and `group_members` (with the
contents of the new
[`mo_group_members()`](https://amr-for-r.org/reference/mo_property.md)
function)
- Updated all ATC codes from WHOCC
- Updated all antimicrobial DDDs from WHOCC
- Fix for using a manual value for `mo_transform` in
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
- Fixed a bug for when
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
returns an empty data set
- Argument `only_sir_columns` now defaults to `TRUE` if any column of a
data set contains a class ‘sir’ (functions
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md),
[`key_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md),
[`mdro()`](https://amr-for-r.org/reference/mdro.md), etc.)
- Added Sensititre codes for animals, antimicrobials and microorganisms
- Fix for mapping ‘high level’ antimicrobials in
[`as.ab()`](https://amr-for-r.org/reference/as.ab.md) (amphotericin
B-high, gentamicin-high, kanamycin-high, streptomycin-high,
tobramycin-high)
- Improved overall algorithm of
[`as.ab()`](https://amr-for-r.org/reference/as.ab.md) for better
performance and accuracy, including the new function
`as_reset_session()` to remove earlier coercions.
- Improved overall algorithm of
[`as.mo()`](https://amr-for-r.org/reference/as.mo.md) for better
performance and accuracy, specifically:
- More weight is given to genus and species combinations in cases
where the subspecies is miswritten, so that the result will be the
correct genus and species
- Genera from the World Health Organization’s (WHO) Priority Pathogen
List now have the highest prevalence
- Fixed a bug for
[`sir_confidence_interval()`](https://amr-for-r.org/reference/proportion.md)
when there are no isolates available
- Updated the prevalence calculation to include genera from the World
Health Organization’s (WHO) Priority Pathogen List
- Improved algorithm of
[`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
when using the phenotype-based method, to prioritise records with the
highest availability of SIR values
- [`scale_y_percent()`](https://amr-for-r.org/reference/plot.md) can now
cope with ranges outside the 0-100% range
- MDRO determination (using
[`mdro()`](https://amr-for-r.org/reference/mdro.md))
- The Verbose Mode (`verbose = TRUE`) now includes the guideline name
- Implemented the new Dutch national MDRO guideline (SRI-richtlijn
BRMO, Nov 2024)
- Added arguments `esbl`, `carbapenemase`, `mecA`, `mecC`, `vanA`,
`vanB` to denote column names or logical values indicating presence
of these genes (or production of their proteins)
- Added upport for antimicrobial selectors to use as as a custom rule
([`custom_mdro_guideline()`](https://amr-for-r.org/reference/custom_mdro_guideline.md))
- Added console colours support of `sir` class for Positron
#### Other
- New website domain: <https://amr-for-r.org>! The old domain will
remain to work.
- Added Dr. Larisse Bolton and Aislinn Cook as contributors for their
fantastic implementation of WISCA in a mathematically solid way
- Added Matthew Saab, Dr. Jordan Stull, and Prof. Javier Sanchez as
contributors for their tremendous input on veterinary breakpoints and
interpretations
- Added Prof. Kathryn Holt, Dr. Jane Hawkey, and Dr. Natacha Couto as
contributors for their many suggestions, ideas and bugfixes
- Greatly improved `vctrs` integration, a Tidyverse package working in
the background for many Tidyverse functions. For users, this means
that functions such as `dplyr`’s
[`bind_rows()`](https://dplyr.tidyverse.org/reference/bind_rows.html),
[`rowwise()`](https://dplyr.tidyverse.org/reference/rowwise.html) and
[`c_across()`](https://dplyr.tidyverse.org/reference/c_across.html)
are now supported for e.g. columns of class `mic`. Despite this, this
`AMR` package is still zero-dependent on any other package, including
`dplyr` and `vctrs`.
- Greatly updated and expanded documentation
- Stopped support for SAS (`.xpt`) files, since their file structure and
extremely inefficient and requires more disk space than GitHub allows
in a single commit.
### Older Versions
This changelog only contains changes from AMR v3.0 (June 2025) and
later.
- For prior v2 versions, please see [our v2
archive](https://github.com/msberends/AMR/blob/v2.1.1/NEWS.md).
- For prior v1 versions, please see [our v1
archive](https://github.com/msberends/AMR/blob/v1.8.2/NEWS.md).