diff --git a/404.html b/404.html index 33015c59..2d28c1bc 100644 --- a/404.html +++ b/404.html @@ -36,7 +36,7 @@ AMR (for R) - 1.8.2.9067 + 1.8.2.9068
So only 52.8% is suitable for resistance analysis! We can now filter
-on it with the filter()
function, also from the
+
So only 53% is suitable for resistance analysis! We can now filter on
+it with the filter()
function, also from the
dplyr
package:
data_1st <- data %>%
@@ -634,7 +634,7 @@ on it with the data_1st <- data %>%
filter_first_isolate()
# Including isolates from ICU.
So we end up with 10,551 isolates for analysis. Now our data looks +
So we end up with 10,607 isolates for analysis. Now our data looks like:
head(data_1st)
Time for the analysis!
@@ -801,8 +801,8 @@ readable:data_1st %>% freq(genus, species)
Frequency table
Class: character
-Length: 10,551
-Available: 10,551 (100%, NA: 0 = 0%)
+Length: 10,607
+Available: 10,607 (100%, NA: 0 = 0%)
Unique: 4
Shortest: 16
Longest: 24
proportion_SI()
, equa
own:
data_1st %>% resistance(AMX)
-# [1] 0.5440243
Or can be used in conjunction with group_by()
and
summarise()
, both from the dplyr
package:
@@ -1152,19 +1152,19 @@ own:Hospital A -0.5401168 +0.5539478 Hospital B -0.5521811 +0.5484475 Hospital C -0.5381703 +0.5440806 @@ -1189,23 +1189,23 @@ all isolates available for every group (i.e. values S, I or R): Hospital D -0.5404113 +0.5280418 Hospital A -0.5401168 -3253 +0.5539478 +3179 Hospital B -0.5521811 -3622 +0.5484475 +3736 Hospital C -0.5381703 -1585 +0.5440806 +1588 @@ -1230,27 +1230,27 @@ therapies very easily: Hospital D -0.5404113 -2091 +0.5280418 +2104 Escherichia -0.7720061 -0.8741578 -0.9793523 +0.7746142 +0.8772006 +0.9780483 Klebsiella -0.8071488 -0.8994181 -0.9800499 +0.8227425 +0.8963211 +0.9790970 Staphylococcus -0.7907489 -0.8964758 -0.9842144 +0.7789356 +0.9036100 +0.9810197 @@ -1278,23 +1278,23 @@ classes, use a antibiotic class selector such as Streptococcus -0.5353435 +0.5336788 0.0000000 -0.5353435 +0.5336788 Hospital A -54.0% -26.6% +55.4% +27.0% Hospital B -55.2% -26.2% +54.8% +26.5% Hospital C -53.8% -26.9% +54.4% +26.2% @@ -1410,18 +1410,16 @@ classes) Hospital D -54.0% -26.3% +52.8% +27.1% <mic>
and<disk>
:mic_values <- random_mic(size = 100) mic_values # Class 'mic' -# [1] 128 4 4 64 0.125 0.5 1 4 128 -# [10] 0.125 0.0625 0.025 64 0.025 0.01 4 16 32 -# [19] 256 <=0.001 64 64 8 256 1 0.002 0.01 -# [28] 0.005 64 0.125 16 128 2 4 32 8 -# [37] 256 256 128 0.0625 16 32 32 256 0.002 -# [46] 0.25 <=0.001 2 128 <=0.001 <=0.001 256 0.0625 4 -# [55] 0.25 64 16 0.125 1 0.5 0.002 16 128 -# [64] 0.002 0.025 128 16 0.01 64 0.025 0.125 0.01 -# [73] 0.25 0.25 1 16 1 2 0.25 32 0.25 -# [82] 16 0.01 0.01 1 1 128 128 2 0.125 -# [91] 0.01 0.0625 0.01 0.005 4 16 256 4 4 -# [100] 1
# base R:
plot(mic_values)
disk_values <- random_disk(size = 100, mo = "E. coli", ab = "cipro")
disk_values
# Class 'disk'
-# [1] 28 17 17 21 28 19 31 28 27 19 17 31 18 19 26 31 23 29 27 26 21 28 17 28 22
-# [26] 20 24 28 28 23 20 27 19 28 30 27 19 27 18 21 24 17 21 27 28 26 22 27 30 23
-# [51] 31 28 28 31 21 21 28 31 21 26 21 18 24 20 31 22 28 25 25 21 22 25 18 18 26
-# [76] 30 23 29 24 27 19 17 21 24 27 31 17 26 21 26 22 17 24 23 21 25 22 28 22 28
+# [1] 17 22 17 18 28 30 30 31 20 20 17 23 18 30 27 28 18 27 25 25 25 25 17 19 20
+# [26] 24 19 25 20 23 30 25 23 18 20 23 24 29 19 27 29 21 17 21 25 25 17 29 24 20
+# [51] 24 20 17 30 23 22 25 17 17 21 19 20 27 29 26 25 22 21 29 31 19 21 29 24 29
+# [76] 31 24 22 20 22 28 18 28 28 17 20 23 31 19 23 26 31 19 30 29 17 26 28 29 30
# base R:
plot(disk_values, mo = "E. coli", ab = "cipro")
head(my_TB_data)
# rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin
-# 1 S S I S S R
-# 2 R S R I S S
-# 3 I R S S I R
-# 4 R R I I S R
-# 5 S R S I R S
-# 6 I I S I S S
+# 1 S R R S I S
+# 2 I R S S S S
+# 3 I R S R S S
+# 4 R R S I I R
+# 5 S I R I S R
+# 6 S I I I I R
# kanamycin
-# 1 S
-# 2 R
+# 1 R
+# 2 S
# 3 I
-# 4 I
-# 5 I
+# 4 S
+# 5 R
# 6 S
We can now add the interpretation of MDR-TB to our data set. You can use:
@@ -428,40 +428,40 @@ Unique: 5(this beta version will eventually become v2.0! We’re happy to reach a new major milestone soon!)
This is a new major release of the AMR package, with great new additions but also some breaking changes for current users. These are all listed below.
@@ -146,19 +146,19 @@EUCAST 2022 and CLSI 2022 guidelines have been added for as.rsi()
. EUCAST 2022 (v12.0) is now the new default guideline for all MIC and disks diffusion interpretations, and for eucast_rules()
to apply EUCAST Expert Rules. The default guideline (EUCAST) can now be changed with the new AMR_guideline
option, such as: options(AMR_guideline = "CLSI 2020")
.
Interpretation guidelines older than 10 years were removed, the oldest now included guidelines of EUCAST and CLSI are from 2013.
We added support for the following languages: Chinese, Greek, Japanese, Polish, Turkish and Ukrainian. All antibiotic names are now available in these languages, and the AMR package will automatically determine a supported language based on the user system language.
We are very grateful for the valuable input by our colleagues from other countries. The AMR
package is now available in 16 languages and according to download stats used in almost all countries in the world!
The microorganisms
no longer relies on the Catalogue of Life, but on the List of Prokaryotic names with Standing in Nomenclature (LPSN) and is supplemented with the ‘backbone taxonomy’ from the Global Biodiversity Information Facility (GBIF). The structure of this data set has changed to include separate LPSN and GBIF identifiers. Almost all previous MO codes were retained. It contains over 1,400 taxonomic names from 2022.
We previously relied on our own experience to categorise species into pathogenic groups, but we were very happy to encounter the very recent work of Bartlett et al. (2022, DOI 10.1099/mic.0.001269) who extensively studied medical-scientific literature to categorise all bacterial species into groups. See mo_matching_score()
on how their work was incorporated into the prevalence
column of the microorganisms
data set. Using their results, the as.mo()
and all mo_*()
functions are now much better capable of converting user input to valid taxonomic records.
We also made the following changes regarding the included taxonomy or microorganisms functions:
@@ -181,7 +181,7 @@microorganisms.old
data set was removed, and all previously accepted names are now included in the microorganisms
data set. A new column status
contains "accepted"
for currently accepted names and "synonym"
for taxonomic synonyms; currently invalid names. All previously accepted names now have a microorganisms ID and - if available - an LPSN, GBIF and SNOMED CT identifier.The new function add_custom_antimicrobials()
allows users to add custom antimicrobial codes and names to the AMR
package.
The antibiotics
data set was greatly updated:
Also, we added support for using antibiotic selectors in scoped dplyr
verbs (with or without using vars()
), such as in: ... %>% summarise_at(aminoglycosides(), resistance)
, please see resistance()
for examples.
We now added extensive support for antiviral agents! For the first time, the AMR
package has extensive support for antiviral drugs and to work with their names, codes and other data in any way.
antivirals
data set has been extended with 18 new drugs (also from the new J05AJ ATC group) and now also contains antiviral identifiers and LOINC codesav
(antivirals) has been added, which is functionally similar to ab
for antibioticsas.av()
, av_name()
, av_atc()
, av_synonyms()
, av_from_text()
have all been added as siblings to their ab_*()
equivalentsrsi_confidence_interval()
to add confidence intervals in AMR calculation. This is now also included in rsi_df()
and proportion_df()
.mean_amr_distance()
to calculate the mean AMR distance. The mean AMR distance is a normalised numeric value to compare AMR test results and can help to identify similar isolates, without comparing antibiograms by hand.rsi_interpretation_history()
to view the history of previous runs of as.rsi()
. This returns a ‘logbook’ with the selected guideline, reference table and specific interpretation of each row in a data set on which as.rsi()
was run.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 agounits
in ab_ddd(..., units = "...")
had been deprecated for some time and is now not supported anymore. Use ab_ddd_units()
instead.data.frame
-enhancing R packages, more specifically: data.table::data.table
, janitor::tabyl
, tibble::tibble
, and tsibble::tsibble
. AMR package functions that have a data set as output (such as rsi_df()
and bug_drug_combinations()
), will now return the same data type as the input.as.rsi()
, as.mic()
, or as.disk()
will now show the column name in the warning for invalid resultsstyler
package