Apply rules for clinical breakpoints and intrinsic resistance as defined by the European Committee on Antimicrobial Susceptibility Testing (EUCAST, https://eucast.org), see Source.
To improve the interpretation of the antibiogram before EUCAST rules are applied, some non-EUCAST rules can applied at default, see Details.
eucast_rules( x, col_mo = NULL, info = interactive(), rules = getOption("AMR_eucastrules", default = c("breakpoints", "expert")), verbose = FALSE, version_breakpoints = 10, version_expertrules = 3.2, ... )
x | data with antibiotic columns, such as |
---|---|
col_mo | column name of the IDs of the microorganisms (see |
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 |
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. Currently supported: 10.0. |
version_expertrules | the version number to use for the EUCAST Expert Rules and Intrinsic Resistance guideline. Currently supported: 3.1, 3.2. |
... | column name of an antibiotic, please see section Antibiotics below |
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. (link)
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 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)
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.
Note: This function does not translate MIC values to RSI values. Use as.rsi()
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/master/data-raw/eucast_rules.tsv.
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:
A drug with enzyme inhibitor will be set to S if the same drug without enzyme inhibitor is S
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
parameter, or use eucast_rules(..., rules = "all")
.
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 used for the functions eucast_rules()
and mdro()
. These are shown below in the format 'name (antimicrobial ID
, ATC code)', sorted alphabetically:
Amikacin (AMK
, J01GB06), amoxicillin (AMX
, J01CA04), amoxicillin/clavulanic acid (AMC
, J01CR02), ampicillin (AMP
, J01CA01), ampicillin/sulbactam (SAM
, J01CR01), avoparcin (AVO
, no ATC code), azithromycin (AZM
, J01FA10), azlocillin (AZL
, J01CA09), aztreonam (ATM
, J01DF01), bacampicillin (BAM
, J01CA06), benzylpenicillin (PEN
, J01CE01), cadazolid (CDZ
, J01DD09), capreomycin (CAP
, J04AB30), carbenicillin (CRB
, J01CA03), carindacillin (CRN
, J01CA05), cefacetrile (CAC
, J01DB10), cefaclor (CEC
, J01DC04), cefadroxil (CFR
, J01DB05), cefaloridine (RID
, J01DB02), cefamandole (MAN
, J01DC03), cefatrizine (CTZ
, J01DB07), cefazedone (CZD
, J01DB06), cefazolin (CZO
, J01DB04), cefdinir (CDR
, J01DD15), cefditoren (DIT
, J01DD16), cefepime (FEP
, J01DE01), cefetamet (CAT
, J01DD10), cefixime (CFM
, J01DD08), cefmenoxime (CMX
, J01DD05), cefmetazole (CMZ
, J01DC09), cefodizime (DIZ
, J01DD09), cefonicid (CID
, J01DC06), cefoperazone (CFP
, J01DD12), cefoperazone/sulbactam (CSL
, J01DD62), ceforanide (CND
, J01DC11), cefotaxime (CTX
, J01DD01), cefotetan (CTT
, J01DC05), cefotiam (CTF
, J01DC07), cefoxitin (FOX
, J01DC01), cefoxitin screening (FOX1
, no ATC code), cefpiramide (CPM
, J01DD11), cefpirome (CPO
, J01DE02), cefpodoxime (CPD
, J01DD13), cefprozil (CPR
, J01DC10), cefroxadine (CRD
, J01DB11), cefsulodin (CFS
, J01DD03), ceftaroline (CPT
, J01DI02), ceftazidime (CAZ
, J01DD02), ceftazidime/clavulanic acid (CCV
, J01DD52), ceftezole (CTL
, J01DB12), ceftibuten (CTB
, J01DD14), ceftizoxime (CZX
, J01DD07), ceftobiprole (BPR
, J01DI01), ceftobiprole medocaril (CFM1
, J01DI01), ceftolozane/enzyme inhibitor (CEI
, J01DI54), ceftriaxone (CRO
, J01DD04), cefuroxime (CXM
, J01DC02), cephalexin (LEX
, J01DB01), cephalothin (CEP
, J01DB03), cephapirin (HAP
, J01DB08), cephradine (CED
, J01DB09), chloramphenicol (CHL
, J01BA01), ciprofloxacin (CIP
, J01MA02), clarithromycin (CLR
, J01FA09), clindamycin (CLI
, J01FF01), colistin (COL
, J01XB01), cycloserine (CYC
, J04AB01), dalbavancin (DAL
, J01XA04), daptomycin (DAP
, J01XX09), dibekacin (DKB
, J01GB09), dirithromycin (DIR
, J01FA13), doripenem (DOR
, J01DH04), doxycycline (DOX
, J01AA02), enoxacin (ENX
, J01MA04), epicillin (EPC
, J01CA07), eravacycline (ERV
, J01AA13), ertapenem (ETP
, J01DH03), erythromycin (ERY
, J01FA01), ethambutol (ETH
, J04AK02), fidaxomicin (FDX
, no ATC code), fleroxacin (FLE
, J01MA08), flucloxacillin (FLC
, J01CF05), flurithromycin (FLR1
, J01FA14), fosfomycin (FOS
, J01XX01), fusidic acid (FUS
, J01XC01), gatifloxacin (GAT
, J01MA16), gemifloxacin (GEM
, J01MA15), gentamicin (GEN
, J01GB03), gentamicin-high (GEH
, no ATC code), grepafloxacin (GRX
, J01MA11), hetacillin (HET
, J01CA18), imipenem (IPM
, J01DH51), isepamicin (ISE
, J01GB11), isoniazid (INH
, J04AC01), josamycin (JOS
, J01FA07), kanamycin (KAN
, J01GB04), latamoxef (LTM
, J01DD06), levofloxacin (LVX
, J01MA12), lincomycin (LIN
, J01FF02), linezolid (LNZ
, J01XX08), lomefloxacin (LOM
, J01MA07), loracarbef (LOR
, J01DC08), mecillinam (Amdinocillin) (MEC
, J01CA11), meropenem (MEM
, J01DH02), meropenem/vaborbactam (MEV
, J01DH52), metampicillin (MTM
, J01CA14), metronidazole (MTR
, J01XD01), mezlocillin (MEZ
, J01CA10), midecamycin (MID
, J01FA03), minocycline (MNO
, J01AA08), miocamycin (MCM
, J01FA11), moxifloxacin (MFX
, J01MA14), nalidixic acid (NAL
, J01MB02), neomycin (NEO
, J01GB05), netilmicin (NET
, J01GB07), nitrofurantoin (NIT
, J01XE01), norfloxacin (NOR
, J01MA06), norvancomycin (NVA
, no ATC code), novobiocin (NOV
, QJ01XX95), ofloxacin (OFX
, J01MA01), oleandomycin (OLE
, J01FA05), omadacycline (OMC
, no ATC code), oritavancin (ORI
, J01XA05), oxacillin (OXA
, J01CF04), pazufloxacin (PAZ
, J01MA18), pefloxacin (PEF
, J01MA03), phenoxymethylpenicillin (PHN
, J01CE02), piperacillin (PIP
, J01CA12), piperacillin/tazobactam (TZP
, J01CR05), pirlimycin (PRL
, no ATC code), pivampicillin (PVM
, J01CA02), pivmecillinam (PME
, J01CA08), polymyxin B (PLB
, J01XB02), pristinamycin (PRI
, J01FG01), prulifloxacin (PRU
, J01MA17), pyrazinamide (PZA
, J04AK01), quinupristin/dalfopristin (QDA
, J01FG02), ramoplanin (RAM
, no ATC code), ribostamycin (RST
, J01GB10), rifabutin (RIB
, J04AB04), rifampicin (RIF
, J04AB02), rifapentine (RFP
, J04AB05), rokitamycin (ROK
, J01FA12), roxithromycin (RXT
, J01FA06), rufloxacin (RFL
, J01MA10), sisomicin (SIS
, J01GB08), sparfloxacin (SPX
, J01MA09), spectinomycin (SPT
, J01XX04), spiramycin (SPI
, J01FA02), streptoduocin (STR
, J01GA02), streptomycin (STR1
, J01GA01), streptomycin-high (STH
, no ATC code), sulbenicillin (SBC
, J01CA16), sulfadiazine (SDI
, J01EC02), sulfadiazine/trimethoprim (SLT1
, J01EE02), sulfadimethoxine (SUD
, J01ED01), sulfadimidine (SDM
, J01EB03), sulfadimidine/trimethoprim (SLT2
, J01EE05), sulfafurazole (SLF
, J01EB05), sulfaisodimidine (SLF1
, J01EB01), sulfalene (SLF2
, J01ED02), sulfamazone (SZO
, J01ED09), sulfamerazine (SLF3
, J01ED07), sulfamerazine/trimethoprim (SLT3
, J01EE07), sulfamethizole (SLF4
, J01EB02), sulfamethoxazole (SMX
, J01EC01), sulfamethoxypyridazine (SLF5
, J01ED05), sulfametomidine (SLF6
, J01ED03), sulfametoxydiazine (SLF7
, J01ED04), sulfametrole/trimethoprim (SLT4
, J01EE03), sulfamoxole (SLF8
, J01EC03), sulfamoxole/trimethoprim (SLT5
, J01EE04), sulfanilamide (SLF9
, J01EB06), sulfaperin (SLF10
, J01ED06), sulfaphenazole (SLF11
, J01ED08), sulfapyridine (SLF12
, J01EB04), sulfathiazole (SUT
, J01EB07), sulfathiourea (SLF13
, J01EB08), talampicillin (TAL
, J01CA15), tedizolid (TZD
, J01XX11), teicoplanin (TEC
, J01XA02), teicoplanin-macromethod (TCM
, no ATC code), telavancin (TLV
, J01XA03), telithromycin (TLT
, J01FA15), temafloxacin (TMX
, J01MA05), temocillin (TEM
, J01CA17), tetracycline (TCY
, J01AA07), thiacetazone (THA
, no ATC code), ticarcillin (TIC
, J01CA13), ticarcillin/clavulanic acid (TCC
, J01CR03), tigecycline (TGC
, J01AA12), tobramycin (TOB
, J01GB01), trimethoprim (TMP
, J01EA01), trimethoprim/sulfamethoxazole (SXT
, J01EE01), troleandomycin (TRL
, J01FA08), trovafloxacin (TVA
, J01MA13), vancomycin (VAN
, J01XA01)
The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.
If the unlying code needs breaking changes, they will occur gradually. For example, a parameter will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.
All reference data sets (about microorganisms, antibiotics, R/SI interpretation, EUCAST rules, etc.) in this AMR
package are publicly and freely available. We continually export our data sets to formats for use in R, SPSS, SAS, Stata and Excel. We also supply flat files that are machine-readable and suitable for input in any software program, such as laboratory information systems. Please find all download links on our website, which is automatically updated with every code change.
On our website https://msberends.github.io/AMR you can find a comprehensive tutorial about how to conduct AMR analysis, the complete documentation of all functions (which reads a lot easier than here in R) and an example analysis using WHONET data. As we would like to better understand the backgrounds and needs of our users, please participate in our survey!
# \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) 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) b # mo VAN AMX COL CAZ CXM PEN FOX # 1 Staphylococcus aureus - S R R 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) # }