1
0
mirror of https://github.com/msberends/AMR.git synced 2025-12-14 23:50:23 +01:00
Files
AMR/reference/index.md
2025-11-24 10:42:21 +00:00

26 KiB
Raw Permalink Blame History

Package index

Introduction to the package

Please find the introduction to (and some general information about) our package here.

Preparing data: microorganisms

These functions are meant to get taxonomically valid properties of microorganisms from any input, but also properties derived from taxonomy, such as the Gram stain (mo_gramstain()) , or mo_is_yeast(). Use mo_source() to teach this package how to translate your own codes to valid microorganisms, and use add_custom_microorganisms() to add your own custom microorganisms to this package.

Preparing data: antimicrobials

Use these functions to get valid properties of antimicrobials from any input or to clean your input. You can even retrieve drug names and doses from clinical text records, using ab_from_text().

Preparing data: antimicrobial results

With as.mic() and as.disk() you can transform your raw input to valid MIC or disk diffusion values. Use as.sir() for cleaning raw data to let it only contain “R”, “I” and “S”, or to interpret MIC or disk diffusion values as SIR based on the lastest EUCAST and CLSI guidelines. Afterwards, you can extend antibiotic interpretations by applying EUCAST rules with eucast_rules().

Analysing data

Use these function for the analysis part. You can use susceptibility() or resistance() on any antibiotic column. With antibiogram(), you can generate a traditional, combined, syndromic, or weighted-incidence syndromic combination antibiogram (WISCA). This function also comes with support for R Markdown and Quarto. Be sure to first select the isolates that are appropiate for analysis, by using first_isolate() or is_new_episode(). You can also filter your data on certain resistance in certain antibiotic classes (carbapenems(), aminoglycosides()), or determine multi-drug resistant microorganisms (MDRO, mdro()).

Plotting data

Use these functions for the plotting part. The scale_*_mic() functions extend the ggplot2 package to allow plotting of MIC values, even within a manually set range. If using plot() (base R) or autoplot() (ggplot2) on MIC values or disk diffusion values, the user can set the interpretation guideline to give the bars the right SIR colours. The ggplot_sir() function is a short wrapper for users not much accustomed to ggplot2 yet. The ggplot_pca() function is a specific function to plot so-called biplots for PCA (principal component analysis).

AMR-specific options

The AMR package is customisable, by providing settings that can be set per user or per team. For example, the default interpretation guideline can be changed from EUCAST to CLSI, or a supported language can be set for the whole team (system-language independent) for antibiotic names in a foreign language.

Other: antiviral drugs

This package also provides extensive support for antiviral agents, even though it is not the primary scope of this package. Working with data containing information about antiviral drugs was never easier. Use these functions to get valid properties of antiviral drugs from any input or to clean your input. You can even retrieve drug names and doses from clinical text records, using av_from_text().

Other: background information on included data

Some pages about our package and its external sources. Be sure to read our How Tos for more information about how to work with functions in this package.

Other: miscellaneous functions

These functions are mostly for internal use, but some of them may also be suitable for your analysis. Especially the like function can be useful: if (x %like% y) {...}.

Other: statistical tests

Some statistical tests or methods are not part of base R and were added to this package for convenience.

Other: deprecated functions/arguments/datasets

These objects are deprecated, meaning that they will still work but show a warning that they will be removed in a future version.