mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 18:21:49 +02:00
new, automated website
This commit is contained in:
@ -139,14 +139,6 @@ The function \code{\link[=mo_url]{mo_url()}} will return the direct URL to the o
|
||||
|
||||
SNOMED codes - \code{\link[=mo_snomed]{mo_snomed()}} - are from the US Edition of SNOMED CT from 1 September 2020. See \emph{Source} and the \link{microorganisms} data set for more info.
|
||||
}
|
||||
\section{Stable Lifecycle}{
|
||||
|
||||
\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr}
|
||||
The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.
|
||||
|
||||
If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit a message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.
|
||||
}
|
||||
|
||||
\section{Matching Score for Microorganisms}{
|
||||
|
||||
With ambiguous user input in \code{\link[=as.mo]{as.mo()}} and all the \code{\link[=mo_property]{mo_*}} functions, the returned results are chosen based on their matching score using \code{\link[=mo_matching_score]{mo_matching_score()}}. This matching score \eqn{m}, is calculated as:
|
||||
@ -198,97 +190,91 @@ This package contains the complete taxonomic tree of almost all microorganisms (
|
||||
All reference data sets (about microorganisms, antibiotics, R/SI interpretation, EUCAST rules, etc.) in this \code{AMR} package are publicly and freely available. We continually export our data sets to formats for use in R, SPSS, SAS, Stata and Excel. We also supply flat files that are machine-readable and suitable for input in any software program, such as laboratory information systems. Please find \href{https://msberends.github.io/AMR/articles/datasets.html}{all download links on our website}, which is automatically updated with every code change.
|
||||
}
|
||||
|
||||
\section{Read more on Our Website!}{
|
||||
|
||||
On our website \url{https://msberends.github.io/AMR/} you can find \href{https://msberends.github.io/AMR/articles/AMR.html}{a comprehensive tutorial} about how to conduct AMR data analysis, the \href{https://msberends.github.io/AMR/reference/}{complete documentation of all functions} and \href{https://msberends.github.io/AMR/articles/WHONET.html}{an example analysis using WHONET data}.
|
||||
}
|
||||
|
||||
\examples{
|
||||
# taxonomic tree -----------------------------------------------------------
|
||||
mo_kingdom("E. coli") # "Bacteria"
|
||||
mo_phylum("E. coli") # "Proteobacteria"
|
||||
mo_class("E. coli") # "Gammaproteobacteria"
|
||||
mo_order("E. coli") # "Enterobacterales"
|
||||
mo_family("E. coli") # "Enterobacteriaceae"
|
||||
mo_genus("E. coli") # "Escherichia"
|
||||
mo_species("E. coli") # "coli"
|
||||
mo_subspecies("E. coli") # ""
|
||||
mo_kingdom("Klebsiella pneumoniae")
|
||||
mo_phylum("Klebsiella pneumoniae")
|
||||
mo_class("Klebsiella pneumoniae")
|
||||
mo_order("Klebsiella pneumoniae")
|
||||
mo_family("Klebsiella pneumoniae")
|
||||
mo_genus("Klebsiella pneumoniae")
|
||||
mo_species("Klebsiella pneumoniae")
|
||||
mo_subspecies("Klebsiella pneumoniae")
|
||||
|
||||
# colloquial properties ----------------------------------------------------
|
||||
mo_name("E. coli") # "Escherichia coli"
|
||||
mo_fullname("E. coli") # "Escherichia coli" - same as mo_name()
|
||||
mo_shortname("E. coli") # "E. coli"
|
||||
mo_name("Klebsiella pneumoniae")
|
||||
mo_fullname("Klebsiella pneumoniae")
|
||||
mo_shortname("Klebsiella pneumoniae")
|
||||
|
||||
# other properties ---------------------------------------------------------
|
||||
mo_gramstain("E. coli") # "Gram-negative"
|
||||
mo_snomed("E. coli") # 112283007, 116395006, ... (SNOMED codes)
|
||||
mo_type("E. coli") # "Bacteria" (equal to kingdom, but may be translated)
|
||||
mo_rank("E. coli") # "species"
|
||||
mo_url("E. coli") # get the direct url to the online database entry
|
||||
mo_synonyms("E. coli") # get previously accepted taxonomic names
|
||||
mo_gramstain("Klebsiella pneumoniae")
|
||||
mo_snomed("Klebsiella pneumoniae")
|
||||
mo_type("Klebsiella pneumoniae")
|
||||
mo_rank("Klebsiella pneumoniae")
|
||||
mo_url("Klebsiella pneumoniae")
|
||||
mo_synonyms("Klebsiella pneumoniae")
|
||||
|
||||
# scientific reference -----------------------------------------------------
|
||||
mo_ref("E. coli") # "Castellani et al., 1919"
|
||||
mo_authors("E. coli") # "Castellani et al."
|
||||
mo_year("E. coli") # 1919
|
||||
mo_lpsn("E. coli") # 776057 (LPSN record ID)
|
||||
mo_ref("Klebsiella pneumoniae")
|
||||
mo_authors("Klebsiella pneumoniae")
|
||||
mo_year("Klebsiella pneumoniae")
|
||||
mo_lpsn("Klebsiella pneumoniae")
|
||||
|
||||
# abbreviations known in the field -----------------------------------------
|
||||
mo_genus("MRSA") # "Staphylococcus"
|
||||
mo_species("MRSA") # "aureus"
|
||||
mo_shortname("VISA") # "S. aureus"
|
||||
mo_gramstain("VISA") # "Gram-positive"
|
||||
mo_genus("MRSA")
|
||||
mo_species("MRSA")
|
||||
mo_shortname("VISA")
|
||||
mo_gramstain("VISA")
|
||||
|
||||
mo_genus("EHEC") # "Escherichia"
|
||||
mo_species("EHEC") # "coli"
|
||||
mo_genus("EHEC")
|
||||
mo_species("EHEC")
|
||||
|
||||
# known subspecies ---------------------------------------------------------
|
||||
mo_name("doylei") # "Campylobacter jejuni doylei"
|
||||
mo_genus("doylei") # "Campylobacter"
|
||||
mo_species("doylei") # "jejuni"
|
||||
mo_subspecies("doylei") # "doylei"
|
||||
mo_name("doylei")
|
||||
mo_genus("doylei")
|
||||
mo_species("doylei")
|
||||
mo_subspecies("doylei")
|
||||
|
||||
mo_fullname("K. pneu rh") # "Klebsiella pneumoniae rhinoscleromatis"
|
||||
mo_shortname("K. pneu rh") # "K. pneumoniae"
|
||||
mo_fullname("K. pneu rh")
|
||||
mo_shortname("K. pneu rh")
|
||||
|
||||
\donttest{
|
||||
# Becker classification, see ?as.mo ----------------------------------------
|
||||
mo_fullname("S. epi") # "Staphylococcus epidermidis"
|
||||
mo_fullname("S. epi", Becker = TRUE) # "Coagulase-negative Staphylococcus (CoNS)"
|
||||
mo_shortname("S. epi") # "S. epidermidis"
|
||||
mo_shortname("S. epi", Becker = TRUE) # "CoNS"
|
||||
mo_fullname("S. epi")
|
||||
mo_fullname("S. epi", Becker = TRUE)
|
||||
mo_shortname("S. epi")
|
||||
mo_shortname("S. epi", Becker = TRUE)
|
||||
|
||||
# Lancefield classification, see ?as.mo ------------------------------------
|
||||
mo_fullname("S. pyo") # "Streptococcus pyogenes"
|
||||
mo_fullname("S. pyo", Lancefield = TRUE) # "Streptococcus group A"
|
||||
mo_shortname("S. pyo") # "S. pyogenes"
|
||||
mo_shortname("S. pyo", Lancefield = TRUE) # "GAS" (='Group A Streptococci')
|
||||
mo_fullname("S. pyo")
|
||||
mo_fullname("S. pyo", Lancefield = TRUE)
|
||||
mo_shortname("S. pyo")
|
||||
mo_shortname("S. pyo", Lancefield = TRUE)
|
||||
|
||||
|
||||
# language support --------------------------------------------------------
|
||||
mo_gramstain("E. coli", language = "de") # "Gramnegativ"
|
||||
mo_gramstain("E. coli", language = "nl") # "Gram-negatief"
|
||||
mo_gramstain("E. coli", language = "es") # "Gram negativo"
|
||||
mo_gramstain("Klebsiella pneumoniae", language = "de")
|
||||
mo_gramstain("Klebsiella pneumoniae", language = "nl")
|
||||
mo_gramstain("Klebsiella pneumoniae", language = "es")
|
||||
|
||||
# mo_type is equal to mo_kingdom, but mo_kingdom will remain official
|
||||
mo_kingdom("E. coli") # "Bacteria" on a German system
|
||||
mo_type("E. coli") # "Bakterien" on a German system
|
||||
mo_type("E. coli") # "Bacteria" on an English system
|
||||
mo_kingdom("Klebsiella pneumoniae")
|
||||
mo_type("Klebsiella pneumoniae")
|
||||
mo_type("Klebsiella pneumoniae")
|
||||
|
||||
mo_fullname("S. pyogenes",
|
||||
Lancefield = TRUE,
|
||||
language = "de") # "Streptococcus Gruppe A"
|
||||
language = "de")
|
||||
mo_fullname("S. pyogenes",
|
||||
Lancefield = TRUE,
|
||||
language = "nl") # "Streptococcus groep A"
|
||||
language = "nl")
|
||||
|
||||
|
||||
# other --------------------------------------------------------------------
|
||||
|
||||
mo_is_yeast(c("Candida", "E. coli")) # TRUE, FALSE
|
||||
mo_is_yeast(c("Candida", "Trichophyton", "Klebsiella"))
|
||||
|
||||
# gram stains and intrinsic resistance can also be used as a filter in dplyr verbs
|
||||
\donttest{
|
||||
# gram stains and intrinsic resistance can be used as a filter in dplyr verbs
|
||||
if (require("dplyr")) {
|
||||
example_isolates \%>\%
|
||||
filter(mo_is_gram_positive())
|
||||
@ -299,11 +285,11 @@ if (require("dplyr")) {
|
||||
|
||||
|
||||
# get a list with the complete taxonomy (from kingdom to subspecies)
|
||||
mo_taxonomy("E. coli")
|
||||
mo_taxonomy("Klebsiella pneumoniae")
|
||||
|
||||
# get a list with the taxonomy, the authors, Gram-stain,
|
||||
# SNOMED codes, and URL to the online database
|
||||
mo_info("E. coli")
|
||||
}
|
||||
# SNOMED codes, and URL to the online database
|
||||
mo_info("Klebsiella pneumoniae")
|
||||
}
|
||||
}
|
||||
\seealso{
|
||||
|
Reference in New Issue
Block a user