diff --git a/404.html b/404.html index 61bce3b3..8f6c7e77 100644 --- a/404.html +++ b/404.html @@ -36,7 +36,7 @@ AMR (for R) - 1.8.2.9078 + 1.8.2.9079
So only 53.9% is suitable for resistance analysis! We can now filter +
So only 52.7% is suitable for resistance analysis! We can now filter
on it with the filter()
function, also from the
dplyr
package:
@@ -634,7 +634,7 @@ on it with the data_1st <- data %>%
filter_first_isolate()
# Including isolates from ICU.
So we end up with 10,772 isolates for analysis. Now our data looks +
So we end up with 10,536 isolates for analysis. Now our data looks like:
head(data_1st)
data_1st %>% freq(genus, species)
Frequency table
Class: character
-Length: 10,772
-Available: 10,772 (100%, NA: 0 = 0%)
+Length: 10,536
+Available: 10,536 (100%, NA: 0 = 0%)
Unique: 4
Shortest: 16
Longest: 24
If you want to get a quick glance of the number of isolates in @@ -1013,50 +1013,50 @@ different bug/drug combinations, you can use the
proportion_SI()
, equa
own:
data_1st %>% resistance(AMX)
-# [1] 0.5386186
Or can be used in conjunction with group_by()
and
summarise()
, both from the dplyr
package:
@@ -1152,19 +1152,19 @@ own:Hospital A -0.5404491 +0.5308011 Hospital B -0.5344360 +0.5414217 Hospital C -0.5435294 +0.5430925 @@ -1189,23 +1189,23 @@ all isolates available for every group (i.e. values S, I or R): Hospital D -0.5391467 +0.5612098 Hospital A -0.5404491 -3251 +0.5308011 +3133 Hospital B -0.5344360 -3688 +0.5414217 +3742 Hospital C -0.5435294 -1700 +0.5430925 +1578 @@ -1230,27 +1230,27 @@ therapies very easily: Hospital D -0.5391467 -2133 +0.5612098 +2083 Escherichia -0.7727176 -0.8703980 -0.9765908 +0.7654945 +0.8802198 +0.9753846 Klebsiella -0.8240271 -0.9060914 -0.9780034 +0.8272340 +0.8961702 +0.9889362 Staphylococcus -0.7986823 -0.8868960 -0.9795022 +0.7943107 +0.8902261 +0.9788476 @@ -1278,23 +1278,23 @@ classes, use a antibiotic class selector such as Streptococcus -0.5368226 +0.5427743 0.0000000 -0.5368226 +0.5427743 Hospital A -54.0% -25.9% +53.1% +26.0% Hospital B -53.4% -25.6% +54.1% +26.4% Hospital C -54.4% -28.5% +54.3% +26.3% @@ -1410,16 +1410,16 @@ classes) Hospital D -53.9% -26.0% +56.1% +27.0% <mic>
and<disk>
:mic_values <- random_mic(size = 100) mic_values # Class 'mic' -# [1] 1 0.5 16 0.5 0.01 0.25 128 0.025 0.005 0.005 -# [11] 64 0.01 0.002 0.0625 1 4 0.002 0.025 0.125 0.5 -# [21] 32 0.25 0.125 4 0.002 8 32 0.002 1 1 -# [31] 0.01 128 1 1 0.25 0.5 0.125 4 4 64 -# [41] >=256 64 0.5 0.025 32 2 16 128 1 0.005 -# [51] 64 >=256 8 0.002 64 0.005 0.125 0.0625 8 128 -# [61] 4 128 2 >=256 64 0.005 0.01 8 0.002 0.5 -# [71] 0.0625 64 1 0.001 8 0.0625 8 0.002 8 >=256 -# [81] 1 0.01 >=256 0.01 0.0625 0.0625 0.0625 0.0625 8 0.25 -# [91] 4 1 0.0625 8 2 1 0.25 0.5 0.25 4
# base R:
plot(mic_values)
disk_values <- random_disk(size = 100, mo = "E. coli", ab = "cipro")
disk_values
# Class 'disk'
-# [1] 25 23 29 18 18 18 18 19 27 19 28 23 26 20 17 22 30 31 31 31 21 20 31 17 27
-# [26] 25 19 26 23 18 19 26 23 26 18 24 21 25 28 27 23 24 17 21 30 23 19 20 20 27
-# [51] 24 23 18 25 31 30 24 23 17 30 18 27 20 21 30 31 17 25 24 27 25 28 26 25 18
-# [76] 18 29 26 28 21 18 24 27 29 17 26 20 17 23 22 29 23 24 19 31 30 20 29 25 31
+# [1] 21 30 25 21 30 30 18 17 24 25 21 23 27 18 31 21 21 21 27 19 29 17 28 23 22
+# [26] 23 26 27 19 29 19 22 23 22 21 24 22 19 27 31 28 29 21 24 31 19 27 17 23 19
+# [51] 25 25 18 20 29 25 26 26 24 26 18 19 19 25 26 24 31 18 17 25 25 26 31 20 31
+# [76] 18 17 28 21 24 31 31 31 28 24 22 17 24 29 19 22 25 20 18 17 25 22 17 22 28
# base R:
plot(disk_values, mo = "E. coli", ab = "cipro")
head(my_TB_data)
# rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin
-# 1 I S S R I R
-# 2 R S S R R R
-# 3 R S I S S S
-# 4 I S I I R R
-# 5 I S S I S S
-# 6 S I R I R S
+# 1 S R S R R R
+# 2 R S I S I S
+# 3 R R S S I I
+# 4 I R R S S S
+# 5 S R I I I R
+# 6 R R I S R I
# kanamycin
-# 1 S
-# 2 R
-# 3 R
+# 1 R
+# 2 S
+# 3 S
# 4 I
-# 5 R
+# 5 S
# 6 I
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.
@@ -145,19 +145,19 @@rsi_confidence_interval()
and mean_amr_distance()
, and add_custom_microorganisms()
to add custom microorganisms to this packageThe clinical breakpoints and intrinsic resistance of EUCAST 2022 and CLSI 2022 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
data set 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.
The new function add_custom_microorganisms()
allows users to add custom microorganisms to the AMR
package.
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