Skip to contents

Apply rules for clinical breakpoints and intrinsic resistance as defined by the European Committee on Antimicrobial Susceptibility Testing (EUCAST, https://www.eucast.org), see Source. Use eucast_dosage() to get a data.frame with advised dosages of a certain bug-drug combination, which is based on the dosage data set.

To improve the interpretation of the antibiogram before EUCAST rules are applied, some non-EUCAST rules can applied at default, see Details.

Usage

eucast_rules(
  x,
  col_mo = NULL,
  info = interactive(),
  rules = getOption("AMR_eucastrules", default = c("breakpoints", "expert")),
  verbose = FALSE,
  version_breakpoints = 12,
  version_expertrules = 3.3,
  ampc_cephalosporin_resistance = NA,
  only_sir_columns = FALSE,
  custom_rules = NULL,
  ...
)

eucast_dosage(ab, administration = "iv", version_breakpoints = 12)

Source

  • EUCAST Expert Rules. Version 2.0, 2012.
    Leclercq et al. EUCAST expert rules in antimicrobial susceptibility testing. Clin Microbiol Infect. 2013;19(2):141-60; doi:10.1111/j.1469-0691.2011.03703.x

  • EUCAST Expert Rules, Intrinsic Resistance and Exceptional Phenotypes Tables. Version 3.1, 2016. (link)

  • EUCAST Intrinsic Resistance and Unusual Phenotypes. Version 3.2, 2020. (link)

  • EUCAST Intrinsic Resistance and Unusual Phenotypes. Version 3.3, 2021. (link)

  • EUCAST Breakpoint tables for interpretation of MICs and zone diameters. Version 9.0, 2019. (link)

  • EUCAST Breakpoint tables for interpretation of MICs and zone diameters. Version 10.0, 2020. (link)

  • EUCAST Breakpoint tables for interpretation of MICs and zone diameters. Version 11.0, 2021. (link)

  • EUCAST Breakpoint tables for interpretation of MICs and zone diameters. Version 12.0, 2022. (link)

Arguments

x

a data set with antibiotic columns, such as amox, AMX and AMC

col_mo

column name of the IDs of the microorganisms (see as.mo()), defaults to the first column of class mo. Values will be coerced using as.mo().

info

a logical to indicate whether progress should be printed to the console, defaults to only print while in interactive sessions

rules

a character vector that specifies which rules should be applied. Must be one or more of "breakpoints", "expert", "other", "custom", "all", and defaults to c("breakpoints", "expert"). The default value can be set to another value using the option AMR_eucastrules: options(AMR_eucastrules = "all"). If using "custom", be sure to fill in argument custom_rules too. Custom rules can be created with custom_eucast_rules().

verbose

a logical to turn Verbose mode on and off (default is off). In Verbose mode, the function does not apply rules to the data, but instead returns a data set in logbook form with extensive info about which rows and columns would be effected and in which way. Using Verbose mode takes a lot more time.

version_breakpoints

the version number to use for the EUCAST Clinical Breakpoints guideline. Can be either "12.0", "11.0" or "10.0".

version_expertrules

the version number to use for the EUCAST Expert Rules and Intrinsic Resistance guideline. Can be either "3.3", "3.2" or "3.1".

ampc_cephalosporin_resistance

a character value that should be applied to cefotaxime, ceftriaxone and ceftazidime for AmpC de-repressed cephalosporin-resistant mutants, defaults to NA. Currently only works when version_expertrules is 3.2 and higher; these version of 'EUCAST Expert Rules on Enterobacterales' state that results of cefotaxime, ceftriaxone and ceftazidime should be reported with a note, or results should be suppressed (emptied) for these three drugs. A value of NA (the default) for this argument will remove results for these three drugs, while e.g. a value of "R" will make the results for these drugs resistant. Use NULL or FALSE to not alter results for these three drugs of AmpC de-repressed cephalosporin-resistant mutants. Using TRUE is equal to using "R".
For EUCAST Expert Rules v3.2, this rule applies to: Citrobacter braakii, Citrobacter freundii, Citrobacter gillenii, Citrobacter murliniae, Citrobacter rodenticum, Citrobacter sedlakii, Citrobacter werkmanii, Citrobacter youngae, Enterobacter, Hafnia alvei, Klebsiella aerogenes, Morganella morganii, Providencia and Serratia.

only_sir_columns

a logical to indicate whether only antibiotic columns must be detected that were transformed to class sir (see as.sir()) on beforehand (defaults to FALSE)

custom_rules

custom rules to apply, created with custom_eucast_rules()

...

column name of an antibiotic, see section Antibiotics below

ab

any (vector of) text that can be coerced to a valid antibiotic drug code with as.ab()

administration

route of administration, either "im", "iv" or "oral"

Value

The input of x, possibly with edited values of antibiotics. Or, if verbose = TRUE, a data.frame with all original and new values of the affected bug-drug combinations.

Details

Note: This function does not translate MIC values to SIR values. Use as.sir() for that.
Note: When ampicillin (AMP, J01CA01) is not available but amoxicillin (AMX, J01CA04) is, the latter will be used for all rules where there is a dependency on ampicillin. These drugs are interchangeable when it comes to expression of antimicrobial resistance.

The file containing all EUCAST rules is located here: https://github.com/msberends/AMR/blob/main/data-raw/eucast_rules.tsv. Note: Old taxonomic names are replaced with the current taxonomy where applicable. For example, Ochrobactrum anthropi was renamed to Brucella anthropi in 2020; the original EUCAST rules v3.1 and v3.2 did not yet contain this new taxonomic name. The AMR package contains the full microbial taxonomy updated until 11 December, 2022, see microorganisms.

Custom Rules

Custom rules can be created using custom_eucast_rules(), e.g.:

x <- custom_eucast_rules(AMC == "R" & genus == "Klebsiella" ~ aminopenicillins == "R",
                         AMC == "I" & genus == "Klebsiella" ~ aminopenicillins == "I")

eucast_rules(example_isolates, rules = "custom", custom_rules = x)

'Other' Rules

Before further processing, two non-EUCAST rules about drug combinations can be applied to improve the efficacy of the EUCAST rules, and the reliability of your data (analysis). These rules are:

  1. A drug with enzyme inhibitor will be set to S if the same drug without enzyme inhibitor is S

  2. A drug without enzyme inhibitor will be set to R if the same drug with enzyme inhibitor is R

Important examples include amoxicillin and amoxicillin/clavulanic acid, and trimethoprim and trimethoprim/sulfamethoxazole. Needless to say, for these rules to work, both drugs must be available in the data set.

Since these rules are not officially approved by EUCAST, they are not applied at default. To use these rules, include "other" to the rules argument, or use eucast_rules(..., rules = "all"). You can also set the option AMR_eucastrules, i.e. run options(AMR_eucastrules = "all").

Antibiotics

To define antibiotics column names, leave as it is to determine it automatically with guess_ab_col() or input a text (case-insensitive), or use NULL to skip a column (e.g. TIC = NULL to skip ticarcillin). Manually defined but non-existing columns will be skipped with a warning.

The following antibiotics are eligible for the functions eucast_rules() and mdro(). These are shown below in the format 'name (antimicrobial ID, ATC code)', sorted alphabetically:

Amikacin (AMK, S01AE08), amoxicillin (AMX, J01MA02), amoxicillin/clavulanic acid (AMC, J01MA23), ampicillin (AMP, J01MA04), ampicillin/sulbactam (SAM, J01MA08), arbekacin (ARB, J01MA19), aspoxicillin (APX, J01MA16), azidocillin (AZD, J01MA15), azithromycin (AZM, J01MA11), azlocillin (AZL, J01MA25), aztreonam (ATM, J01MA12), bacampicillin (BAM, J01MA24), bekanamycin (BEK, J01MA07), benzathine benzylpenicillin (BNB, J01MA14), benzathine phenoxymethylpenicillin (BNP, D10AF05), benzylpenicillin (PEN, J01MA06), besifloxacin (BES, J01MA01), biapenem (BIA, J01MA18), carbenicillin (CRB, J01MA03), carindacillin (CRN, J01MA17), cefacetrile (CAC, J01MA10), cefaclor (CEC, J01MA21), cefadroxil (CFR, J01MA09), cefalexin (LEX, J01MA05), cefaloridine (RID, P01AA05), cefalotin (CEP, J01MA22), cefamandole (MAN, J01MA13), cefapirin (HAP, J01CA01), cefatrizine (CTZ, J01CA04), cefazedone (CZD, J01CA12), cefazolin (CZO, J01CR05), cefcapene (CCP, J01CA13), cefdinir (CDR, J01AA02), cefditoren (DIT, J01FA10), cefepime (FEP, J01FA09), cefetamet (CAT, J01CR02), cefixime (CFM, J01AA08), cefmenoxime (CMX, J01FA06), cefmetazole (CMZ, J01CF04), cefodizime (DIZ, J01CF05), cefonicid (CID, J01CR01), cefoperazone (CFP, J01CA19), cefoperazone/sulbactam (CSL, J01CE04), ceforanide (CND, J01CA09), cefotaxime (CTX, J01DF01), cefotaxime/clavulanic acid (CTC, J01CA06), cefotetan (CTT, J01CE08), cefotiam (CTF, J01CE10), cefoxitin (FOX, J01CE01), cefozopran (ZOP, J01CA03), cefpiramide (CPM, J01CA05), cefpirome (CPO, J01CE07), cefpodoxime (CPD, J01CF02), cefprozil (CPR, J01CF01), cefroxadine (CRD, J01CA07), cefsulodin (CFS, J01CA18), ceftaroline (CPT, J01CA11), ceftazidime (CAZ, J01CA14), ceftazidime/clavulanic acid (CCV, J01CF03), cefteram (CEM, J01CA10), ceftezole (CTL, J01CF06), ceftibuten (CTB, J01CE06), ceftizoxime (CZX, J01CE05), ceftobiprole medocaril (CFM1, J01CE02), ceftolozane/tazobactam (CZT, J01CA02), ceftriaxone (CRO, J01CA08), ceftriaxone/beta-lactamase inhibitor (CEB, J01CE09), cefuroxime (CXM, J01CE03), cephradine (CED, J01CG01), chloramphenicol (CHL, J01CA16), ciprofloxacin (CIP, J01CR04), clarithromycin (CLR, J01CA15), clindamycin (CLI, J01CG02), clometocillin (CLM, J01CA17), cloxacillin (CLO, J01CR03), colistin (COL, J01DB10), cycloserine (CYC, J01DC04), dalbavancin (DAL, J01DB05), daptomycin (DAP, J01DB01), delafloxacin (DFX, J01DB02), dibekacin (DKB, J01DB03), dicloxacillin (DIC, J01DC03), dirithromycin (DIR, J01DB08), doripenem (DOR, J01DB07), doxycycline (DOX, J01DB06), enoxacin (ENX, J01DB04), epicillin (EPC, J01DD17), ertapenem (ETP, J01DD15), erythromycin (ERY, J01DD16), fleroxacin (FLE, J01DE01), flucloxacillin (FLC, J01DD10), flurithromycin (FLR1, J01DD08), fosfomycin (FOS, J01DD05), framycetin (FRM, J01DC09), fusidic acid (FUS, J01DD09), garenoxacin (GRN, J01DC06), gatifloxacin (GAT, J01DD12), gemifloxacin (GEM, J01DD62), gentamicin (GEN, J01DC11), grepafloxacin (GRX, J01DD01), hetacillin (HET, J01DD51), imipenem (IPM, J01DC05), imipenem/relebactam (IMR, J01DC07), isepamicin (ISE, J01DC01), josamycin (JOS, J01DE03), kanamycin (KAN, J01DD11), lascufloxacin (LSC, J01DE02), latamoxef (LTM, J01DD13), levofloxacin (LVX, J01DC10), levonadifloxacin (LND, J01DB11), lincomycin (LIN, J01DD03), linezolid (LNZ, J01DI02), lomefloxacin (LOM, J01DD02), loracarbef (LOR, J01DD52), mecillinam (MEC, J01DD18), meropenem (MEM, J01DB12), meropenem/vaborbactam (MEV, J01DD14), metampicillin (MTM, J01DD07), meticillin (MET, J01DI01), mezlocillin (MEZ, J01DI54), micronomicin (MCR, J01DD04), midecamycin (MID, J01DD63), minocycline (MNO, J01DC02), miocamycin (MCM, J01DB09), moxifloxacin (MFX, J01DD06), nadifloxacin (NAD, J01DC08), nafcillin (NAF, J01DH05), nalidixic acid (NAL, J01DH04), neomycin (NEO, J01DH03), netilmicin (NET, J01DH51), nitrofurantoin (NIT, J01DH56), norfloxacin (NOR, J01DH02), ofloxacin (OFX, J01DH52), oleandomycin (OLE, J01DH55), oritavancin (ORI, J01DH06), oxacillin (OXA, J01XA02), panipenem (PAN, J01XA01), pazufloxacin (PAZ, J01XC01), pefloxacin (PEF, J01FA13), penamecillin (PNM, J01FA01), pheneticillin (PHE, J01FA14), phenoxymethylpenicillin (PHN, J01FA07), piperacillin (PIP, J01FA03), piperacillin/tazobactam (TZP, J01FA11), pivampicillin (PVM, J01FA05), pivmecillinam (PME, J01FA12), plazomicin (PLZ, J01FA16), polymyxin B (PLB, J01FA02), pristinamycin (PRI, J01FA15), procaine benzylpenicillin (PRB, J01FA08), propicillin (PRP, J01FF02), prulifloxacin (PRU, J01FG01), quinupristin/dalfopristin (QDA, J01FG02), ribostamycin (RST, J04AB02), rifampicin (RIF, J01XX09), rokitamycin (ROK, J01XX08), roxithromycin (RXT, J01AA07), rufloxacin (RFL, J01XB01), sisomicin (SIS, J01XB02), sitafloxacin (SIT, J01XE01), solithromycin (SOL, J01AA12), sparfloxacin (SPX, J01EA01), spiramycin (SPI, J01XX01), streptoduocin (STR, J01BA01), streptomycin (STR1, J01GB06), sulbactam (SUL, J01GB12), sulbenicillin (SBC, J01GB13), sulfadiazine (SDI, J01GB09), sulfadiazine/trimethoprim (SLT1, D09AA01), sulfadimethoxine (SUD, J01GB03), sulfadimidine (SDM, J01GB11), sulfadimidine/trimethoprim (SLT2, J01GB04), sulfafurazole (SLF, S01AA22), sulfaisodimidine (SLF1, J01GB05), sulfalene (SLF2, J01GB07), sulfamazone (SZO, J01GB14), sulfamerazine (SLF3, J01GB10), sulfamerazine/trimethoprim (SLT3, J01GB08), sulfamethizole (SLF4, J01GA02), sulfamethoxazole (SMX, J01GA01), sulfamethoxypyridazine (SLF5, J01GB01), sulfametomidine (SLF6, J01EE01), sulfametoxydiazine (SLF7, J01MB02), sulfametrole/trimethoprim (SLT4, J01FF01), sulfamoxole (SLF8, J01XA04), sulfamoxole/trimethoprim (SLT5, J01XA05), sulfanilamide (SLF9, J01XA03), sulfaperin (SLF10, J04AB01), sulfaphenazole (SLF11, J01XX11), sulfapyridine (SLF12, J01EC02), sulfathiazole (SUT, J01ED01), sulfathiourea (SLF13, J01EB03), sultamicillin (SLT6, J01EB05), talampicillin (TAL, J01EB01), tazobactam (TAZ, J01ED02), tebipenem (TBP, J01ED09), tedizolid (TZD, J01ED07), teicoplanin (TEC, J01EB02), telavancin (TLV, J01EC01), telithromycin (TLT, J01ED05), temafloxacin (TMX, J01ED03), temocillin (TEM, J01ED04), tetracycline (TCY, J01EC03), ticarcillin (TIC, J01EB06), ticarcillin/clavulanic acid (TCC, J01ED06), tigecycline (TGC, J01ED08), tilbroquinol (TBQ, J01EB04), tobramycin (TOB, J01EB07), tosufloxacin (TFX, J01EB08), trimethoprim (TMP, J01EE02), trimethoprim/sulfamethoxazole (SXT, J01EE05), troleandomycin (TRL, J01EE07), trovafloxacin (TVA, J01EE03), vancomycin (VAN, J01EE04)

Reference Data Publicly Available

All data sets in this AMR package (about microorganisms, antibiotics, SIR interpretation, EUCAST rules, etc.) are publicly and freely available for download in the following formats: R, MS Excel, Apache Feather, Apache Parquet, SPSS, SAS, and Stata. We also provide tab-separated plain text files that are machine-readable and suitable for input in any software program, such as laboratory information systems. Please visit our website for the download links. The actual files are of course available on our GitHub repository.

Examples

# \donttest{
a <- data.frame(
  mo = c(
    "Staphylococcus aureus",
    "Enterococcus faecalis",
    "Escherichia coli",
    "Klebsiella pneumoniae",
    "Pseudomonas aeruginosa"
  ),
  VAN = "-", # Vancomycin
  AMX = "-", # Amoxicillin
  COL = "-", # Colistin
  CAZ = "-", # Ceftazidime
  CXM = "-", # Cefuroxime
  PEN = "S", # Benzylpenicillin
  FOX = "S", # Cefoxitin
  stringsAsFactors = FALSE
)

head(a)
#>                       mo VAN AMX COL CAZ CXM PEN FOX
#> 1  Staphylococcus aureus   -   -   -   -   -   S   S
#> 2  Enterococcus faecalis   -   -   -   -   -   S   S
#> 3       Escherichia coli   -   -   -   -   -   S   S
#> 4  Klebsiella pneumoniae   -   -   -   -   -   S   S
#> 5 Pseudomonas aeruginosa   -   -   -   -   -   S   S


# apply EUCAST rules: some results wil be changed
b <- eucast_rules(a)
#> Warning: in eucast_rules(): not all columns with antimicrobial results are of
#> class 'sir'. Transform them on beforehand, with e.g.:
#>   - a %>% as.sir(CXM:AMX)
#>   - a %>% mutate_if(is_sir_eligible, as.sir)
#>   - a %>% mutate(across(where(is_sir_eligible), as.sir))

head(b)
#>                       mo VAN AMX COL CAZ CXM PEN FOX
#> 1  Staphylococcus aureus   -   S   R   S   S   S   S
#> 2  Enterococcus faecalis   -   -   R   R   R   S   R
#> 3       Escherichia coli   R   -   -   -   -   R   S
#> 4  Klebsiella pneumoniae   R   R   -   -   -   R   S
#> 5 Pseudomonas aeruginosa   R   R   -   -   R   R   R


# do not apply EUCAST rules, but rather get a data.frame
# containing all details about the transformations:
c <- eucast_rules(a, verbose = TRUE)
#> Warning: in eucast_rules(): not all columns with antimicrobial results are of
#> class 'sir'. Transform them on beforehand, with e.g.:
#>   - a %>% as.sir(CXM:AMX)
#>   - a %>% mutate_if(is_sir_eligible, as.sir)
#>   - a %>% mutate(across(where(is_sir_eligible), as.sir))
head(c)
#>   row col           mo_fullname old new rule   rule_group
#> 1   1 AMX Staphylococcus aureus   -   S       Breakpoints
#> 2   1 CXM Staphylococcus aureus   -   S       Breakpoints
#> 3   1 CAZ Staphylococcus aureus   R   S      Expert Rules
#> 4   1 CAZ Staphylococcus aureus   -   R      Expert Rules
#> 5   1 COL Staphylococcus aureus   -   R      Expert Rules
#> 6   2 CAZ Enterococcus faecalis   -   R      Expert Rules
#>                                                 rule_name
#> 1                                          Staphylococcus
#> 2                                          Staphylococcus
#> 3                          Expert Rules on Staphylococcus
#> 4 Table 4: Intrinsic resistance in gram-positive bacteria
#> 5 Table 4: Intrinsic resistance in gram-positive bacteria
#> 6 Table 4: Intrinsic resistance in gram-positive bacteria
#>                                                                                 rule_source
#> 1                                           'EUCAST Clinical Breakpoint Tables' v12.0, 2022
#> 2                                           'EUCAST Clinical Breakpoint Tables' v12.0, 2022
#> 3 'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3, 2021
#> 4 'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3, 2021
#> 5 'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3, 2021
#> 6 'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3, 2021
# }

# Dosage guidelines:

eucast_dosage(c("tobra", "genta", "cipro"), "iv")
#> ℹ Dosages for antimicrobial drugs, as meant for 'EUCAST Clinical Breakpoint
#>   Tables' v12.0 (2022). This note will be shown once per session.
#> # A tibble: 3 × 4
#>   ab   name          standard_dosage  high_dosage 
#>   <ab> <chr>         <chr>            <chr>       
#> 1 TOB  Tobramycin    6-7 mg/kg x 1 iv NA          
#> 2 GEN  Gentamicin    6-7 mg/kg x 1 iv NA          
#> 3 CIP  Ciprofloxacin 0.4 g x 2 iv     0.4 g x 3 iv

eucast_dosage(c("tobra", "genta", "cipro"), "iv", version_breakpoints = 10)
#> ℹ Dosages for antimicrobial drugs, as meant for 'EUCAST Clinical Breakpoint
#>   Tables' v10.0 (2020). This note will be shown once per session.
#> # A tibble: 3 × 4
#>   ab   name          standard_dosage  high_dosage 
#>   <ab> <chr>         <chr>            <chr>       
#> 1 TOB  Tobramycin    6-7 mg/kg x 1 iv NA          
#> 2 GEN  Gentamicin    6-7 mg/kg x 1 iv NA          
#> 3 CIP  Ciprofloxacin 0.4 g x 2 iv     0.4 g x 3 iv