From 892b43a567efa0c7fcfdb9995bfa490677535dad Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 23 Feb 2025 18:25:48 +0000 Subject: [PATCH] Built site for AMR@2.1.1.9156: b10989f --- 404.html | 2 +- LICENSE-text.html | 2 +- articles/AMR.html | 250 +++++++++++++----- articles/AMR_files/figure-html/autoplot-1.png | Bin 0 -> 34988 bytes articles/AMR_files/figure-html/autoplot-2.png | Bin 0 -> 60548 bytes articles/AMR_files/figure-html/mic_plot-1.png | Bin 0 -> 103981 bytes .../figure-html/unnamed-chunk-10-1.png | Bin 54740 -> 48420 bytes articles/AMR_for_Python.html | 2 +- articles/AMR_with_tidymodels.html | 2 +- articles/EUCAST.html | 2 +- articles/MDR.html | 2 +- articles/PCA.html | 2 +- articles/WHONET.html | 2 +- articles/datasets.html | 4 +- articles/index.html | 2 +- articles/resistance_predict.html | 2 +- articles/welcome_to_AMR.html | 2 +- authors.html | 2 +- index.html | 21 +- news/index.html | 17 +- pkgdown.yml | 2 +- reference/AMR-deprecated.html | 2 +- reference/AMR-options.html | 2 +- reference/AMR.html | 2 +- reference/WHOCC.html | 2 +- reference/WHONET.html | 2 +- reference/ab_from_text.html | 2 +- reference/ab_property.html | 2 +- reference/add_custom_antimicrobials.html | 2 +- reference/add_custom_microorganisms.html | 2 +- reference/age.html | 22 +- reference/age_groups.html | 2 +- reference/antibiogram.html | 18 +- reference/antibiotics.html | 2 +- reference/antimicrobial_selectors.html | 2 +- reference/as.ab.html | 2 +- reference/as.av.html | 2 +- reference/as.disk.html | 2 +- reference/as.mic.html | 7 +- reference/as.mo.html | 2 +- reference/as.sir.html | 24 +- reference/atc_online.html | 2 +- reference/av_from_text.html | 2 +- reference/av_property.html | 2 +- reference/availability.html | 2 +- reference/bug_drug_combinations.html | 6 +- reference/clinical_breakpoints.html | 2 +- reference/count.html | 4 +- reference/custom_eucast_rules.html | 2 +- reference/dosage.html | 2 +- reference/eucast_rules.html | 2 +- reference/example_isolates.html | 2 +- reference/example_isolates_unclean.html | 2 +- reference/export_ncbi_biosample.html | 2 +- reference/first_isolate.html | 2 +- reference/g.test.html | 2 +- reference/get_episode.html | 2 +- reference/ggplot_pca.html | 2 +- reference/ggplot_sir.html | 2 +- reference/guess_ab_col.html | 2 +- reference/index.html | 4 +- reference/intrinsic_resistant.html | 2 +- reference/italicise_taxonomy.html | 2 +- reference/join.html | 2 +- reference/key_antimicrobials.html | 2 +- reference/kurtosis.html | 2 +- reference/like.html | 2 +- reference/mdro.html | 2 +- reference/mean_amr_distance.html | 2 +- reference/mic_p50.html | 8 + reference/mic_p90.html | 8 + reference/microorganisms.codes.html | 2 +- reference/microorganisms.groups.html | 2 +- reference/microorganisms.html | 2 +- reference/mo_matching_score.html | 2 +- reference/mo_property.html | 2 +- reference/mo_source.html | 2 +- reference/pca.html | 2 +- reference/plot-1.png | Bin 0 -> 38148 bytes reference/plot-10.png | Bin 0 -> 61084 bytes reference/plot-11.png | Bin 0 -> 19275 bytes reference/plot-12.png | Bin 0 -> 73459 bytes reference/plot-13.png | Bin 0 -> 93666 bytes reference/plot-14.png | Bin 0 -> 88816 bytes reference/plot-15.png | Bin 0 -> 26471 bytes reference/plot-16.png | Bin 0 -> 40312 bytes reference/plot-17.png | Bin 0 -> 27051 bytes reference/plot-18.png | Bin 0 -> 40720 bytes reference/plot-19.png | Bin 0 -> 39878 bytes reference/plot-2.png | Bin 0 -> 61675 bytes reference/plot-20.png | Bin 0 -> 26115 bytes reference/plot-3.png | Bin 0 -> 58979 bytes reference/plot-4.png | Bin 0 -> 24961 bytes reference/plot-5.png | Bin 0 -> 27928 bytes reference/plot-6.png | Bin 0 -> 30774 bytes reference/plot-7.png | Bin 0 -> 27160 bytes reference/plot-8.png | Bin 0 -> 33179 bytes reference/plot-9.png | Bin 0 -> 80659 bytes reference/plot.html | 156 ++++++++++- reference/proportion.html | 4 +- reference/random.html | 33 +-- reference/resistance_predict.html | 2 +- reference/skewness.html | 4 +- reference/top_n_microorganisms.html | 2 +- reference/translate.html | 2 +- search.json | 2 +- 106 files changed, 495 insertions(+), 225 deletions(-) create mode 100644 articles/AMR_files/figure-html/autoplot-1.png create mode 100644 articles/AMR_files/figure-html/autoplot-2.png create mode 100644 articles/AMR_files/figure-html/mic_plot-1.png create mode 100644 reference/mic_p50.html create mode 100644 reference/mic_p90.html create mode 100644 reference/plot-1.png create mode 100644 reference/plot-10.png create mode 100644 reference/plot-11.png create mode 100644 reference/plot-12.png create mode 100644 reference/plot-13.png create mode 100644 reference/plot-14.png create mode 100644 reference/plot-15.png create mode 100644 reference/plot-16.png create mode 100644 reference/plot-17.png create mode 100644 reference/plot-18.png create mode 100644 reference/plot-19.png create mode 100644 reference/plot-2.png create mode 100644 reference/plot-20.png create mode 100644 reference/plot-3.png create mode 100644 reference/plot-4.png create mode 100644 reference/plot-5.png create mode 100644 reference/plot-6.png create mode 100644 reference/plot-7.png create mode 100644 reference/plot-8.png create mode 100644 reference/plot-9.png diff --git a/404.html b/404.html index a4e1e4f46..e40db9e09 100644 --- a/404.html +++ b/404.html @@ -32,7 +32,7 @@ AMR (for R) - 2.1.1.9154 + 2.1.1.9156
+generated on 23 February 2025.language
argument:
To create a combined antibiogram, use antibiotic codes or names with
a plus +
character like this:
-antibiogram(example_isolates,
- antibiotics = c("TZP", "TZP+TOB", "TZP+GEN"))
combined_ab <- antibiogram(example_isolates,
+ antibiotics = c("TZP", "TZP+TOB", "TZP+GEN"),
+ ab_transform = NULL)
+combined_ab
Pathogen | -Piperacillin/tazobactam | -Piperacillin/tazobactam + Gentamicin | -Piperacillin/tazobactam + Tobramycin | +TZP | +TZP + GEN | +TZP + TOB | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Syndromic Group | -Pathogen | -Amoxicillin/clavulanic acid | -Amoxicillin/clavulanic acid + Ciprofloxacin | Piperacillin/tazobactam | +Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
---|---|---|---|---|---|---|
73.7% (65.8-81.1%) | +97% (94.2-98.7%) | +92.4% (85.9-96.6%) | +
WISCA uses a Bayesian decision model to integrate +data from multiple pathogens, improving empirical therapy guidance, +especially for low-incidence infections. It is +pathogen-agnostic, meaning results are syndrome-based +rather than stratified by microorganism.
+For reliable results, ensure your data includes only first
+isolates (use first_isolate()
) and consider
+filtering for the top n species (use
+top_n_microorganisms()
), as WISCA outcomes are most
+meaningful when based on robust incidence estimates.
For patient- or syndrome-specific WISCA, run the
+function on a grouped tibble
, i.e., using
+group_by()
first:
+example_isolates %>%
+ top_n_microorganisms(n = 10) %>%
+ group_by(age_group = age_groups(age, c(25, 50, 75)),
+ gender) %>%
+ wisca(antibiotics = c("TZP", "TZP+TOB", "TZP+GEN"))
age_group | +gender | +Piperacillin/tazobactam + Gentamicin | +Piperacillin/tazobactam + Tobramycin | +Piperacillin/tazobactam | +||||||
---|---|---|---|---|---|---|---|---|---|---|
WISCA Group 1 | -Gram-negative | -76% (70-81%) | -95% (92-97%) | -89% (84-92%) | -99% (96-100%) | +25-49 | +F | +94.4% (79.6-99.9%) | +94.5% (79.6-99.8%) | +|
WISCA Group 2 | -Gram-negative | -76% (72-80%) | -98% (96-99%) | -88% (84-91%) | -98% (96-99%) | +25-49 | +M | +96.1% (85.4-99.9%) | ++ | |
WISCA Group 1 | -Gram-positive | -76% (72-80%) | -89% (85-92%) | -81% (73-88%) | -95% (91-98%) | +50-74 | +F | +97.1% (91.2-99.7%) | +97.7% (91.9-100%) | +93.6% (87.4-97.5%) |
WISCA Group 2 | -Gram-positive | -76% (73-79%) | -89% (86-91%) | -88% (83-92%) | -95% (92-97%) | +50-74 | +M | +96.7% (90.7-99.5%) | +97% (91-99.8%) | +92.5% (84.3-97.4%) | +
75+ | +F | +97.6% (91.7-99.9%) | +95.7% (88.2-99.2%) | +92.1% (85.8-96.4%) | +||||||
75+ | +M | +97.2% (91.5-99.7%) | +97.1% (89.6-99.9%) | +96.5% (91.3-99.5%) |
Antibiograms can be plotted using autoplot()
from the
ggplot2
packages, since this AMR
package
provides an extension to that function:
-autoplot(wisca)
+autoplot(combined_ab)
To calculate antimicrobial resistance in a more sensible way, also by
correcting for too few results, we use the resistance()
and
@@ -1217,12 +1250,12 @@ proportion of R (proportion_R()
I (
proportion_SI()
, equal to
susceptibility()
). These functions can be used on their
own:
+our_data_1st %>% resistance(AMX) #> [1] 0.4203377
Or can be used in conjunction with
-group_by()
andsummarise()
, both from thedplyr
package:+++our_data_1st %>% group_by(hospital) %>% summarise(amoxicillin = resistance(AMX)) @@ -1232,8 +1265,81 @@ own: #> 1 A 0.340 #> 2 B 0.551 #> 3 C 0.370
++Interpreting MIC and Disk Diffusion Values +
+Minimal inhibitory concentration (MIC) values and disk diffusion +diameters can be interpreted into clinical breakpoints (SIR) using +
+as.sir()
. Here’s an example with randomly generated MIC +values for Klebsiella pneumoniae and ciprofloxacin:++set.seed(123) +mic_values <- random_mic(100) +sir_values <- as.sir(mic_values, mo = "K. pneumoniae", ab = "cipro", guideline = "EUCAST 2024") +#> +#> ℹ Run sir_interpretation_history() afterwards to retrieve a logbook with +#> all the details of the breakpoint interpretations. +#> +#> Interpreting MIC values: 'cipro' (CIP, ciprofloxacin), EUCAST 2024... NOTE +#> • Multiple breakpoints available for ciprofloxacin (CIP) in Klebsiella pneumoniae - assuming body site 'Non-meningitis'. + +my_data <- tibble(MIC = mic_values, SIR = sir_values) +my_data +#> # A tibble: 100 × 2 +#> MIC SIR +#> <mic> <sir> +#> 1 16.000 R +#> 2 0.005 S +#> 3 1.000 R +#> 4 >=256.000 R +#> 5 2.000 R +#> 6 0.025 S +#> 7 16.000 R +#> 8 0.025 S +#> 9 0.500 I +#> 10 0.005 S +#> # ℹ 90 more rows
This allows direct interpretation according to EUCAST or CLSI +breakpoints, facilitating automated AMR data processing.
++Plotting MIC and SIR Interpretations +
+We can visualise MIC distributions and their SIR interpretations +using
+ggplot2
, using the newscale_y_mic()
for +the y-axis andscale_colour_sir()
to colour-code SIR +categories.++# add a group +my_data$group <- rep(c("A", "B", "C", "D"), each = 25) + +ggplot(my_data, + aes(x = group, y = MIC, colour = SIR)) + + geom_jitter(width = 0.2, size = 2) + + geom_boxplot(fill = NA, colour = "grey40") + + scale_y_mic() + + scale_colour_sir() + + labs(title = "MIC Distribution and SIR Interpretation", + x = "Sample Groups", + y = "MIC (mg/L)")
+
This plot provides an intuitive way to assess susceptibility patterns +across different groups while incorporating clinical breakpoints.
+For a more straightforward and less manual approach, +
+ggplot2
’s functionautoplot()
has been +extended by this package to directly plot MIC and disk diffusion +values:++autoplot(mic_values)
+
+++# by providing `mo` and `ab`, colours will indicate the SIR interpretation: +autoplot(mic_values, mo = "K. pneumoniae", ab = "cipro", guideline = "EUCAST 2024")
-Author: Dr. Matthijs Berends, 26th Feb 2023
+Author: Dr. Matthijs Berends, 23rd Feb 2025