AMR/man/mo_property.Rd

219 lines
9.4 KiB
Plaintext
Raw Normal View History

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mo_property.R
\name{mo_property}
\alias{mo_property}
2019-05-13 12:21:57 +02:00
\alias{mo_name}
\alias{mo_fullname}
2018-09-05 10:51:46 +02:00
\alias{mo_shortname}
2018-09-17 20:53:32 +02:00
\alias{mo_subspecies}
\alias{mo_species}
\alias{mo_genus}
\alias{mo_family}
\alias{mo_order}
\alias{mo_class}
\alias{mo_phylum}
2018-11-09 13:11:54 +01:00
\alias{mo_kingdom}
\alias{mo_type}
\alias{mo_gramstain}
2018-11-09 13:11:54 +01:00
\alias{mo_ref}
\alias{mo_authors}
\alias{mo_year}
2019-02-22 22:12:10 +01:00
\alias{mo_rank}
2018-09-17 20:53:32 +02:00
\alias{mo_taxonomy}
\alias{mo_synonyms}
2019-06-11 14:18:25 +02:00
\alias{mo_info}
2019-02-20 00:04:48 +01:00
\alias{mo_url}
\title{Property of a microorganism}
\usage{
2019-05-13 12:21:57 +02:00
mo_name(x, language = get_locale(), ...)
2018-11-05 13:20:32 +01:00
mo_fullname(x, language = get_locale(), ...)
2018-11-05 13:20:32 +01:00
mo_shortname(x, language = get_locale(), ...)
2018-09-17 20:53:32 +02:00
2018-11-05 13:20:32 +01:00
mo_subspecies(x, language = get_locale(), ...)
2018-11-05 13:20:32 +01:00
mo_species(x, language = get_locale(), ...)
2018-11-05 13:20:32 +01:00
mo_genus(x, language = get_locale(), ...)
2019-03-09 08:21:00 +01:00
mo_family(x, language = get_locale(), ...)
2019-03-09 08:21:00 +01:00
mo_order(x, language = get_locale(), ...)
2018-09-17 20:53:32 +02:00
2019-03-09 08:21:00 +01:00
mo_class(x, language = get_locale(), ...)
2018-09-17 20:53:32 +02:00
2019-03-09 08:21:00 +01:00
mo_phylum(x, language = get_locale(), ...)
2018-09-05 10:51:46 +02:00
2019-03-09 08:21:00 +01:00
mo_kingdom(x, language = get_locale(), ...)
2018-11-05 13:20:32 +01:00
mo_type(x, language = get_locale(), ...)
2018-11-09 13:11:54 +01:00
mo_gramstain(x, language = get_locale(), ...)
mo_ref(x, ...)
2018-10-01 11:39:43 +02:00
2018-11-09 13:11:54 +01:00
mo_authors(x, ...)
mo_year(x, ...)
2018-10-01 11:39:43 +02:00
2019-02-22 22:12:10 +01:00
mo_rank(x, ...)
2019-03-09 08:21:00 +01:00
mo_taxonomy(x, language = get_locale(), ...)
2018-11-09 13:11:54 +01:00
mo_synonyms(x, ...)
2019-06-11 14:18:25 +02:00
mo_info(x, language = get_locale(), ...)
2019-02-22 22:12:10 +01:00
mo_url(x, open = FALSE, ...)
2019-02-20 00:04:48 +01:00
2018-11-09 13:11:54 +01:00
mo_property(x, property = "fullname", language = get_locale(), ...)
}
\arguments{
\item{x}{any (vector of) text that can be coerced to a valid microorganism code with \code{\link{as.mo}}}
2018-11-09 13:11:54 +01:00
\item{language}{language of the returned text, defaults to system language (see \code{\link{get_locale}}) and can also be set with \code{\link{getOption}("AMR_locale")}. Use \code{language = NULL} or \code{language = ""} to prevent translation.}
2018-09-17 20:53:32 +02:00
\item{...}{other parameters passed on to \code{\link{as.mo}}}
2018-10-01 11:39:43 +02:00
2019-03-18 14:29:41 +01:00
\item{open}{browse the URL using \code{\link[utils]{browseURL}()}}
2019-02-22 22:12:10 +01:00
\item{property}{one of the column names of the \code{\link{microorganisms}} data set or \code{"shortname"}}
}
2018-09-05 12:21:27 +02:00
\value{
2018-11-09 13:11:54 +01:00
\itemize{
2019-02-18 02:33:37 +01:00
\item{An \code{integer} in case of \code{mo_year}}
2018-11-09 13:11:54 +01:00
\item{A \code{list} in case of \code{mo_taxonomy}}
2019-02-22 22:12:10 +01:00
\item{A named \code{character} in case of \code{mo_url}}
2018-11-09 13:11:54 +01:00
\item{A \code{character} in all other cases}
}
2018-09-05 12:21:27 +02:00
}
\description{
Use these functions to return a specific property of a microorganism. All input values will be evaluated internally with \code{\link{as.mo}}, which makes it possible for input of these functions to use microbial abbreviations, codes and names. See Examples.
}
2018-11-09 13:11:54 +01:00
\details{
2019-02-20 00:04:48 +01:00
All functions will return the most recently known taxonomic property according to the Catalogue of Life, except for \code{mo_ref}, \code{mo_authors} and \code{mo_year}. This leads to the following results:
2018-11-09 13:11:54 +01:00
\itemize{
\item{\code{mo_name("Chlamydia psittaci")} will return \code{"Chlamydophila psittaci"} (with a warning about the renaming)}
2018-11-09 13:11:54 +01:00
\item{\code{mo_ref("Chlamydia psittaci")} will return \code{"Page, 1968"} (with a warning about the renaming)}
\item{\code{mo_ref("Chlamydophila psittaci")} will return \code{"Everett et al., 1999"} (without a warning)}
}
2019-02-20 00:04:48 +01:00
2019-03-18 14:29:41 +01:00
The Gram stain - \code{mo_gramstain()} - will be determined on the taxonomic kingdom and phylum. According to Cavalier-Smith (2002) who defined subkingdoms Negibacteria and Posibacteria, only these phyla are Posibacteria: Actinobacteria, Chloroflexi, Firmicutes and Tenericutes. These bacteria are considered Gram positive - all other bacteria are considered Gram negative. Species outside the kingdom of Bacteria will return a value \code{NA}.
2019-02-20 00:04:48 +01:00
2019-05-10 16:44:59 +02:00
All output will be \link{translate}d where possible.
2018-11-05 13:20:32 +01:00
2019-05-10 16:44:59 +02:00
The function \code{mo_url()} will return the direct URL to the online database entry, which also shows the scientific reference of the concerned species.
2018-11-05 13:20:32 +01:00
}
2019-02-20 00:04:48 +01:00
\section{Catalogue of Life}{
2018-09-24 23:33:29 +02:00
2019-02-28 13:56:28 +01:00
\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr}
2019-08-13 16:15:08 +02:00
This package contains the complete taxonomic tree of almost all microorganisms (~70,000 species) from the authoritative and comprehensive Catalogue of Life (\url{http://www.catalogueoflife.org}). The Catalogue of Life is the most comprehensive and authoritative global index of species currently available.
2019-02-20 00:04:48 +01:00
2019-08-13 16:15:08 +02:00
\link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which version of the Catalogue of Life was included in this package with \code{\link{catalogue_of_life_version}()}.
2018-09-24 23:33:29 +02:00
}
\section{Source}{
[1] Becker K \emph{et al.} \strong{Coagulase-Negative Staphylococci}. 2014. Clin Microbiol Rev. 27(4): 870926. \url{https://dx.doi.org/10.1128/CMR.00109-13}
2019-05-10 16:44:59 +02:00
[2] Becker K \emph{et al.} \strong{Implications of identifying the recently defined members of the \emph{S. aureus} complex, \emph{S. argenteus} and \emph{S. schweitzeri}: A position paper of members of the ESCMID Study Group for staphylococci and Staphylococcal Diseases (ESGS).} 2019. Clin Microbiol Infect. \url{https://doi.org/10.1016/j.cmi.2019.02.028}
2018-09-24 23:33:29 +02:00
2019-03-26 14:24:03 +01:00
[3] Lancefield RC \strong{A serological differentiation of human and other groups of hemolytic streptococci}. 1933. J Exp Med. 57(4): 57195. \url{https://dx.doi.org/10.1084/jem.57.4.571}
2019-06-03 17:45:22 +02:00
[4] Catalogue of Life: Annual Checklist (public online taxonomic database), \url{http://www.catalogueoflife.org} (check included annual version with \code{\link{catalogue_of_life_version}()}).
2018-09-24 23:33:29 +02:00
}
2019-01-02 23:24:07 +01:00
\section{Read more on our website!}{
On our website \url{https://msberends.gitlab.io/AMR} you can find \href{https://msberends.gitlab.io/AMR/articles/AMR.html}{a tutorial} about how to conduct AMR analysis, the \href{https://msberends.gitlab.io/AMR/reference}{complete documentation of all functions} (which reads a lot easier than here in R) and \href{https://msberends.gitlab.io/AMR/articles/WHONET.html}{an example analysis using WHONET data}.
2019-01-02 23:24:07 +01:00
}
\examples{
# taxonomic tree -----------------------------------------------------------
2018-11-09 13:11:54 +01:00
mo_kingdom("E. coli") # "Bacteria"
2018-09-17 20:53:32 +02:00
mo_phylum("E. coli") # "Proteobacteria"
mo_class("E. coli") # "Gammaproteobacteria"
2019-10-30 23:02:50 +01:00
mo_order("E. coli") # "Enterobacterales" ()
mo_family("E. coli") # "Enterobacteriaceae"
mo_genus("E. coli") # "Escherichia"
mo_species("E. coli") # "coli"
2019-02-20 00:04:48 +01:00
mo_subspecies("E. coli") # ""
2018-11-09 13:11:54 +01:00
# colloquial properties ----------------------------------------------------
2019-05-13 12:21:57 +02:00
mo_name("E. coli") # "Escherichia coli"
mo_fullname("E. coli") # "Escherichia coli", same as mo_name()
2018-09-05 10:51:46 +02:00
mo_shortname("E. coli") # "E. coli"
2018-11-09 13:11:54 +01:00
# other properties ---------------------------------------------------------
2019-06-11 14:18:25 +02:00
mo_gramstain("E. coli") # "Gram-negative"
mo_type("E. coli") # "Bacteria" (equal to kingdom, but may be translated)
2019-02-22 22:12:10 +01:00
mo_rank("E. coli") # "species"
2019-05-10 16:44:59 +02:00
mo_url("E. coli") # get the direct url to the online database entry
mo_synonyms("E. coli") # get previously accepted taxonomic names
2018-11-09 13:11:54 +01:00
# scientific reference -----------------------------------------------------
2019-02-22 22:12:10 +01:00
mo_ref("E. coli") # "Castellani et al., 1919"
mo_authors("E. coli") # "Castellani et al."
2018-11-09 13:11:54 +01:00
mo_year("E. coli") # 1919
# 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("EHEC") # "Escherichia"
mo_species("EHEC") # "coli"
# known subspecies ---------------------------------------------------------
mo_name("doylei") # "Campylobacter jejuni doylei"
mo_genus("doylei") # "Campylobacter"
mo_species("doylei") # "jejuni"
mo_subspecies("doylei") # "doylei"
2018-09-24 23:33:29 +02:00
mo_fullname("K. pneu rh") # "Klebsiella pneumoniae rhinoscleromatis"
2018-09-05 10:51:46 +02:00
mo_shortname("K. pneu rh") # "K. pneumoniae"
\donttest{
# Becker classification, see ?as.mo ----------------------------------------
2018-09-05 12:21:27 +02:00
mo_fullname("S. epi") # "Staphylococcus epidermidis"
2019-03-18 14:29:41 +01:00
mo_fullname("S. epi", Becker = TRUE) # "Coagulase-negative Staphylococcus (CoNS)"
2018-09-05 12:21:27 +02:00
mo_shortname("S. epi") # "S. epidermidis"
mo_shortname("S. epi", Becker = TRUE) # "CoNS"
# Lancefield classification, see ?as.mo ------------------------------------
2018-09-05 12:21:27 +02:00
mo_fullname("S. pyo") # "Streptococcus pyogenes"
mo_fullname("S. pyo", Lancefield = TRUE) # "Streptococcus group A"
mo_shortname("S. pyo") # "S. pyogenes"
2019-06-27 11:57:45 +02:00
mo_shortname("S. pyo", Lancefield = TRUE) # "GAS" (='Group A Streptococci')
2019-02-22 22:12:10 +01:00
# language support for German, Dutch, Spanish, Portuguese, Italian and French
2018-09-24 23:33:29 +02:00
mo_gramstain("E. coli", language = "de") # "Gramnegativ"
mo_gramstain("E. coli", language = "nl") # "Gram-negatief"
mo_gramstain("E. coli", language = "es") # "Gram negativo"
2018-11-09 13:11:54 +01:00
# 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
2018-09-09 12:11:44 +02:00
mo_fullname("S. pyogenes",
Lancefield = TRUE,
language = "de") # "Streptococcus Gruppe A"
2018-09-09 12:11:44 +02:00
mo_fullname("S. pyogenes",
Lancefield = TRUE,
language = "nl") # "Streptococcus groep A"
2018-09-17 20:53:32 +02:00
2019-05-10 16:44:59 +02:00
# get a list with the complete taxonomy (from kingdom to subspecies)
2018-09-17 20:53:32 +02:00
mo_taxonomy("E. coli")
2019-06-11 14:18:25 +02:00
# get a list with the taxonomy, the authors and the URL to the online database
mo_info("E. coli")
}
}
\seealso{
\code{\link{microorganisms}}
}