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 2e8ba53b..735cd3cd 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 b7f3e3e3..40e045fa 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 51c4bd4d..de90109f 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 3e63682b..ee3bedf9 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 641bc0ed..990ca9eb 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 52f9e825..6a45ca66 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 37ce793c..3bbe1a2c 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 9ed6ca75..a6a6b8d3 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 21ff8ff1..91883d9d 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 a6767904..ce1d44f0 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 12ff8c9b..4ee0463c 100644
--- a/articles/EUCAST.html
+++ b/articles/EUCAST.html
@@ -38,7 +38,7 @@
AMR (for R)
- 1.8.2.9018
+ 1.8.2.9019
diff --git a/articles/MDR.html b/articles/MDR.html
index b0dc6948..a5d267bf 100644
--- a/articles/MDR.html
+++ b/articles/MDR.html
@@ -38,7 +38,7 @@
AMR (for R)
- 1.8.2.9018
+ 1.8.2.9019
@@ -314,19 +314,19 @@ Unique: 2
head(my_TB_data)# rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin
-# 1 R S R S I R
-# 2 I S R R R S
-# 3 S I I S I I
-# 4 I I S S R R
-# 5 R I R S I I
-# 6 I I S S I S
+# 1 I R I I R S
+# 2 R R I S S R
+# 3 R R R R I R
+# 4 R R I S R S
+# 5 R R I R S I
+# 6 S S I S S I# kanamycin
-# 1 S
-# 2 I
+# 1 I
+# 2 R# 3 R
-# 4 R
+# 4 S# 5 S
-# 6 S
+# 6 R
We can now add the interpretation of MDR-TB to our data set. You can use:
Many R users just ask questions on websites like StackOverflow.com, the largest online community for programmers. At the time of writing, 466,054 R-related questions have already been asked on this platform (that covers questions and answers for any programming language). In my own experience, most questions are answered within a couple of minutes.
+
Many R users just ask questions on websites like StackOverflow.com, the largest online community for programmers. At the time of writing, 466,988 R-related questions have already been asked on this platform (that covers questions and answers for any programming language). In my own experience, most questions are answered within a couple of minutes.
R understands any data type, including SPSS/SAS/Stata.
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 15 October 2022 13:21:31 UTC. Find more info about the structure of this data set here.
+
It was last updated on 18 October 2022 20:55:18 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 15 October 2022 13:21:31 UTC. Find more info about the structure of this data set here.
+
It was last updated on 18 October 2022 20:55:18 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 15 October 2022 13:21:31 UTC. Find more info about the structure of this data set here.
+
It was last updated on 18 October 2022 20:55:18 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 15 October 2022 13:21:31 UTC. Find more info about the structure of this data set here.
+
It was last updated on 18 October 2022 20:55:18 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 15 October 2022 13:21:31 UTC. Find more info about the structure of this data set here.
+
It was last updated on 18 October 2022 20:55:18 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
@@ -140,7 +140,7 @@
The mo_matching_score() now count deletions and substitutions as 2 instead of 1, which impacts the outcome of as.mo() and any mo_*() function
-
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
@@ -157,7 +157,7 @@
Our data sets are now also continually exported to Apache Feather and Apache Parquet formats. You can find more info in this article on our website.
-
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 and Anton Mymrikov as contributors, to thank them for their valuable input
All R and Rmd files in this project are now styled using the styler package