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 6d456bec1..2e8ba53b4 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 41d0f6982..b7f3e3e37 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 81e23f696..51c4bd4d7 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 582c2a81f..3e63682b6 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 95f796e48..641bc0ed0 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 f7a929d9f..52f9e825e 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 92fbc6ce6..37ce793cc 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 24e174bd9..9ed6ca759 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 aa9a81cc7..21ff8ff1c 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 e1a42359e..a67679044 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 7a6a9961c..12ff8c9ba 100644
--- a/articles/EUCAST.html
+++ b/articles/EUCAST.html
@@ -38,7 +38,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
diff --git a/articles/MDR.html b/articles/MDR.html
index 751f4ac54..b0dc6948c 100644
--- a/articles/MDR.html
+++ b/articles/MDR.html
@@ -38,7 +38,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
@@ -314,19 +314,19 @@ Unique: 2
head(my_TB_data)# rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin
-# 1 R R I R R S
-# 2 I I I I S R
-# 3 S R R S S I
-# 4 I S I R R S
-# 5 R R R S S S
-# 6 I S S I I I
+# 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# kanamycin# 1 S# 2 I
-# 3 I
+# 3 R# 4 R
-# 5 R
-# 6 R
+# 5 S
+# 6 S
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 14 October 2022 13:45:54 UTC. Find more info about the structure of this data set here.
+
It was last updated on 15 October 2022 13:21:31 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 14 October 2022 13:45:54 UTC. Find more info about the structure of this data set here.
+
It was last updated on 15 October 2022 13:21:31 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 14 October 2022 13:45:54 UTC. Find more info about the structure of this data set here.
+
It was last updated on 15 October 2022 13:21:31 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 14 October 2022 13:45:54 UTC. Find more info about the structure of this data set here.
+
It was last updated on 15 October 2022 13:21:31 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 14 October 2022 13:45:54 UTC. Find more info about the structure of this data set here.
+
It was last updated on 15 October 2022 13:21:31 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
diff --git a/pkgdown.yml b/pkgdown.yml
index 91e56c2d6..9e3fbab44 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -11,7 +11,7 @@ articles:
datasets: datasets.html
resistance_predict: resistance_predict.html
welcome_to_AMR: welcome_to_AMR.html
-last_built: 2022-10-14T13:48Z
+last_built: 2022-10-15T13:24Z
urls:
reference: https://msberends.github.io/AMR/reference
article: https://msberends.github.io/AMR/articles
diff --git a/reference/AMR-deprecated.html b/reference/AMR-deprecated.html
index 894eb66b4..458730330 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -10,7 +10,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
diff --git a/reference/AMR.html b/reference/AMR.html
index 2835a43f6..30830c234 100644
--- a/reference/AMR.html
+++ b/reference/AMR.html
@@ -62,7 +62,7 @@ Principal component analysis for AMR
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
diff --git a/reference/Rplot005.png b/reference/Rplot005.png
index 50e40f1c5..6a40ab3a4 100644
Binary files a/reference/Rplot005.png and b/reference/Rplot005.png differ
diff --git a/reference/Rplot006.png b/reference/Rplot006.png
index 0ca068ee8..6cc0f5895 100644
Binary files a/reference/Rplot006.png and b/reference/Rplot006.png differ
diff --git a/reference/Rplot007.png b/reference/Rplot007.png
index 89860e611..2dac5e456 100644
Binary files a/reference/Rplot007.png and b/reference/Rplot007.png differ
diff --git a/reference/Rplot008.png b/reference/Rplot008.png
index c63cc27a8..043e0a396 100644
Binary files a/reference/Rplot008.png and b/reference/Rplot008.png differ
diff --git a/reference/Rplot009.png b/reference/Rplot009.png
index 19643a9f3..ccfba30aa 100644
Binary files a/reference/Rplot009.png and b/reference/Rplot009.png differ
diff --git a/reference/WHOCC.html b/reference/WHOCC.html
index cc07dedba..ec4315e78 100644
--- a/reference/WHOCC.html
+++ b/reference/WHOCC.html
@@ -10,7 +10,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
diff --git a/reference/WHONET.html b/reference/WHONET.html
index 0aea57f42..42d2c568c 100644
--- a/reference/WHONET.html
+++ b/reference/WHONET.html
@@ -10,7 +10,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
diff --git a/reference/ab_from_text.html b/reference/ab_from_text.html
index 2a222436f..06848511d 100644
--- a/reference/ab_from_text.html
+++ b/reference/ab_from_text.html
@@ -10,7 +10,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
diff --git a/reference/ab_property.html b/reference/ab_property.html
index b6e2f2a2f..60ed6f5f4 100644
--- a/reference/ab_property.html
+++ b/reference/ab_property.html
@@ -10,7 +10,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
diff --git a/reference/add_custom_antimicrobials.html b/reference/add_custom_antimicrobials.html
index 3f9237104..d694a89e0 100644
--- a/reference/add_custom_antimicrobials.html
+++ b/reference/add_custom_antimicrobials.html
@@ -10,7 +10,7 @@
AMR (for R)
- 1.8.2.9016
+ 1.8.2.9018
@@ -162,7 +162,9 @@
Examples
-
# returns NA and throws a warning (which is now suppressed):
+
# \donttest{
+
+# returns NA and throws a warning (which is now suppressed):suppressWarnings(as.ab("test"))
@@ -263,6 +265,7 @@
#> 'ampicillin'#> coflu ampicillin#> 1 S R
+# }