benchmarks.Rmd
Using the microbenchmark
package, we can review the calculation performance of this function. Its function microbenchmark()
runs different input expressions independently of each other and measures their time-to-result.
In the next test, we try to ‘coerce’ different input values for Staphylococcus aureus. The actual result is the same every time: it returns its MO code B_STPHY_AUR
(B stands for Bacteria, the taxonomic kingdom).
In the next test, we try to ‘coerce’ different input values for Staphylococcus aureus. The actual result is the same every time: it returns its MO code B_STPHY_AURS
(B stands for Bacteria, the taxonomic kingdom).
But the calculation time differs a lot:
S.aureus <- microbenchmark(
as.mo("sau"), # WHONET code
@@ -220,38 +220,38 @@
print(S.aureus, unit = "ms", signif = 2)
# Unit: milliseconds
# expr min lq mean median uq
-# as.mo("sau") 8.6 8.7 11.0 8.8 9.3
-# as.mo("stau") 30.0 30.0 41.0 31.0 32.0
-# as.mo("STAU") 30.0 30.0 42.0 31.0 32.0
-# as.mo("staaur") 8.5 8.9 12.0 9.1 9.6
-# as.mo("STAAUR") 8.5 9.0 9.1 9.2 9.3
-# as.mo("S. aureus") 23.0 23.0 30.0 23.0 40.0
-# as.mo("S aureus") 22.0 23.0 28.0 23.0 37.0
-# as.mo("Staphylococcus aureus") 28.0 29.0 30.0 30.0 31.0
-# as.mo("Staphylococcus aureus (MRSA)") 520.0 530.0 540.0 540.0 550.0
-# as.mo("Sthafilokkockus aaureuz") 270.0 280.0 300.0 290.0 300.0
-# as.mo("MRSA") 8.5 8.7 8.9 8.8 9.0
-# as.mo("VISA") 18.0 19.0 24.0 19.0 35.0
-# as.mo("VRSA") 18.0 18.0 31.0 19.0 34.0
-# as.mo(22242419) 17.0 18.0 22.0 18.0 19.0
+# as.mo("sau") 8.5 8.9 12.0 9.1 9.7
+# as.mo("stau") 31.0 32.0 48.0 34.0 55.0
+# as.mo("STAU") 31.0 31.0 35.0 32.0 33.0
+# as.mo("staaur") 8.6 8.8 12.0 9.0 9.3
+# as.mo("STAAUR") 8.6 8.9 9.0 9.0 9.1
+# as.mo("S. aureus") 23.0 23.0 26.0 24.0 24.0
+# as.mo("S aureus") 23.0 23.0 31.0 24.0 44.0
+# as.mo("Staphylococcus aureus") 27.0 28.0 29.0 29.0 29.0
+# as.mo("Staphylococcus aureus (MRSA)") 550.0 560.0 590.0 580.0 590.0
+# as.mo("Sthafilokkockus aaureuz") 270.0 290.0 340.0 300.0 330.0
+# as.mo("MRSA") 8.7 8.8 9.1 9.1 9.4
+# as.mo("VISA") 18.0 19.0 20.0 19.0 20.0
+# as.mo("VRSA") 19.0 19.0 23.0 19.0 22.0
+# as.mo(22242419) 18.0 18.0 37.0 30.0 42.0
# max neval
-# 28.0 10
+# 31.0 10
# 120.0 10
-# 120.0 10
+# 59.0 10
# 34.0 10
-# 9.4 10
-# 41.0 10
-# 43.0 10
-# 31.0 10
-# 570.0 10
-# 400.0 10
-# 9.3 10
-# 36.0 10
-# 110.0 10
-# 43.0 10
In the table above, all measurements are shown in milliseconds (thousands of seconds). A value of 5 milliseconds means it can determine 200 input values per second. It case of 100 milliseconds, this is only 10 input values per second. The second input is the only one that has to be looked up thoroughly. All the others are known codes (the first one is a WHONET code) or common laboratory codes, or common full organism names like the last one. Full organism names are always preferred.
-To achieve this speed, the as.mo
function also takes into account the prevalence of human pathogenic microorganisms. The downside is of course that less prevalent microorganisms will be determined less fast. See this example for the ID of Thermus islandicus (B_THERMS_ISL
), a bug probably never found before in humans:
To achieve this speed, the as.mo
function also takes into account the prevalence of human pathogenic microorganisms. The downside is of course that less prevalent microorganisms will be determined less fast. See this example for the ID of Thermus islandicus (B_THERMS_ISLN
), a bug probably never found before in humans:
T.islandicus <- microbenchmark(as.mo("theisl"),
as.mo("THEISL"),
as.mo("T. islandicus"),
@@ -320,53 +320,53 @@
print(T.islandicus, unit = "ms", signif = 2)
# Unit: milliseconds
# expr min lq mean median uq max neval
-# as.mo("theisl") 1300 1300 1300 1300 1400 1400 10
-# as.mo("THEISL") 1300 1300 1300 1300 1300 1400 10
-# as.mo("T. islandicus") 360 360 370 380 380 390 10
-# as.mo("T. islandicus") 360 370 400 380 450 480 10
-# as.mo("Thermus islandicus") 29 30 32 30 30 50 10
That takes 8.6 times as much time on average. A value of 100 milliseconds means it can only determine ~10 different input values per second. We can conclude that looking up arbitrary codes of less prevalent microorganisms is the worst way to go, in terms of calculation performance. Full names (like Thermus islandicus) are almost fast - these are the most probable input from most data sets.
+# as.mo("theisl") 1300 1400 1400 1400 1500 1600 10 +# as.mo("THEISL") 1400 1400 1400 1400 1500 1600 10 +# as.mo("T. islandicus") 370 400 410 410 420 450 10 +# as.mo("T. islandicus") 360 370 400 380 410 490 10 +# as.mo("Thermus islandicus") 28 30 35 32 35 59 10 +That takes 8.5 times as much time on average. A value of 100 milliseconds means it can only determine ~10 different input values per second. We can conclude that looking up arbitrary codes of less prevalent microorganisms is the worst way to go, in terms of calculation performance. Full names (like Thermus islandicus) are almost fast - these are the most probable input from most data sets.
In the figure below, we compare Escherichia coli (which is very common) with Prevotella brevis (which is moderately common) and with Thermus islandicus (which is uncommon):
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
+# Warning:
+# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
+
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
# Warning:
# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
# Warning:
-# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-
-# Warning:
-# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
+# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
In reality, the as.mo()
functions learns from its own output to speed up determinations for next times. In above figure, this effect was disabled to show the difference with the boxplot below - when you would use as.mo()
yourself:
# NOTE: results are saved to /Users/msberends/Library/R/3.6/library/AMR/mo_history/mo_history.csv.
+# NOTE: Prevotella ruminicola brevis (Shah et al., 1990) was renamed Prevotella brevis (Avgustin et al., 2016) [B_PRVTL_BRVS]
# Warning:
-# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
-# NOTE: Prevotella ruminicola brevis was renamed Prevotella brevis (Avgustin et al., 1997) (B_PRVTL_BRE)
+# Result of one value was guessed with uncertainty. Use mo_uncertainties() to review it.
The highest outliers are the first times. All next determinations were done in only thousands of seconds.
Uncommon microorganisms take a lot more time than common microorganisms. To relieve this pitfall and further improve performance, two important calculations take almost no time at all: repetitive results and already precalculated results.
@@ -400,23 +400,23 @@ print(run_it, unit = "ms", signif = 3) # Unit: milliseconds # expr min lq mean median uq max neval -# mo_name(x) 607 619 636 632 660 671 10 -So transforming 500,000 values (!!) of 50 unique values only takes 0.63 seconds (632 ms). You only lose time on your unique input values.
+# mo_name(x) 610 644 669 665 684 748 10 +So transforming 500,000 values (!!) of 50 unique values only takes 0.66 seconds (664 ms). You only lose time on your unique input values.
What about precalculated results? If the input is an already precalculated result of a helper function like mo_name()
, it almost doesn’t take any time at all (see ‘C’ below):
run_it <- microbenchmark(A = mo_name("B_STPHY_AUR"),
+run_it <- microbenchmark(A = mo_name("B_STPHY_AURS"),
B = mo_name("S. aureus"),
C = mo_name("Staphylococcus aureus"),
times = 10)
print(run_it, unit = "ms", signif = 3)
# Unit: milliseconds
# expr min lq mean median uq max neval
-# A 6.410 6.500 6.720 6.570 6.840 7.660 10
-# B 21.700 22.100 25.900 22.600 24.200 48.600 10
-# C 0.763 0.774 0.812 0.812 0.849 0.855 10
+# A 6.150 6.260 6.400 6.390 6.520 6.710 10
+# B 22.200 22.500 26.400 22.700 24.800 53.100 10
+# C 0.645 0.774 0.801 0.803 0.812 0.911 10
So going from mo_name("Staphylococcus aureus")
to "Staphylococcus aureus"
takes 0.0008 seconds - it doesn’t even start calculating if the result would be the same as the expected resulting value. That goes for all helper functions:
run_it <- microbenchmark(A = mo_species("aureus"),
B = mo_genus("Staphylococcus"),
@@ -430,14 +430,14 @@
print(run_it, unit = "ms", signif = 3)
# Unit: milliseconds
# expr min lq mean median uq max neval
-# A 0.449 0.471 0.492 0.474 0.483 0.671 10
-# B 0.611 0.621 0.638 0.626 0.629 0.717 10
-# C 0.649 0.706 0.743 0.743 0.807 0.818 10
-# D 0.458 0.463 0.474 0.468 0.481 0.520 10
-# E 0.432 0.452 0.459 0.463 0.472 0.476 10
-# F 0.427 0.454 0.461 0.461 0.471 0.487 10
-# G 0.448 0.453 0.465 0.463 0.470 0.506 10
-# H 0.431 0.444 0.459 0.458 0.468 0.506 10
Of course, when running mo_phylum("Firmicutes")
the function has zero knowledge about the actual microorganism, namely S. aureus. But since the result would be "Firmicutes"
too, there is no point in calculating the result. And because this package ‘knows’ all phyla of all known bacteria (according to the Catalogue of Life), it can just return the initial value immediately.
Currently supported are German, Dutch, Spanish, Italian, French and Portuguese.
diff --git a/docs/articles/benchmarks_files/figure-html/unnamed-chunk-4-1.png b/docs/articles/benchmarks_files/figure-html/unnamed-chunk-4-1.png index 6fc093ec..1df1557a 100644 Binary files a/docs/articles/benchmarks_files/figure-html/unnamed-chunk-4-1.png and b/docs/articles/benchmarks_files/figure-html/unnamed-chunk-4-1.png differ diff --git a/docs/articles/benchmarks_files/figure-html/unnamed-chunk-6-1.png b/docs/articles/benchmarks_files/figure-html/unnamed-chunk-6-1.png index dee8e9b8..ff8208ee 100644 Binary files a/docs/articles/benchmarks_files/figure-html/unnamed-chunk-6-1.png and b/docs/articles/benchmarks_files/figure-html/unnamed-chunk-6-1.png differ diff --git a/docs/articles/benchmarks_files/figure-html/unnamed-chunk-7-1.png b/docs/articles/benchmarks_files/figure-html/unnamed-chunk-7-1.png index 9e14b133..ad62008e 100644 Binary files a/docs/articles/benchmarks_files/figure-html/unnamed-chunk-7-1.png and b/docs/articles/benchmarks_files/figure-html/unnamed-chunk-7-1.png differ diff --git a/docs/articles/index.html b/docs/articles/index.html index d169534c..daaf7f8e 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -78,7 +78,7 @@ diff --git a/docs/authors.html b/docs/authors.html index 18990bcc..4f9f44c2 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -78,7 +78,7 @@ @@ -249,6 +249,10 @@Corinna Glasner. Author, thesis advisor.
+Judith M. Fonville. Contributor. +
+Erwin E. A. Hassing. Contributor.
diff --git a/docs/extra.js b/docs/extra.js index 1c4fecad..960e0285 100644 --- a/docs/extra.js +++ b/docs/extra.js @@ -81,13 +81,14 @@ $( document ).ready(function() { x = x.replace(/Author, maintainer/g, "Main developer"); x = x.replace(/Author, contributor/g, "Main contributor"); x = x.replace(/Author, thesis advisor/g, "Doctoral advisor"); - x = x.replace("Alex", "Prof. Dr Alex"); - x = x.replace("Bhanu", "Prof. Dr Bhanu"); - x = x.replace("Casper", "Prof. Dr Casper"); - x = x.replace("Corinna", "Dr Corinna"); + x = x.replace("Alex", "Prof. Dr. Alex"); + x = x.replace("Bhanu", "Prof. Dr. Bhanu"); + x = x.replace("Casper", "Prof. Dr. Casper"); + x = x.replace("Corinna", "Dr. Corinna"); // others - x = x.replace("Bart", "Dr Bart"); - x = x.replace("Dennis", "Dr Dennis"); + x = x.replace("Bart", "Dr. Bart"); + x = x.replace("Dennis", "Dr. Dennis"); + x = x.replace("Judith", "Dr. Judith"); } return(x); } diff --git a/docs/index.html b/docs/index.html index 09dbe453..3d6da21d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,7 +42,7 @@ @@ -307,7 +307,7 @@It cleanses existing data by providing new classes for microoganisms, antibiotics and antimicrobial results (both S/I/R and MIC). By installing this package, you teach R everything about microbiology that is needed for analysis. These functions all use intelligent rules to guess results that you would expect:
as.mo()
to get a microbial ID. The IDs are human readable for the trained eye - the ID of Klebsiella pneumoniae is “B_KLBSL_PNE” (B stands for Bacteria) and the ID of S. aureus is “B_STPHY_AUR”. The function takes almost any text as input that looks like the name or code of a microorganism like “E. coli”, “esco” or “esccol” and tries to find expected results using intelligent rules combined with the included Catalogue of Life data set. It only takes milliseconds to find results, please see our benchmarks. Moreover, it can group Staphylococci into coagulase negative and positive (CoNS and CoPS, see source) and can categorise Streptococci into Lancefield groups (like beta-haemolytic Streptococcus Group B, source).as.mo()
to get a microbial ID. The IDs are human readable for the trained eye - the ID of Klebsiella pneumoniae is “B_KLBSL_PNMN” (B stands for Bacteria) and the ID of S. aureus is “B_STPHY_AURS”. The function takes almost any text as input that looks like the name or code of a microorganism like “E. coli”, “esco” or “esccol” and tries to find expected results using intelligent rules combined with the included Catalogue of Life data set. It only takes milliseconds to find results, please see our benchmarks. Moreover, it can group Staphylococci into coagulase negative and positive (CoNS and CoPS, see source) and can categorise Streptococci into Lancefield groups (like beta-haemolytic Streptococcus Group B, source).as.ab()
to get an antibiotic ID. Like microbial IDs, these IDs are also human readable based on those used by EARS-Net. For example, the ID of amoxicillin is AMX
and the ID of gentamicin is GEN
. The as.ab()
function also uses intelligent rules to find results like accepting misspelling, trade names and abbrevations used in many laboratory systems. For instance, the values “Furabid”, “Furadantin”, “nitro” all return the ID of Nitrofurantoine. To accomplish this, the package contains a database with most LIS codes, official names, trade names, ATC codes, defined daily doses (DDD) and drug categories of antibiotics.as.rsi()
to get antibiotic interpretations based on raw MIC values (in mg/L) or disk diffusion values (in mm), or transform existing values to valid antimicrobial results. It produces just S, I or R based on your input and warns about invalid values. Even values like “<=0.002; S” (combined MIC/RSI) will result in “S”.as.mic()
to cleanse your MIC values. It produces a so-called factor (called ordinal in SPSS) with valid MIC values as levels. A value like “<=0.002; S” (combined MIC/RSI) will result in “<=0.002”.Last updated: 16-Sep-2019
+Last updated: 18-Sep-2019
also_single_tested
w
as.mo()
(of which some led to additions to the microorganisms
data set):
+as.mo()
(of which some led to additions to the microorganisms
data set). Many thanks to all contributors that helped improving the algorithms.
also_single_tested
w
as.mo()
on your old codes to transform them to the new format.septic_patients
to example_isolates
@@ -351,7 +352,7 @@ Since this is a major change, usage of the old also_single_tested
w
as.mo(..., allow_uncertain = 3)
Contents
a number between 0 (or "none") and 3 (or "all"), or TRUE (= 2) or FALSE (= 0) to indicate whether the input should be checked for less possible results, see Details
a number between 0 (or "none") and 3 (or "all"), or TRUE (= 2) or FALSE (= 0) to indicate whether the input should be checked for less probable results, see Details
General info
A microorganism ID from this package (class: mo
) typically looks like these examples:
- Code Full name - --------------- -------------------------------------- - B_KLBSL Klebsiella - B_KLBSL_PNE Klebsiella pneumoniae - B_KLBSL_PNE_RHI Klebsiella pneumoniae rhinoscleromatis - | | | | - | | | | - | | | ----> subspecies, a 3-4 letter acronym - | | ----> species, a 3-4 letter acronym - | ----> genus, a 5-7 letter acronym, mostly without vowels + Code Full name + --------------- -------------------------------------- + B_KLBSL Klebsiella + B_KLBSL_PNMN Klebsiella pneumoniae + B_KLBSL_PNMN_RHNS Klebsiella pneumoniae rhinoscleromatis + | | | | + | | | | + | | | ---> subspecies, a 4-5 letter acronym + | | ----> species, a 4-5 letter acronym + | ----> genus, a 5-7 letter acronym ----> taxonomic kingdom: A (Archaea), AN (Animalia), B (Bacteria), C (Chromista), F (Fungi), P (Protozoa)@@ -325,7 +325,7 @@ The algorithm can additionally use three different levels of uncertainty to gues
You can also use e.g. as.mo(..., allow_uncertain = 1)
to only allow up to level 1 uncertainty.
Examples:
"Streptococcus group B (known as S. agalactiae)"
. The text between brackets will be removed and a warning will be thrown that the result Streptococcus group B (B_STRPT_GRB
) needs review.
"Streptococcus group B (known as S. agalactiae)"
. The text between brackets will be removed and a warning will be thrown that the result Streptococcus group B (B_STRPT_GRPB
) needs review.
"S. aureus - please mind: MRSA"
. The last word will be stripped, after which the function will try to find a match. If it does not, the second last word will be stripped, etc. Again, a warning will be thrown that the result Staphylococcus aureus (B_STPHY_AUR
) needs review.
"Fluoroquinolone-resistant Neisseria gonorrhoeae"
. The first word will be stripped, after which the function will try to find a match. A warning will be thrown that the result Neisseria gonorrhoeae (B_NESSR_GON
) needs review.
mo_property
functions (like # NOT RUN { -# These examples all return "B_STPHY_AUR", the ID of S. aureus: +# These examples all return "B_STPHY_AURS", the ID of S. aureus: as.mo("sau") # WHONET code as.mo("stau") as.mo("STAU") @@ -394,11 +394,11 @@ Themo_property
functions (likeas.mo("GAS") # Group A Streptococci as.mo("GBS") # Group B Streptococci -as.mo("S. epidermidis") # will remain species: B_STPHY_EPI -as.mo("S. epidermidis", Becker = TRUE) # will not remain species: B_STPHY_CNS +as.mo("S. epidermidis") # will remain species: B_STPHY_EPDR +as.mo("S. epidermidis", Becker = TRUE) # will not remain species: B_STPHY_CONS -as.mo("S. pyogenes") # will remain species: B_STRPT_PYO -as.mo("S. pyogenes", Lancefield = TRUE) # will not remain species: B_STRPT_GRA +as.mo("S. pyogenes") # will remain species: B_STRPT_PYGN +as.mo("S. pyogenes", Lancefield = TRUE) # will not remain species: B_STRPT_GRPA # All mo_* functions use as.mo() internally too (see ?mo_property): mo_genus("E. coli") # returns "Escherichia" diff --git a/docs/reference/example_isolates.html b/docs/reference/example_isolates.html index d6d8238c..81405040 100644 --- a/docs/reference/example_isolates.html +++ b/docs/reference/example_isolates.html @@ -6,7 +6,7 @@ - Data set with 2,000 blood culture isolates from septic patients — example_isolates • AMR (for R) +Data set with 2,000 blood culture isolates — example_isolates • AMR (for R) @@ -45,9 +45,9 @@ - + - + @@ -80,7 +80,7 @@ @@ -223,14 +223,14 @@@@ -492,7 +492,7 @@-Data set with 2,000 blood culture isolates from septic patients
+Data set with 2,000 blood culture isolates
example_isolates.Rd
-@@ -248,7 +248,7 @@An anonymised data set containing 2,000 microbial blood culture isolates with their full antibiograms found in septic patients in 4 different hospitals in the Netherlands, between 2001 and 2017. This
+data.frame
can be used to practice AMR analysis. For examples, please read the tutorial on our website.An anonymised data set containing 2,000 microbial blood culture isolates with their full antibiograms found 4 different hospitals in the Netherlands, between 2001 and 2017. This
data.frame
can be used to practice AMR analysis. For examples, please read the tutorial on our website.gender
gender of the patient
patient_id
ID of the patient, first 10 characters of an SHA hash containing irretrievable information
mo
- -
ID of microorganism created with
as.mo
, see alsomicroorganisms
peni:rifa
- +
40 different antibiotics with class
rsi
(seeas.rsi
); these column names occur inantibiotics
data set and can be translated withab_name
PEN:RIF
40 different antibiotics with class
rsi
(seeas.rsi
); these column names occur inantibiotics
data set and can be translated withab_name
Read more on our website!
diff --git a/docs/reference/index.html b/docs/reference/index.html index 0b1f9618..4351f074 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -78,7 +78,7 @@- + Data set with 2,000 blood culture isolates from septic patients
Data set with 2,000 blood culture isolates
Translation table for microorganism codes
Translation table for common microorganism codes
microorganisms.codes.Rd
A data.frame
with 4,965 observations and 2 variables:
certe
Commonly used code of a microorganism
A data.frame
with 4,927 observations and 2 variables:
code
Commonly used code of a microorganism
mo
ID of the microorganism in the microorganisms
data set
A data.frame
with 69,855 observations and 16 variables:
A data.frame
with 69,460 observations and 16 variables:
mo
ID of microorganism as used by this package
col_id
Catalogue of Life ID
fullname
Full name, like "Escherichia coli"
2 entries of Staphylococcus (coagulase-negative [CoNS] and coagulase-positive [CoPS])
3 entries of Trichomonas (Trichomonas vaginalis, and its family and genus)
5 other 'undefined' entries (unknown, unknown Gram negatives, unknown Gram positives, unknown yeast and unknown fungus)
8,970 species from the DSMZ (Deutsche Sammlung von Mikroorganismen und Zellkulturen) that are not in the Catalogue of Life
22,654 species from the DSMZ (Deutsche Sammlung von Mikroorganismen und Zellkulturen) overwriting records from the Catalogue of Life, since the DSMZ contain the latest taxonomic information based on recent publications
A data.frame
with 22,932 observations and 4 variables:
A data.frame
with 24,246 observations and 4 variables:
col_id
Catalogue of Life ID that was originally given
col_id_new
New Catalogue of Life ID that responds to an entry in the microorganisms
data set
fullname
Old full taxonomic name of the microorganism