mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 04:20:53 +01:00
(v3.0.1.9149) Fix WHONET codes in microorganisms.codes that referred to unrelated microorganisms, let codes refer to the name they were named after and add a source column, and replace the fuzzy matching of WHONET names by exact matching with a guard against unreviewed remaps
WHONET names are now matched exactly (also outdated names, after removing qualifiers), then on GBIF identifier, and fuzzy results are only kept if consistent with that; otherwise the genus or UNKNOWN is used. A code refers to the record of the name it was named after (e.g. EAE is Enterobacter aerogenes) if that name refers to the same taxon. Every remap of an existing code to another taxon must be listed in data-raw/whonet_remaps_reviewed.csv; the 198 remaps of this rebuild were reviewed.
This commit is contained in:
1 parent
179eec584f
commit
eb9a9c2fa5
29 files changed
+6711
-6095
No files matched your search
@@ -5,7 +5,7 @@
|
||||
\alias{clinical_breakpoints}
|
||||
\title{Data Set with Clinical Breakpoints for SIR Interpretation}
|
||||
\format{
|
||||
A \link[tibble:tibble]{tibble} with 61 393 observations and 15 variables:
|
||||
A \link[tibble:tibble]{tibble} with 61 389 observations and 15 variables:
|
||||
\itemize{
|
||||
\item \code{guideline}\cr Name of the guideline
|
||||
\item \code{type}\cr Breakpoint type, either \code{"ECOFF"}, \code{"animal"}, or \code{"human"}
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
\docType{data}
|
||||
\name{microorganisms.codes}
|
||||
\alias{microorganisms.codes}
|
||||
\title{Data Set with 6 022 Common Microorganism Codes}
|
||||
\title{Data Set with 6 293 Common Microorganism Codes}
|
||||
\format{
|
||||
A \link[tibble:tibble]{tibble} with 6 022 observations and 2 variables:
|
||||
A \link[tibble:tibble]{tibble} with 6 293 observations and 3 variables:
|
||||
\itemize{
|
||||
\item \code{code}\cr Commonly used code of a microorganism. \emph{\strong{This is a unique identifier.}}
|
||||
\item \code{mo}\cr ID of the microorganism in the \link{microorganisms} data set
|
||||
\item \code{mo}\cr ID of the microorganism in the \link{microorganisms} data set. This is the record of the name that the code was named after, also if that name is outdated, so that the code and the microorganism ID remain relatable: e.g., the WHONET code \code{EAE} refers to \emph{Enterobacter aerogenes} (\code{B_ENTRBC_AERG}). \code{\link[=as.mo]{as.mo()}} returns the current name, here \emph{Klebsiella aerogenes}. Codes for organisms that are not in the \link{microorganisms} data set, such as viruses, refer to \code{UNKNOWN}.
|
||||
\item \code{source}\cr Source of the code, with the name it refers to, e.g. \code{"WHONET (Enterobacter aerogenes)"}, or \code{NA} if the source is unknown
|
||||
}
|
||||
}
|
||||
\usage{
|
||||
|
||||
Reference in new issue
Block a user