As per the EUCAST guideline of 2019, we calculate resistance as the proportion of R (proportion_R(), equal to resistance()) and susceptibility as the proportion of S and I (proportion_SI(), equal to susceptibility()). These functions can be used on their own:
# base R:plot(disk_values, mo ="E. coli", ab ="cipro")
diff --git a/articles/AMR_files/figure-html/disk_plots-1.png b/articles/AMR_files/figure-html/disk_plots-1.png
index e5a381ee..4f945227 100644
Binary files a/articles/AMR_files/figure-html/disk_plots-1.png and b/articles/AMR_files/figure-html/disk_plots-1.png differ
diff --git a/articles/AMR_files/figure-html/disk_plots_mo_ab-1.png b/articles/AMR_files/figure-html/disk_plots_mo_ab-1.png
index 0b2a445b..ad80b57f 100644
Binary files a/articles/AMR_files/figure-html/disk_plots_mo_ab-1.png and b/articles/AMR_files/figure-html/disk_plots_mo_ab-1.png differ
diff --git a/articles/AMR_files/figure-html/mic_plots-1.png b/articles/AMR_files/figure-html/mic_plots-1.png
index 1ab2e1e1..099ec714 100644
Binary files a/articles/AMR_files/figure-html/mic_plots-1.png and b/articles/AMR_files/figure-html/mic_plots-1.png differ
diff --git a/articles/AMR_files/figure-html/mic_plots-2.png b/articles/AMR_files/figure-html/mic_plots-2.png
index fd863f9d..e81d6233 100644
Binary files a/articles/AMR_files/figure-html/mic_plots-2.png and b/articles/AMR_files/figure-html/mic_plots-2.png differ
diff --git a/articles/AMR_files/figure-html/mic_plots_mo_ab-1.png b/articles/AMR_files/figure-html/mic_plots_mo_ab-1.png
index 1d019c19..c8f2f8e7 100644
Binary files a/articles/AMR_files/figure-html/mic_plots_mo_ab-1.png and b/articles/AMR_files/figure-html/mic_plots_mo_ab-1.png differ
diff --git a/articles/AMR_files/figure-html/mic_plots_mo_ab-2.png b/articles/AMR_files/figure-html/mic_plots_mo_ab-2.png
index a947f288..f2950ed8 100644
Binary files a/articles/AMR_files/figure-html/mic_plots_mo_ab-2.png and b/articles/AMR_files/figure-html/mic_plots_mo_ab-2.png differ
diff --git a/articles/AMR_files/figure-html/plot 1-1.png b/articles/AMR_files/figure-html/plot 1-1.png
index 6b7ea5ec..9cd9da47 100644
Binary files a/articles/AMR_files/figure-html/plot 1-1.png and b/articles/AMR_files/figure-html/plot 1-1.png differ
diff --git a/articles/AMR_files/figure-html/plot 3-1.png b/articles/AMR_files/figure-html/plot 3-1.png
index 9af7bd57..04a0c47d 100644
Binary files a/articles/AMR_files/figure-html/plot 3-1.png and b/articles/AMR_files/figure-html/plot 3-1.png differ
diff --git a/articles/AMR_files/figure-html/plot 4-1.png b/articles/AMR_files/figure-html/plot 4-1.png
index ae466532..bc81f405 100644
Binary files a/articles/AMR_files/figure-html/plot 4-1.png and b/articles/AMR_files/figure-html/plot 4-1.png differ
diff --git a/articles/AMR_files/figure-html/plot 5-1.png b/articles/AMR_files/figure-html/plot 5-1.png
index 4e819c84..de7a760e 100644
Binary files a/articles/AMR_files/figure-html/plot 5-1.png and b/articles/AMR_files/figure-html/plot 5-1.png differ
diff --git a/articles/EUCAST.html b/articles/EUCAST.html
index 749dfd45..ccd8919e 100644
--- a/articles/EUCAST.html
+++ b/articles/EUCAST.html
@@ -38,7 +38,7 @@
AMR (for R)
- 1.8.2.9031
+ 1.8.2.9032
diff --git a/articles/MDR.html b/articles/MDR.html
index 0529b04c..c0812670 100644
--- a/articles/MDR.html
+++ b/articles/MDR.html
@@ -38,7 +38,7 @@
AMR (for R)
- 1.8.2.9031
+ 1.8.2.9032
@@ -314,19 +314,19 @@ Unique: 2
head(my_TB_data)# rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin
-# 1 S R I R S S
-# 2 I R S I S S
-# 3 I I I I I I
-# 4 S R I R I R
-# 5 S I I I S S
-# 6 I I R R S I
+# 1 S R I S S S
+# 2 I S R R R S
+# 3 S R S S I S
+# 4 I R S S R S
+# 5 I S I S S R
+# 6 R I I S S I# kanamycin
-# 1 S
-# 2 R
-# 3 S
+# 1 I
+# 2 S
+# 3 I# 4 S
-# 5 R
-# 6 R
+# 5 S
+# 6 I
We can now add the interpretation of MDR-TB to our data set. You can use:
A data set with 48,787 rows and 22 columns, containing the following column names: mo, fullname, status, kingdom, phylum, class, order, family, genus, species, subspecies, rank, ref, source, lpsn, lpsn_parent, lpsn_renamed_to, gbif, gbif_parent, gbif_renamed_to, prevalence and snomed.
This data set is in R available as microorganisms, after you load the AMR package.
-
It was last updated on 21 October 2022 19:58:04 UTC. Find more info about the structure of this data set here.
+
It was last updated on 22 October 2022 08:21:06 UTC. Find more info about the structure of this data set here.
A data set with 464 rows and 14 columns, containing the following column names: ab, cid, name, group, atc, atc_group1, atc_group2, abbreviations, synonyms, oral_ddd, oral_units, iv_ddd, iv_units and loinc.
This data set is in R available as antibiotics, after you load the AMR package.
-
It was last updated on 21 October 2022 19:58:04 UTC. Find more info about the structure of this data set here.
+
It was last updated on 22 October 2022 08:21:06 UTC. Find more info about the structure of this data set here.
A data set with 102 rows and 9 columns, containing the following column names: atc, cid, name, atc_group, synonyms, oral_ddd, oral_units, iv_ddd and iv_units.
This data set is in R available as antivirals, after you load the AMR package.
-
It was last updated on 21 October 2022 19:58:04 UTC. Find more info about the structure of this data set here.
+
It was last updated on 22 October 2022 08:21:06 UTC. Find more info about the structure of this data set here.
A data set with 20,369 rows and 11 columns, containing the following column names: guideline, method, site, mo, rank_index, ab, ref_tbl, disk_dose, breakpoint_S, breakpoint_R and uti.
This data set is in R available as rsi_translation, after you load the AMR package.
-
It was last updated on 21 October 2022 19:58:04 UTC. Find more info about the structure of this data set here.
+
It was last updated on 22 October 2022 08:21:06 UTC. Find more info about the structure of this data set here.
A data set with 169 rows and 9 columns, containing the following column names: ab, name, type, dose, dose_times, administration, notes, original_txt and eucast_version.
This data set is in R available as dosage, after you load the AMR package.
-
It was last updated on 21 October 2022 19:58:04 UTC. Find more info about the structure of this data set here.
+
It was last updated on 22 October 2022 08:21:06 UTC. Find more info about the structure of this data set here.
This version will eventually become v2.0! We’re happy to reach a new major milestone soon!
-
Breaking
+
Breaking
Removed all species of the taxonomic kingdom Chromista from the package. This was done for multiple reasons:
CRAN allows packages to be around 5 MB maximum, some packages are exempted but this package is not one of them
Chromista are not relevant when it comes to antimicrobial resistance, thus lacking the primary scope of this package
Chromista are almost never clinically relevant, thus lacking the secondary scope of this package
@@ -141,7 +141,7 @@
Argument combine_IR has been removed from this package (affecting functions count_df(), proportion_df(), and rsi_df() and some plotting functions), since it was replaced with combine_SI three years ago
-
New
+
New
EUCAST 2022 and CLSI 2022 guidelines have been added for as.rsi(). EUCAST 2022 is now the new default guideline for all MIC and disks diffusion interpretations.
All new algorithm for as.mo() (and thus internally all mo_*() functions) while still following our original set-up as described in our paper (DOI 10.18637/jss.v104.i03).
A new argument keep_synonyms allows to not correct for updated taxonomy, in favour of the now deleted argument allow_uncertain
@@ -162,7 +162,7 @@
-
Changed
+
Changed
Fix for using as.rsi() on certain EUCAST breakpoints for MIC values
Fix for using as.rsi() on NA values (e.g. as.rsi(as.disk(NA), ...))
Removed as.integer() for MIC values, since MIC are not integer values and running table() on MIC values consequently failed for not being able to retrieve the level position (as that’s how normally as.integer() on factors work)
New website to make use of the new Bootstrap 5 and pkgdown 2.0. The website now contains results for all examples and will be automatically regenerated with every change to our repository, using GitHub Actions
Added Peter Dutey-Magni, Dmytro Mykhailenko, Anton Mymrikov, and Jonas Salm as contributors, to thank them for their valuable input
All R and Rmd files in this project are now styled using the styler package