1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-27 12:46:12 +01:00
AMR/man/mo_property.Rd

198 lines
7.2 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}
\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-09-24 23:33:29 +02:00
\alias{mo_subkingdom}
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_TSN}
\alias{mo_ref}
\alias{mo_authors}
\alias{mo_year}
2018-09-17 20:53:32 +02:00
\alias{mo_taxonomy}
\title{Property of a microorganism}
\usage{
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(), ...)
2018-10-01 11:39:43 +02:00
mo_family(x, ...)
2018-10-01 11:39:43 +02:00
mo_order(x, ...)
2018-09-17 20:53:32 +02:00
2018-10-01 11:39:43 +02:00
mo_class(x, ...)
2018-09-17 20:53:32 +02:00
2018-10-01 11:39:43 +02:00
mo_phylum(x, ...)
2018-09-05 10:51:46 +02:00
2018-10-01 11:39:43 +02:00
mo_subkingdom(x, ...)
2018-09-24 23:33:29 +02:00
2018-11-09 13:11:54 +01:00
mo_kingdom(x, ...)
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(), ...)
2018-10-01 11:39:43 +02:00
mo_TSN(x, ...)
2018-09-17 20:53:32 +02:00
2018-11-09 13:11:54 +01:00
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
mo_taxonomy(x, ...)
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
2018-09-25 16:44:40 +02:00
\item{property}{one of the column names of one 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{
\item{An \code{integer} in case of \code{mo_TSN} and \code{mo_year}}
\item{A \code{list} in case of \code{mo_taxonomy}}
\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 from the \code{\link{microorganisms}} data set. All input values will be evaluated internally with \code{\link{as.mo}}.
}
2018-11-09 13:11:54 +01:00
\details{
All functions will return the most recently known taxonomic property according to ITIS, except for \code{mo_ref}, \code{mo_authors} and \code{mo_year}. This leads to the following results:
\itemize{
\item{\code{mo_fullname("Chlamydia psittaci")} will return \code{"Chlamydophila psittaci"} (with a warning about the renaming)}
\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)}
}
}
2018-11-05 13:20:32 +01:00
\section{Supported languages}{
Supported languages are \code{"en"} (English), \code{"de"} (German), \code{"nl"} (Dutch), \code{"es"} (Spanish), \code{"it"} (Italian), \code{"fr"} (French), and \code{"pt"} (Portuguese).
}
2018-09-24 23:33:29 +02:00
\section{ITIS}{
\if{html}{\figure{itis_logo.jpg}{options: height=60px style=margin-bottom:5px} \cr}
2018-12-10 21:47:25 +01:00
This package contains the \strong{complete microbial taxonomic data} (with all nine taxonomic ranks - from kingdom to subspecies) from the publicly available Integrated Taxonomic Information System (ITIS, \url{https://www.itis.gov}).
2018-10-01 11:39:43 +02:00
2018-11-09 13:11:54 +01:00
All (sub)species from \strong{the taxonomic kingdoms Bacteria, Fungi and Protozoa are included in this package}, as well as all previously accepted names known to ITIS. Furthermore, the responsible authors and year of publication are available. This allows users to use authoritative taxonomic information for their data analysis on any microorganism, not only human pathogens. It also helps to quickly determine the Gram stain of bacteria, since all bacteria are classified into subkingdom Negibacteria or Posibacteria.
2018-10-01 11:39:43 +02:00
ITIS is a partnership of U.S., Canadian, and Mexican agencies and taxonomic specialists [3].
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}
[2] 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}
[3] Integrated Taxonomic Information System (ITIS). Retrieved September 2018. \url{http://www.itis.gov}
}
\examples{
2018-10-01 11:39:43 +02:00
# All properties of Escherichia coli
2018-11-09 13:11:54 +01:00
## taxonomic properties
mo_kingdom("E. coli") # "Bacteria"
2018-09-24 23:33:29 +02:00
mo_subkingdom("E. coli") # "Negibacteria"
2018-09-17 20:53:32 +02:00
mo_phylum("E. coli") # "Proteobacteria"
mo_class("E. coli") # "Gammaproteobacteria"
mo_order("E. coli") # "Enterobacteriales"
mo_family("E. coli") # "Enterobacteriaceae"
mo_genus("E. coli") # "Escherichia"
mo_species("E. coli") # "coli"
mo_subspecies("E. coli") # NA
2018-11-09 13:11:54 +01:00
mo_TSN("E. coli") # 285 (Taxonomic Serial Number)
## colloquial properties
mo_fullname("E. coli") # "Escherichia coli"
2018-09-05 10:51:46 +02:00
mo_shortname("E. coli") # "E. coli"
2018-11-09 13:11:54 +01:00
## other properties
2018-09-24 23:33:29 +02:00
mo_gramstain("E. coli") # "Gram negative"
2018-11-09 13:11:54 +01:00
mo_type("E. coli") # "Bacteria" (equal to kingdom)
## scientific reference
2018-10-01 14:44:40 +02:00
mo_ref("E. coli") # "Castellani and Chalmers, 1919"
2018-11-09 13:11:54 +01:00
mo_authors("E. coli") # "Castellani and Chalmers"
mo_year("E. coli") # 1919
# Abbreviations known in the field
mo_genus("MRSA") # "Staphylococcus"
mo_species("MRSA") # "aureus"
2018-09-05 10:51:46 +02:00
mo_shortname("MRSA") # "S. aureus"
2018-09-24 23:33:29 +02:00
mo_gramstain("MRSA") # "Gram positive"
mo_genus("VISA") # "Staphylococcus"
mo_species("VISA") # "aureus"
# Known subspecies
mo_genus("doylei") # "Campylobacter"
mo_species("doylei") # "jejuni"
2018-09-24 23:33:29 +02:00
mo_fullname("doylei") # "Campylobacter jejuni 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"
# Becker classification, see ?as.mo
2018-09-05 12:21:27 +02:00
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"
# 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"
2018-11-09 13:11:54 +01:00
mo_shortname("S. pyo", Lancefield = TRUE) # "GAS" ('Group A streptococci')
2018-11-09 13:11:54 +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
2018-11-09 13:11:54 +01:00
# Get a list with the complete taxonomy (subkingdom to subspecies)
2018-09-17 20:53:32 +02:00
mo_taxonomy("E. coli")
}
\seealso{
\code{\link{microorganisms}}
}