mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 03:40:48 +01:00
(v3.0.1.9096) MO code registry: codes never change meaning, are never guessed, and are validated
- data-raw/microorganisms_files/: registry of all MO codes of every release since v2.0.0 (78,992 codes, built from the git tags), approved renames, and README with the rules; decision by Matthijs S. Berends: MO codes from before v2.0.0 are not supported - as.mo(): codes of earlier releases are translated deterministically via the internal MO_RETIRED_CODES (generated from the registry); unknown codes are no longer guessed (previously F_TRCHP, Trichophyton in v3.0.1, became Talaromyces chlamydosporus) - synonym_mo_to_accepted_mo(): a missing target of one source no longer overwrites a valid target of another source (e.g. Chaetomium abuense), and no 'renamed to itself' - taxonomy build: codes are reused and reserved from the registry instead of the development data (fixes 40 codes reused in the 2026 development data), also for phylum to family; synonym cycles are broken; dangling 'renamed to' identifiers are removed; the build stops on any broken integrity rule before saving - run_microorganisms_build.R: runs the build in chunks at its checkpoints in one R process, with progress logging and resuming from any checkpoint; prompt updated accordingly - tests: shared integrity rules (helper-microorganisms.R) used by build and testthat, registry tests over all codes, sentinel organisms, regression tests; current defects of the data on main are listed in microorganisms_known_defects.csv until the next rebuild Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca5fa333ca
commit
d683b9e7c6
16 files changed
+80516
-246
No files matched your search
@@ -0,0 +1,225 @@
|
||||
# ==================================================================== #
|
||||
# TITLE: #
|
||||
# AMR: An R Package for Working with Antimicrobial Resistance Data #
|
||||
# #
|
||||
# SOURCE CODE: #
|
||||
# https://github.com/msberends/AMR #
|
||||
# #
|
||||
# PLEASE CITE THIS SOFTWARE AS: #
|
||||
# Berends MS, Luz CF, Friedrich AW, et al. (2022). #
|
||||
# AMR: An R Package for Working with Antimicrobial Resistance Data. #
|
||||
# Journal of Statistical Software, 104(3), 1-31. #
|
||||
# https://doi.org/10.18637/jss.v104.i03 #
|
||||
# #
|
||||
# Developed at the University of Groningen and the University Medical #
|
||||
# Center Groningen in the Netherlands, in collaboration with many #
|
||||
# colleagues from around the world, see our website. #
|
||||
# #
|
||||
# This R package is free software; you can freely use and distribute #
|
||||
# it for both personal and commercial purposes under the terms of the #
|
||||
# GNU General Public License version 2.0 (GNU GPL-2), as published by #
|
||||
# the Free Software Foundation. #
|
||||
# We created this package for both routine data analysis and academic #
|
||||
# research and it was publicly released in the hope that it will be #
|
||||
# useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. #
|
||||
# #
|
||||
# Visit our website for the full manual and a complete tutorial about #
|
||||
# how to conduct AMR data analysis: https://amr-for-r.org #
|
||||
# ==================================================================== #
|
||||
|
||||
# Integrity rules of the `microorganisms` data set.
|
||||
# This file is used by the unit tests (test-data-microorganisms.R) AND by the taxonomy build
|
||||
# (data-raw/_reproduction_scripts/reproduction_of_microorganisms.R), which stops before saving if any rule
|
||||
# is broken. So the rules exist in one place only.
|
||||
|
||||
# the MO code prefix of each domain
|
||||
MO_DOMAIN_PREFIX <- c(
|
||||
"Animalia" = "AN",
|
||||
"Archaea" = "A",
|
||||
"Bacteria" = "B",
|
||||
"Chromista" = "C",
|
||||
"Fungi" = "F",
|
||||
"Plantae" = "PL",
|
||||
"Protozoa" = "P"
|
||||
)
|
||||
|
||||
# read the MO code registry and the approved renames (see data-raw/microorganisms_files/README.md),
|
||||
# returns NULL if the files are not available (such as in an installed package)
|
||||
read_mo_registry <- function(root = mo_repository_root()) {
|
||||
file <- file.path(root, "data-raw", "microorganisms_files", "mo_code_registry.csv")
|
||||
if (is.null(root) || !file.exists(file)) {
|
||||
return(NULL)
|
||||
}
|
||||
utils::read.csv(file, colClasses = "character", na.strings = character(0))
|
||||
}
|
||||
read_mo_renames <- function(root = mo_repository_root()) {
|
||||
file <- file.path(root, "data-raw", "microorganisms_files", "mo_code_renames.csv")
|
||||
if (is.null(root) || !file.exists(file)) {
|
||||
return(NULL)
|
||||
}
|
||||
renames <- utils::read.csv(file, colClasses = "character", na.strings = character(0))
|
||||
# only approved renames count
|
||||
renames[renames$approved_by != "" & renames$approved_date != "", , drop = FALSE]
|
||||
}
|
||||
mo_repository_root <- function() {
|
||||
# works from the root of the repository and from tests/testthat
|
||||
for (path in c(".", "../..", "..")) {
|
||||
if (file.exists(file.path(path, "data-raw", "microorganisms_files", "mo_code_registry.csv"))) {
|
||||
return(normalizePath(path))
|
||||
}
|
||||
}
|
||||
NULL
|
||||
}
|
||||
|
||||
# names without a rank suffix, e.g. "Kapabacteria {class}" and "Nitrospira (class)" are both the class
|
||||
mo_name_without_suffix <- function(x) {
|
||||
trimws(gsub(" [{(][a-z ]+[)}]$", "", x))
|
||||
}
|
||||
|
||||
# Returns a named list with one character vector per rule, each describing the records that break the rule.
|
||||
# All vectors must be empty.
|
||||
mo_integrity_issues <- function(df, registry = NULL, renames = NULL) {
|
||||
df <- as.data.frame(df, stringsAsFactors = FALSE)
|
||||
df$mo <- as.character(df$mo)
|
||||
describe <- function(rows) {
|
||||
if (!any(rows, na.rm = TRUE)) {
|
||||
return(character(0))
|
||||
}
|
||||
rows <- which(rows)
|
||||
paste0(df$mo[rows], " (", df$fullname[rows], ")")
|
||||
}
|
||||
issues <- list()
|
||||
|
||||
# identifiers
|
||||
issues$duplicated_mo <- describe(duplicated(df$mo) | duplicated(df$mo, fromLast = TRUE))
|
||||
issues$duplicated_fullname <- describe(duplicated(df$fullname) | duplicated(df$fullname, fromLast = TRUE))
|
||||
issues$empty_mo <- describe(df$mo %in% c("", NA))
|
||||
issues$invalid_mo_characters <- describe(df$mo %unlike_case% "^[][A-Z0-9_-]+$")
|
||||
issues$repeated_mo_elements <- describe(df$mo %like_case% "^([A-Z]+_[^_]+)_\\1_")
|
||||
|
||||
# the code prefix must match the domain
|
||||
prefix <- sub("_.*", "", df$mo)
|
||||
expected_prefix <- unname(MO_DOMAIN_PREFIX[df$domain])
|
||||
issues$prefix_not_matching_domain <- describe(
|
||||
df$mo != "UNKNOWN" & !is.na(expected_prefix) & prefix != expected_prefix
|
||||
)
|
||||
issues$unknown_domain <- describe(!df$domain %in% c(names(MO_DOMAIN_PREFIX), "(unknown domain)"))
|
||||
|
||||
# the code of a species must start with the code of its genus, of a subspecies with the code of its species
|
||||
is_taxon <- df$fullname %unlike% "unknown"
|
||||
genus_mo <- df$mo[df$rank == "genus"][match(
|
||||
paste(df$domain, df$genus),
|
||||
paste(df$domain[df$rank == "genus"], df$genus[df$rank == "genus"])
|
||||
)]
|
||||
species_mo <- df$mo[df$rank == "species"][match(
|
||||
paste(df$domain, df$genus, df$species),
|
||||
paste(df$domain[df$rank == "species"], df$genus[df$rank == "species"], df$species[df$rank == "species"])
|
||||
)]
|
||||
issues$species_without_genus <- describe(df$rank == "species" & is_taxon & is.na(genus_mo))
|
||||
issues$species_code_not_under_genus <- describe(
|
||||
df$rank == "species" & is_taxon & !is.na(genus_mo) & !startsWith(df$mo, paste0(genus_mo, "_"))
|
||||
)
|
||||
# (Salmonella serovars are coded as genus + serovar by design, e.g. B_SLMNL_ACHN for Salmonella Aachen)
|
||||
issues$subspecies_code_not_under_species <- describe(
|
||||
df$rank == "subspecies" & is_taxon & df$genus != "Salmonella" &
|
||||
!is.na(species_mo) & !startsWith(df$mo, paste0(species_mo, "_"))
|
||||
)
|
||||
issues$subspecies_code_not_under_genus <- describe(
|
||||
df$rank == "subspecies" & is_taxon & !is.na(genus_mo) & !startsWith(df$mo, paste0(genus_mo, "_"))
|
||||
)
|
||||
|
||||
# sources can only contain their own scope (issue #309)
|
||||
issues$lpsn_outside_prokaryotes <- describe(df$source == "LPSN" & !df$domain %in% c("Bacteria", "Archaea"))
|
||||
issues$mycobank_outside_fungi <- describe(df$source == "MycoBank" & df$domain != "Fungi")
|
||||
|
||||
# allowed values
|
||||
issues$invalid_status <- describe(!df$status %in% c("accepted", "synonym", "unknown"))
|
||||
issues$invalid_rank <- describe(!df$rank %in% c(
|
||||
"domain", "kingdom", "phylum", "class", "order", "family", "genus", "species", "subspecies",
|
||||
"species group", "(unknown rank)"
|
||||
))
|
||||
issues$invalid_source <- describe(!df$source %in% c("LPSN", "MycoBank", "GBIF", "manually added"))
|
||||
issues$invalid_prevalence <- describe(is.na(df$prevalence) | df$prevalence < 1 | df$prevalence > 2)
|
||||
|
||||
# synonyms with a current name must lead to an existing record, without cycles or endless chains; a chain
|
||||
# that ends at a synonym without a current name is incomplete data, see mo_synonyms_without_current_name()
|
||||
if (all(c("lpsn_renamed_to", "gbif_renamed_to") %in% colnames(df))) {
|
||||
chain <- mo_synonym_chain_end(df)
|
||||
issues$synonym_with_unknown_target <- describe(chain$has_target & is.na(chain$end))
|
||||
issues$synonym_chain_not_ending <- describe(
|
||||
chain$has_target & !is.na(chain$end) & chain$end_is_synonym & chain$end_has_target
|
||||
)
|
||||
}
|
||||
|
||||
# the MO code registry: a registered code must always denote the same taxon
|
||||
if (!is.null(registry)) {
|
||||
registered_name <- registry$fullname[match(df$mo, registry$mo)]
|
||||
if (!is.null(renames) && nrow(renames) > 0) {
|
||||
renamed <- match(df$mo, renames$mo)
|
||||
registered_name[!is.na(renamed)] <- renames$new_name[renamed[!is.na(renamed)]]
|
||||
}
|
||||
issues$registered_code_with_other_taxon <- describe(
|
||||
!is.na(registered_name) & mo_name_without_suffix(registered_name) != mo_name_without_suffix(df$fullname)
|
||||
)
|
||||
}
|
||||
|
||||
issues
|
||||
}
|
||||
|
||||
# the first available 'renamed to' identifier of each record
|
||||
mo_renamed_to <- function(df) {
|
||||
out <- df$lpsn_renamed_to
|
||||
if ("mycobank_renamed_to" %in% colnames(df)) {
|
||||
out <- ifelse(is.na(out), df$mycobank_renamed_to, out)
|
||||
}
|
||||
ifelse(is.na(out), df$gbif_renamed_to, out)
|
||||
}
|
||||
|
||||
# for every synonym with a target: where its chain of renames ends
|
||||
mo_synonym_chain_end <- function(df) {
|
||||
df <- as.data.frame(df, stringsAsFactors = FALSE)
|
||||
df$mo <- as.character(df$mo)
|
||||
has_target <- df$status == "synonym" & !is.na(mo_renamed_to(df))
|
||||
end <- rep(NA_character_, nrow(df))
|
||||
end[has_target] <- AMR:::synonym_mo_to_accepted_mo(df$mo[has_target], fill_in_accepted = FALSE, dataset = df)
|
||||
end_row <- match(end, df$mo)
|
||||
# a target only counts if it exists in the data set
|
||||
known_target <- (!is.na(df$lpsn_renamed_to) & df$lpsn_renamed_to %in% df$lpsn) |
|
||||
(!is.na(df$gbif_renamed_to) & df$gbif_renamed_to %in% df$gbif)
|
||||
if ("mycobank_renamed_to" %in% colnames(df)) {
|
||||
known_target <- known_target | (!is.na(df$mycobank_renamed_to) & df$mycobank_renamed_to %in% df$mycobank)
|
||||
}
|
||||
data.frame(
|
||||
has_target = has_target,
|
||||
end = end,
|
||||
end_is_synonym = df$status[end_row] %in% "synonym",
|
||||
end_has_target = known_target[end_row] %in% TRUE
|
||||
)
|
||||
}
|
||||
|
||||
# synonyms for which no current name is known (e.g. because the record of the current name was not included),
|
||||
# directly or at the end of their chain of renames (e.g. Candida glabratus -> Nakaseomyces glabrata, which has no
|
||||
# current name itself); these are no error, but should be as few as possible
|
||||
mo_synonyms_without_current_name <- function(df) {
|
||||
df <- as.data.frame(df, stringsAsFactors = FALSE)
|
||||
chain <- mo_synonym_chain_end(df)
|
||||
no_target <- df$status == "synonym" & !chain$has_target
|
||||
dead_end_chain <- chain$has_target & !is.na(chain$end) & chain$end_is_synonym & !chain$end_has_target
|
||||
out <- df[no_target | dead_end_chain, c("mo", "fullname", "source"), drop = FALSE]
|
||||
out$chain_ends_at <- df$fullname[match(chain$end[no_target | dead_end_chain], df$mo)]
|
||||
out
|
||||
}
|
||||
|
||||
# a readable summary of all broken rules, or NULL if there are none
|
||||
mo_integrity_report <- function(issues) {
|
||||
issues <- issues[lengths(issues) > 0]
|
||||
if (length(issues) == 0) {
|
||||
return(NULL)
|
||||
}
|
||||
paste0(
|
||||
names(issues), " (", lengths(issues), "): ",
|
||||
vapply(issues, function(x) paste(utils::head(x, 10), collapse = ", "), character(1)),
|
||||
ifelse(lengths(issues) > 10, ", ...", ""),
|
||||
collapse = "\n"
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,408 @@
|
||||
"rule","record"
|
||||
"duplicated_fullname","AN_ANSKS_THLI (Anisakis kukenthalii)"
|
||||
"duplicated_fullname","AN_ANSKS_NTHLI (Anisakis kukenthalii)"
|
||||
"duplicated_fullname","F_BPLRS_BCHL (Bipolaris buchloes)"
|
||||
"duplicated_fullname","F_BPLRS_CHLS (Bipolaris buchloes)"
|
||||
"duplicated_fullname","F_CLDSP_EPCH (Cladosporium epichloes)"
|
||||
"duplicated_fullname","F_CLDSP_EPCHL (Cladosporium epichloes)"
|
||||
"duplicated_fullname","F_FUSRM_ALOS (Fusarium aloes)"
|
||||
"duplicated_fullname","F_FUSRM_LO""ES (Fusarium aloes)"
|
||||
"duplicated_fullname","B_GLCPS_NGNA (Gloeocapsa kutzingiana)"
|
||||
"duplicated_fullname","B_GLCPS_ZNGNA (Gloeocapsa kutzingiana)"
|
||||
"duplicated_fullname","B_HTRLB_ZNGI (Heteroleibleinia kutzingii)"
|
||||
"duplicated_fullname","B_HTRLB_TZNGI (Heteroleibleinia kutzingii)"
|
||||
"duplicated_fullname","F_NECTR_EPCH (Nectria epichloe)"
|
||||
"duplicated_fullname","F_NECTR_CHL""E (Nectria epichloe)"
|
||||
"duplicated_fullname","P_PRTSP_DYBS (Protospongia dybsoeensis)"
|
||||
"duplicated_fullname","P_PRTSP_SNSS (Protospongia dybsoeensis)"
|
||||
"duplicated_fullname","F_SYNCP_ALMA (Syncephalastrum alma-ataense)"
|
||||
"duplicated_fullname","F_SYNCP_ANSE (Syncephalastrum alma-ataense)"
|
||||
"duplicated_fullname","F_USTLG_BCHL (Ustilago buchloeformis)"
|
||||
"duplicated_fullname","F_USTLG_BUCHLS (Ustilago buchloes)"
|
||||
"duplicated_fullname","F_USTLG_BCHLF (Ustilago buchloeformis)"
|
||||
"duplicated_fullname","F_USTLG_BCHL""ES (Ustilago buchloes)"
|
||||
"duplicated_fullname","F_USTLG_ISTS (Ustilago isoetis)"
|
||||
"duplicated_fullname","F_USTLG_STIS (Ustilago isoetis)"
|
||||
"invalid_mo_characters","F_FUSRM_LO""ES (Fusarium aloes)"
|
||||
"invalid_mo_characters","F_NECTR_CHL""E (Nectria epichloe)"
|
||||
"invalid_mo_characters","F_NECTR_CHL""E_EPCH (Nectria epichloe epichloe)"
|
||||
"invalid_mo_characters","F_NECTR_CHL""E_ROSE (Nectria epichloe rosea)"
|
||||
"invalid_mo_characters","F_USTLG_BCHL""ES (Ustilago buchloes)"
|
||||
"subspecies_code_not_under_species","F_NECTR_CHL""E_EPCH (Nectria epichloe epichloe)"
|
||||
"subspecies_code_not_under_species","F_NECTR_CHL""E_ROSE (Nectria epichloe rosea)"
|
||||
"mycobank_outside_fungi","P_[FAM]_CULCSPRD (Culicosporidae)"
|
||||
"mycobank_outside_fungi","P_[FAM]_GOLBERGD (Golbergiidae)"
|
||||
"mycobank_outside_fungi","P_[FAM]_JANACEKD (Janacekiidae)"
|
||||
"mycobank_outside_fungi","B_PIRLL_CRCN (Pirella circinans)"
|
||||
"mycobank_outside_fungi","B_TRCHP (Trichophyton)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SNCM (Trichophyton abissinicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTM (Trichophyton acuminatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ACTL (Trichophyton acutulum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_AFRC (Trichophyton africanum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_AJLL (Trichophyton ajelloi)"
|
||||
"mycobank_outside_fungi","B_TRCHP_AJLL_AJLL (Trichophyton ajelloi ajelloi)"
|
||||
"mycobank_outside_fungi","B_TRCHP_AJLL_NANM (Trichophyton ajelloi nanum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ALBC (Trichophyton albiciscans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ALBM (Trichophyton album)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ANGL (Trichophyton angolense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ANNL (Trichophyton annulosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_APTH (Trichophyton apathogenicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ARLT (Trichophyton areolatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ASTR (Trichophyton asteroides)"
|
||||
"mycobank_outside_fungi","B_TRCHP_AVRC (Trichophyton avaricum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_AVIM (Trichophyton avium)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LCNM (Trichophyton balcaneum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BTNR (Trichophyton batonrougei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BNHM (Trichophyton benhamiae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BNHM_BNHM (Trichophyton benhamiae benhamiae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BNHM_LUTM (Trichophyton benhamiae luteum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BCLR (Trichophyton bicolor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BLNC (Trichophyton blanchardii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BRMP (Trichophyton brumptii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_BLLS (Trichophyton bullosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CBLL (Trichophyton caballinum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CMRN (Trichophyton camerounense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CNDL (Trichophyton candelabrum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CNNM (Trichophyton caninum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRTM (Trichophyton carateum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CSTN (Trichophyton castaneum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CSTL (Trichophyton castellanii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRBR (Trichophyton cerebriforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRTN (Trichophyton ceroton)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CYLN (Trichophyton ceylonense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CHBN (Trichophyton chibaense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CHSN (Trichophyton chosenicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CNRC (Trichophyton cineraceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CNRM (Trichophyton cinereum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRCN (Trichophyton circonvolutum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CCCN (Trichophyton coccineum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TRCM (Trichophyton concentricum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CNCM (Trichophyton conicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRNT (Trichophyton coronatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRTR (Trichophyton crateriforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRTR_CRTR (Trichophyton crateriforme crateriforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRTR_OCHR (Trichophyton crateriforme ochropyrraceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRTRF_CRTR (Trichophyton crateriformis crateriformis)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CRRS (Trichophyton cruris)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CURR (Trichophyton currii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_DCTL (Trichophyton dactilistegicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_DNKL (Trichophyton dankaliense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_DCLV (Trichophyton decalvans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CLTM (Trichophyton denticulatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_DPLN (Trichophyton depilans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_DPRS (Trichophyton depressum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_DRNN (Trichophyton dernense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_DSCD (Trichophyton discoides)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EBRM (Trichophyton eboreum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RCTM (Trichophyton effractum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EHMN (Trichophyton ehimeense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EPLN (Trichophyton epilans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EQNM (Trichophyton equinum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EQNM_ATTR (Trichophyton equinum autotrophicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EQNM_EQNM (Trichophyton equinum equinum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ERNC (Trichophyton erinacei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ERTN (Trichophyton erioton)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ERTR (Trichophyton eriotrephon)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ERPM (Trichophyton europaeum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EVLC (Trichophyton evolceanui)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EXPN (Trichophyton expansum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_EXSC (Trichophyton exsiccatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LNTM (Trichophyton farinulentum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FVFR (Trichophyton faviforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FVFR_ALBM (Trichophyton faviforme album)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FVFR_DSCD (Trichophyton faviforme discoides)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FVFR_FVFR (Trichophyton faviforme faviforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FVFR_OCHR (Trichophyton faviforme ochraceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FLNM (Trichophyton felineum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FRRG (Trichophyton ferrugineum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FRRG_ALBM (Trichophyton ferrugineum album)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FRRG_FRRG (Trichophyton ferrugineum ferrugineum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FRRG_URGY (Trichophyton ferrugineum uruguayense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FSCH (Trichophyton fischeri)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FLVS (Trichophyton flavescens)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FLVV (Trichophyton flavovirens)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FLVM (Trichophyton flavum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FLRL (Trichophyton floreale)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FLRF (Trichophyton floriforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_NNSE (Trichophyton fluviomuniense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FRMSN (Trichophyton formosanum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FLGN (Trichophyton fuligineum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FMTM (Trichophyton fumatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_FSCS (Trichophyton fuscosulcatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GLLN (Trichophyton gallinae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GLLP (Trichophyton gallopavum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GMLL (Trichophyton gamelleirae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GERG (Trichophyton georgiae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LBRM (Trichophyton glabrum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LBRM_FSCN (Trichophyton glabrum fuscinum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LBRM_GLBR (Trichophyton glabrum glabrum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GLOR (Trichophyton gloriae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GRVL (Trichophyton gourvilii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GRVL_GRVL (Trichophyton gourvilii gourvilii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_NLSM (Trichophyton granulosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GRSM (Trichophyton griseum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GZZN (Trichophyton guzzonii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS (Trichophyton gypseum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_ASTR (Trichophyton gypseum asteroides)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_CHBN (Trichophyton gypseum chibaense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_GMML (Trichophyton gypseum gemmulolaniferum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_GRNL (Trichophyton gypseum granulosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_GYPS (Trichophyton gypseum gypseum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_HLCM (Trichophyton gypseum hiulcum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_KFMW (Trichophyton gypseum kaufmann-wolfii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_LCTC (Trichophyton gypseum lacticolor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_QNCK (Trichophyton gypseum quinckeanum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_RDNS (Trichophyton gypseum radians)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_RDLT (Trichophyton gypseum radiolatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_RDPL (Trichophyton gypseum radioplicatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GYPS_SBFS (Trichophyton gypseum subfuscum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_IMMR (Trichophyton immergens)"
|
||||
"mycobank_outside_fungi","B_TRCHP_NDCM (Trichophyton indicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_INDT (Trichophyton indotineae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_INGN (Trichophyton inguinale)"
|
||||
"mycobank_outside_fungi","B_TRCHP_INTR (Trichophyton interdigitale)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RGNS (Trichophyton intertriginis)"
|
||||
"mycobank_outside_fungi","B_TRCHP_JPNC (Trichophyton japonicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_KGWN (Trichophyton kagawaense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_KANE (Trichophyton kanei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_KFMW (Trichophyton kaufmann-wolfii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_KRJD (Trichophyton krajdenii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_KRYN (Trichophyton kuryangei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LCTC (Trichophyton lacticolor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LNGR (Trichophyton langeronii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LPFR (Trichophyton lipoferum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LNGF (Trichophyton longifusum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LSNC (Trichophyton louisianicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_LXRN (Trichophyton luxurians)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNSN (Trichophyton mansonii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MRGN (Trichophyton marginatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MART (Trichophyton mariatii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MGLS_ENDT (Trichophyton megalosporum endothrix)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MGLS_MGLS (Trichophyton megalosporum megalosporum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MGNN (Trichophyton megninii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG (Trichophyton mentagrophytes)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_ASTR (Trichophyton mentagrophytes asteroides)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_BTNR (Trichophyton mentagrophytes batonrougei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_CCRB (Trichophyton mentagrophytes cucurbeticum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_ERNC (Trichophyton mentagrophytes erinacei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_GOTZ (Trichophyton mentagrophytes goetzii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_GRNL (Trichophyton mentagrophytes granulosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_GYPS (Trichophyton mentagrophytes gypseum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_INDT (Trichophyton mentagrophytes indotineae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_INTR (Trichophyton mentagrophytes interdigitale)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_LCTC (Trichophyton mentagrophytes lacticolor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_MNTG (Trichophyton mentagrophytes mentagrophytes)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_NDLR (Trichophyton mentagrophytes nodulare)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_PRSC (Trichophyton mentagrophytes persicolor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNTG_QNCK (Trichophyton mentagrophytes quinckeanum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MCRS (Trichophyton microsporum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MLCH (Trichophyton milochevitchii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MNMM (Trichophyton minimum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_MLTC (Trichophyton multicolor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_NDFR (Trichophyton nodiformans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_OCNC (Trichophyton oceanicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_OCHT (Trichophyton ochoterenai)"
|
||||
"mycobank_outside_fungi","B_TRCHP_HRCM (Trichophyton ochraceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RRCM (Trichophyton ochropyrraceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_OLEX (Trichophyton olexae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ONYC (Trichophyton onychocola)"
|
||||
"mycobank_outside_fungi","B_TRCHP_OTAE (Trichophyton otae)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PPLL (Trichophyton papillosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PEDS (Trichophyton pedis)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PRSC (Trichophyton persicolor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PRSCM (Trichophyton persicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PRVS (Trichophyton pervesii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PHSL (Trichophyton phaseoliforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PCTR (Trichophyton pictor)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PLSM (Trichophyton pilosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PLCT (Trichophyton plicatile)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PLRZ (Trichophyton plurizoniforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PLYG (Trichophyton polygorum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PRTN (Trichophyton pratense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PRLF (Trichophyton proliferans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PRNS (Trichophyton pruinosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PSDT (Trichophyton pseudotonsurans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PTRY_PTRY (Trichophyton pterygoides pterygoides)"
|
||||
"mycobank_outside_fungi","B_TRCHP_PTRY_VLCM (Trichophyton pterygoides violaceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RPRM (Trichophyton purpureum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_CKNM (Trichophyton quinckeanum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RDNS (Trichophyton radians)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RDCS (Trichophyton radicosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RDLT (Trichophyton radiolatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RDPL (Trichophyton radioplicatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBTS (Trichophyton raubitschekii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RDLL (Trichophyton redellii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RGLR (Trichophyton regulare)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RQTT (Trichophyton roquettei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ROSCM (Trichophyton rosaceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_ROSM (Trichophyton roseum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RTND (Trichophyton rotundum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBDM (Trichophyton rubidum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBRM (Trichophyton rubrum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBRM_FLVM (Trichophyton rubrum flavum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBRM_NGRC (Trichophyton rubrum nigricans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBRM_OCNC (Trichophyton rubrum oceanicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBRM_RDHN (Trichophyton rubrum rodhainii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_RBRM_RBRM (Trichophyton rubrum rubrum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SBRD (Trichophyton sabouraudii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SBRD_PLSM (Trichophyton sabouraudii pilosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SBRD_SBRD (Trichophyton sabouraudii sabouraudii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_STNS (Trichophyton saitense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SLTN (Trichophyton saltense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SRKS (Trichophyton sarkisovii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SCHN (Trichophyton schoenleinii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SCHN_GLCM (Trichophyton schoenleinii mongolicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SCHN_SCHN (Trichophyton schoenleinii schoenleinii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SERS (Trichophyton serisei)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SIMI (Trichophyton simii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SNGL (Trichophyton singulare)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SDNN (Trichophyton soudanense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SPDX (Trichophyton spadix)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SPRL (Trichophyton spiraliforme)"
|
||||
"mycobank_outside_fungi","B_TRCHP_SLFR (Trichophyton sulfureum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_THRN (Trichophyton teheraniense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSH (Trichophyton tenuishyphum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TRRS (Trichophyton terrestre)"
|
||||
"mycobank_outside_fungi","B_TRCHP_GNSE (Trichophyton thuringiense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR (Trichophyton tonsurans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR_ACMN (Trichophyton tonsurans acuminatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR_CLST (Trichophyton tonsurans closterosporum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR_EFFR (Trichophyton tonsurans effractum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR_EXSC (Trichophyton tonsurans exsiccatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR_PRFR (Trichophyton tonsurans perforans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR_SLFR (Trichophyton tonsurans sulfureum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_TNSR_TNSR (Trichophyton tonsurans tonsurans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_UMBL (Trichophyton umbilicatum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VNBR (Trichophyton vanbreuseghemii)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VRRC (Trichophyton verrucosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VRRC_ALBM (Trichophyton verrucosum album)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VRRC_ATTR (Trichophyton verrucosum autotrophicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VRRC_DSCD (Trichophyton verrucosum discoides)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VRRC_OCHR (Trichophyton verrucosum ochraceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VRRC_VRRC (Trichophyton verrucosum verrucosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VINN (Trichophyton viannai)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VLLS (Trichophyton villosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VNSM (Trichophyton vinosum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VLCM (Trichophyton violaceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VLCM_DCLV (Trichophyton violaceum decalvans)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VLCM_INDC (Trichophyton violaceum indicum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VLCM_KHRT (Trichophyton violaceum khartoumense)"
|
||||
"mycobank_outside_fungi","B_TRCHP_VLCM_VLCM (Trichophyton violaceum violaceum)"
|
||||
"mycobank_outside_fungi","B_TRCHP_YAND (Trichophyton yaoundei)"
|
||||
"mycobank_outside_fungi","B_TBRCL_GLND (Tubercularia glandicola)"
|
||||
"mycobank_outside_fungi","C_TBRCN_PNCT (Tuburcinia punctiformis)"
|
||||
"synonym_with_unknown_target","F_CHTMM_AMBR (Chaetomium amberpetense)"
|
||||
"synonym_with_unknown_target","F_CHTMM_FSSPR (Chaetomium fusisporale)"
|
||||
"synonym_with_unknown_target","F_CHTMM_PSDR (Chaetomium pseudoerraticum)"
|
||||
"synonym_with_unknown_target","F_CHTMM_RCTP (Chaetomium rectopilium)"
|
||||
"synonym_with_unknown_target","F_CHTMM_SRPN (Chaetomium serpentinum)"
|
||||
"synonym_with_unknown_target","F_CHTMM_TRTC (Chaetomium triticicola)"
|
||||
"synonym_with_unknown_target","F_CHTMM_VRRC (Chaetomium verrucichaeta)"
|
||||
"synonym_with_unknown_target","F_FUSRM_CEST (Fusarium cesatii)"
|
||||
"synonym_with_unknown_target","F_HNSNL (Hansenula)"
|
||||
"synonym_with_unknown_target","F_HNDRS_TGNA (Hendersonula fructigena)"
|
||||
"synonym_with_unknown_target","F_HNDRS_SYMP (Hendersonula symploci)"
|
||||
"synonym_with_unknown_target","F_HNDRS_TREV (Hendersonula trevoae)"
|
||||
"synonym_with_unknown_target","F_HPHLA (Hylophila)"
|
||||
"synonym_with_unknown_target","B_LPTBS_CCSC (Leptobasis caucasica)"
|
||||
"synonym_with_unknown_target","B_LPTBS_SHNX (Leptobasis shaanxiensis)"
|
||||
"synonym_with_unknown_target","F_[FAM]_LETROUTC (Letrouitiaceae)"
|
||||
"synonym_with_unknown_target","F_MTSCH_UNCS (Metschnikowia unicuspidata)"
|
||||
"synonym_with_unknown_target","B_MCRCH_CRSS (Microchaete crassa)"
|
||||
"synonym_with_unknown_target","B_MCRCH_STRT (Microchaete striatula)"
|
||||
"synonym_with_unknown_target","B_MCRCH_TNSS (Microchaete tenuissima)"
|
||||
"synonym_with_unknown_target","F_MRTHR (Morthiera)"
|
||||
"synonym_with_unknown_target","F_NAUMV (Naumovia)"
|
||||
"synonym_with_unknown_target","F_OMPHLR (Omphalaria)"
|
||||
"synonym_with_unknown_target","F_[FAM]_ORBILIAC (Orbiliaceae)"
|
||||
"synonym_with_unknown_target","P_PMPHG (Pamphagus)"
|
||||
"synonym_with_unknown_target","F_[FAM]_PELTULAC (Peltulaceae)"
|
||||
"synonym_with_unknown_target","F_PHOMA_FSCT (Phoma fuscata)"
|
||||
"synonym_with_unknown_target","F_PHMPS_CYDN (Phomopsis cydoniae)"
|
||||
"synonym_with_unknown_target","F_PLYSC (Polysaccum)"
|
||||
"synonym_with_unknown_target","P_RHMNS (Rhynchomonas)"
|
||||
"synonym_with_unknown_target","F_[FAM]_SAREACEA (Sareaceae)"
|
||||
"synonym_with_unknown_target","F_[FAM]_SCLRCCCC (Sclerococcaceae)"
|
||||
"synonym_with_unknown_target","F_SPRTR_BRNN (Sporotrichum brunneum)"
|
||||
"synonym_with_unknown_target","F_SPRTR_CLCG (Sporotrichum calcigenum)"
|
||||
"synonym_with_unknown_target","F_SPRTR_CNNB (Sporotrichum cinnabarinum)"
|
||||
"synonym_with_unknown_target","F_SPRTR_ELCH (Sporotrichum elaeochroum)"
|
||||
"synonym_with_unknown_target","F_SPRTR_HMSM (Sporotrichum hamosum)"
|
||||
"synonym_with_unknown_target","F_SPRTR_HLSR (Sporotrichum holosericeum)"
|
||||
"synonym_with_unknown_target","F_SPRTR_PRTN (Sporotrichum parietinum)"
|
||||
"synonym_with_unknown_target","F_USTLG_TULP (Ustilago tulipae)"
|
||||
"synonym_chain_not_ending","F_CPLLD_DNSPR (Capillidium denaeosporus)"
|
||||
"synonym_chain_not_ending","F_CPLLD_LBTS (Capillidium lobatus)"
|
||||
"synonym_chain_not_ending","F_CPLLD_RHYSS (Capillidium rhysosporus)"
|
||||
"synonym_chain_not_ending","F_CNDBL_DNSPR (Conidiobolus denaeosporum)"
|
||||
"synonym_chain_not_ending","F_CNDBL_LBTM (Conidiobolus lobatum)"
|
||||
"synonym_chain_not_ending","F_CNDBL_RHYSS (Conidiobolus rhysosporum)"
|
||||
"synonym_chain_not_ending","F_OCHRC_QTCM (Ochroconis aquaticum)"
|
||||
"synonym_chain_not_ending","F_OCHRC_LVCM (Ochroconis olivaceum)"
|
||||
"synonym_chain_not_ending","F_OCHRC_PHRM (Ochroconis phaeophorum)"
|
||||
"synonym_chain_not_ending","F_OCHRC_RMSM (Ochroconis ramosum)"
|
||||
"synonym_chain_not_ending","F_OCHRC_BSTM (Ochroconis robustum)"
|
||||
"synonym_chain_not_ending","F_OCHRC_RCSM (Ochroconis verrucosum)"
|
||||
"synonym_chain_not_ending","F_PGMDA_TRCM (Pseudosigmoidea excentricum)"
|
||||
"synonym_chain_not_ending","F_SCLCB_AQTC (Scolecobasidium aquatica)"
|
||||
"synonym_chain_not_ending","F_SCLCB_EXCNT (Scolecobasidium excentrica)"
|
||||
"synonym_chain_not_ending","F_SCLCB_OLVC (Scolecobasidium olivacea)"
|
||||
"synonym_chain_not_ending","F_SCLCB_PHPH (Scolecobasidium phaeophora)"
|
||||
"synonym_chain_not_ending","F_SCLCB_RAMS (Scolecobasidium ramosa)"
|
||||
"synonym_chain_not_ending","F_SCLCB_RBST (Scolecobasidium robusta)"
|
||||
"synonym_chain_not_ending","F_SCLCB_RCSA (Scolecobasidium verrucosa)"
|
||||
"registered_code_with_other_taxon","B_ALTBC (Alitibacter)"
|
||||
"registered_code_with_other_taxon","F_AMRPH (Amorphotheca)"
|
||||
"registered_code_with_other_taxon","F_AMPHC (Amphichorda)"
|
||||
"registered_code_with_other_taxon","F_ANTHR (Antherospora)"
|
||||
"registered_code_with_other_taxon","F_ARTHR (Arthroascus)"
|
||||
"registered_code_with_other_taxon","F_ASCPH_GRNL (Ascophanus granulatus)"
|
||||
"registered_code_with_other_taxon","F_ASTRM (Asteroma)"
|
||||
"registered_code_with_other_taxon","F_CHLMY (Chlamydoabsidia)"
|
||||
"registered_code_with_other_taxon","P_CHYTR (Chytridioides)"
|
||||
"registered_code_with_other_taxon","P_CHYTR_SCHZ (Chytridioides schizophylli)"
|
||||
"registered_code_with_other_taxon","F_CLVLN (Clavulina)"
|
||||
"registered_code_with_other_taxon","F_COLLM_CHLM (Collema cheilium)"
|
||||
"registered_code_with_other_taxon","F_CRTNR_CRCC (Cortinarius croceocoeruleus)"
|
||||
"registered_code_with_other_taxon","F_CRTNR_HRCN (Cortinarius hircinus)"
|
||||
"registered_code_with_other_taxon","F_CYLND (Cylindricascospora)"
|
||||
"registered_code_with_other_taxon","F_DMRSP (Dimerospora)"
|
||||
"registered_code_with_other_taxon","F_ERYSP_UMBL (Erysiphe umbilici)"
|
||||
"registered_code_with_other_taxon","B_FCLBCT_INTS (Faecalibacterium intestinale)"
|
||||
"registered_code_with_other_taxon","B_[FAM]_FRVDBCTR (Fervidibacteraceae)"
|
||||
"registered_code_with_other_taxon","B_[FAM]_FUSBCTRC (Fusibacteraceae)"
|
||||
"registered_code_with_other_taxon","B_HTRSC (Heteroscytonema)"
|
||||
"registered_code_with_other_taxon","B_HMSPH (Humisphingomonas)"
|
||||
"registered_code_with_other_taxon","F_HYDRP (Hydrophora)"
|
||||
"registered_code_with_other_taxon","F_IDRLL (Idriella)"
|
||||
"registered_code_with_other_taxon","F_LCNLL (Lecaniella)"
|
||||
"registered_code_with_other_taxon","F_LECID_GLMR (Lecidea glomerella)"
|
||||
"registered_code_with_other_taxon","F_LECID_SBLT (Lecidea subuletorum)"
|
||||
"registered_code_with_other_taxon","B_MYCBC_AVIM-C (Mycobacterium avium complex)"
|
||||
"registered_code_with_other_taxon","B_MYCBC_NNSE (Mycobacterium holstebronense)"
|
||||
"registered_code_with_other_taxon","F_NMSPR (Naemaspora)"
|
||||
"registered_code_with_other_taxon","F_NCNTH (Neoconiothyrium)"
|
||||
"registered_code_with_other_taxon","F_PRDPS (Parodiopsis)"
|
||||
"registered_code_with_other_taxon","B_PHYTP (Phytopseudomonas)"
|
||||
"registered_code_with_other_taxon","F_PLSPR_SCRP (Pleospora scirpicola)"
|
||||
"registered_code_with_other_taxon","F_PLYSC (Polysaccum)"
|
||||
"registered_code_with_other_taxon","F_PSDSP (Pseudoasperisporium)"
|
||||
"registered_code_with_other_taxon","B_PSDLC (Pseudolactococcus)"
|
||||
"registered_code_with_other_taxon","F_PSDPN (Pseudopenicillium)"
|
||||
"registered_code_with_other_taxon","F_PSRTC (Psorotichia)"
|
||||
"registered_code_with_other_taxon","F_RINDN_CNTR (Rinodina contribuens)"
|
||||
"registered_code_with_other_taxon","F_SPRSR_ANTH (Sporisorium anthephorae)"
|
||||
"registered_code_with_other_taxon","B_SMYCS_GLVS (Streptomyces gilvus)"
|
||||
"registered_code_with_other_taxon","F_ZYGRH (Zygorhynchus)"
|
||||
"sentinel","Tropheryma whipplei is missing"
|
||||
"sentinel","Ascaris lumbricoides is missing"
|
||||
"sentinel","Echinococcus granulosus is missing"
|
||||
"sentinel","Leishmania donovani is missing"
|
||||
"sentinel","Trichophyton rubrum domain is Bacteria instead of Fungi"
|
||||
"sentinel","Necator americanus domain is Fungi instead of Animalia"
|
||||
"sentinel","Capillaria domain is Fungi instead of Animalia"
|
||||
"sentinel","Trichophyton rubrum family is Oscillatoriaceae instead of Arthrodermataceae"
|
||||
"sentinel","Mucor family is instead of Mucoraceae"
|
||||
"sentinel","Trichophyton rubrum has a code with the wrong prefix"
|
||||
"sentinel","Necator americanus has a code with the wrong prefix"
|
||||
"sentinel","Capillaria has a code with the wrong prefix"
|
||||
|
@@ -0,0 +1,197 @@
|
||||
# ==================================================================== #
|
||||
# TITLE: #
|
||||
# AMR: An R Package for Working with Antimicrobial Resistance Data #
|
||||
# #
|
||||
# SOURCE CODE: #
|
||||
# https://github.com/msberends/AMR #
|
||||
# #
|
||||
# PLEASE CITE THIS SOFTWARE AS: #
|
||||
# Berends MS, Luz CF, Friedrich AW, et al. (2022). #
|
||||
# AMR: An R Package for Working with Antimicrobial Resistance Data. #
|
||||
# Journal of Statistical Software, 104(3), 1-31. #
|
||||
# https://doi.org/10.18637/jss.v104.i03 #
|
||||
# #
|
||||
# Developed at the University of Groningen and the University Medical #
|
||||
# Center Groningen in the Netherlands, in collaboration with many #
|
||||
# colleagues from around the world, see our website. #
|
||||
# #
|
||||
# This R package is free software; you can freely use and distribute #
|
||||
# it for both personal and commercial purposes under the terms of the #
|
||||
# GNU General Public License version 2.0 (GNU GPL-2), as published by #
|
||||
# the Free Software Foundation. #
|
||||
# We created this package for both routine data analysis and academic #
|
||||
# research and it was publicly released in the hope that it will be #
|
||||
# useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. #
|
||||
# #
|
||||
# Visit our website for the full manual and a complete tutorial about #
|
||||
# how to conduct AMR data analysis: https://amr-for-r.org #
|
||||
# ==================================================================== #
|
||||
|
||||
# Tests of the `microorganisms` data set and the stability of MO codes.
|
||||
# The rules themselves are in helper-microorganisms.R, which is also used by the taxonomy build.
|
||||
#
|
||||
# KNOWN DEFECTS: the data set on the main branch of October 2026 contains defects that will be solved by the
|
||||
# next taxonomy rebuild (e.g. Trichophyton as a bacterium, issue #309). These are listed in
|
||||
# microorganisms_known_defects.csv, so that these tests fail on every NEW defect, while the current ones are
|
||||
# visible. This list may only become shorter, and must be empty after the rebuild (then delete the file).
|
||||
|
||||
known_defects <- function() {
|
||||
file <- test_path("microorganisms_known_defects.csv")
|
||||
if (!file.exists(file)) {
|
||||
return(data.frame(rule = character(0), record = character(0)))
|
||||
}
|
||||
utils::read.csv(file, colClasses = "character", na.strings = character(0))
|
||||
}
|
||||
new_defects <- function(rule, records) {
|
||||
setdiff(records, known_defects()$record[known_defects()$rule == rule])
|
||||
}
|
||||
|
||||
# Sentinel organisms: clinically important taxa with properties that must not change unnoticed.
|
||||
# NA means: not checked.
|
||||
sentinels <- data.frame(
|
||||
fullname = c(
|
||||
"Escherichia coli", "Klebsiella pneumoniae", "Pseudomonas aeruginosa", "Acinetobacter baumannii",
|
||||
"Haemophilus influenzae", "Neisseria gonorrhoeae", "Staphylococcus aureus", "Streptococcus pneumoniae",
|
||||
"Enterococcus faecium", "Clostridioides difficile", "Mycobacterium tuberculosis", "Listeria monocytogenes",
|
||||
"Tropheryma whipplei", "Candida albicans", "Candidozyma auris", "Nakaseomyces glabratus",
|
||||
"Aspergillus fumigatus", "Cryptococcus neoformans", "Pneumocystis jirovecii", "Trichophyton rubrum",
|
||||
"Mucor", "Necator americanus", "Ascaris lumbricoides", "Echinococcus granulosus",
|
||||
"Capillaria", "Plasmodium falciparum", "Leishmania donovani", "Trypanosoma cruzi",
|
||||
"Giardia", "Toxoplasma gondii"
|
||||
),
|
||||
domain = c(
|
||||
rep("Bacteria", 13), rep("Fungi", 8), rep("Animalia", 4),
|
||||
"Protozoa", "Protozoa", "Protozoa", "Protozoa", NA
|
||||
),
|
||||
gramstain = c(
|
||||
rep("Gram-negative", 6), rep("Gram-positive", 7), rep(NA, 17)
|
||||
),
|
||||
family = c(
|
||||
"Enterobacteriaceae", "Enterobacteriaceae", "Pseudomonadaceae", "Moraxellaceae", "Pasteurellaceae",
|
||||
"Neisseriaceae", "Staphylococcaceae", "Streptococcaceae", "Enterococcaceae", "Peptostreptococcaceae",
|
||||
"Mycobacteriaceae", "Listeriaceae", NA, NA, NA, NA,
|
||||
"Aspergillaceae", NA, NA, "Arthrodermataceae", "Mucoraceae", NA, NA, NA,
|
||||
NA, NA, NA, NA, NA, NA
|
||||
),
|
||||
stringsAsFactors = FALSE
|
||||
)
|
||||
sentinel_defects <- function() {
|
||||
i <- match(sentinels$fullname, microorganisms$fullname)
|
||||
ok <- !is.na(i)
|
||||
# (paste() of an empty vector would return one element, hence the use of sprintf())
|
||||
out <- sprintf("%s is missing", sentinels$fullname[!ok])
|
||||
check <- function(property, actual) {
|
||||
expected <- sentinels[[property]]
|
||||
wrong <- which(ok & !is.na(expected) & actual != expected)
|
||||
sprintf("%s %s is %s instead of %s", sentinels$fullname[wrong], rep(property, length(wrong)), actual[wrong], expected[wrong])
|
||||
}
|
||||
out <- c(out, check("domain", microorganisms$domain[i]))
|
||||
out <- c(out, check("family", microorganisms$family[i]))
|
||||
gramstain <- rep(NA_character_, length(i))
|
||||
gramstain[ok] <- suppressWarnings(mo_gramstain(microorganisms$mo[i[ok]], language = NULL))
|
||||
out <- c(out, check("gramstain", gramstain))
|
||||
# the code prefix must always match the domain
|
||||
prefix_ok <- startsWith(as.character(microorganisms$mo[i]), paste0(MO_DOMAIN_PREFIX[sentinels$domain], "_"))
|
||||
c(out, sprintf("%s has a code with the wrong prefix", sentinels$fullname[which(ok & !is.na(sentinels$domain) & !prefix_ok)]))
|
||||
}
|
||||
|
||||
test_that("microorganisms: integrity rules", {
|
||||
skip_on_cran()
|
||||
issues <- mo_integrity_issues(microorganisms, registry = read_mo_registry(), renames = read_mo_renames())
|
||||
for (rule in names(issues)) {
|
||||
defects <- new_defects(rule, issues[[rule]])
|
||||
expect_true(length(defects) == 0,
|
||||
info = paste0("Rule '", rule, "' is broken by: ", paste(utils::head(defects, 25), collapse = ", "))
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
test_that("microorganisms: known defects are no longer than needed", {
|
||||
skip_on_cran()
|
||||
# a known defect that is solved must be removed from the list, so that it cannot come back unnoticed
|
||||
kd <- known_defects()
|
||||
skip_if(nrow(kd) == 0)
|
||||
issues <- mo_integrity_issues(microorganisms, registry = read_mo_registry(), renames = read_mo_renames())
|
||||
current <- c(
|
||||
unlist(lapply(names(issues), function(rule) paste(rule, issues[[rule]], sep = "|"))),
|
||||
paste("sentinel", sentinel_defects(), sep = "|")
|
||||
)
|
||||
solved <- setdiff(paste(kd$rule, kd$record, sep = "|"), current)
|
||||
expect_true(length(solved) == 0,
|
||||
info = paste0("Solved, remove from microorganisms_known_defects.csv: ", paste(utils::head(solved, 25), collapse = ", "))
|
||||
)
|
||||
})
|
||||
|
||||
test_that("microorganisms: sentinel organisms", {
|
||||
skip_on_cran()
|
||||
defects <- new_defects("sentinel", sentinel_defects())
|
||||
expect_true(length(defects) == 0, info = paste(defects, collapse = "; "))
|
||||
})
|
||||
|
||||
test_that("MO codes: every code of every release since v2.0.0 still means the same taxon", {
|
||||
skip_on_cran()
|
||||
registry <- read_mo_registry()
|
||||
skip_if(is.null(registry), "MO code registry not available (only in the source repository)")
|
||||
renames <- read_mo_renames()
|
||||
|
||||
# the registry itself
|
||||
expect_false(anyDuplicated(registry$mo) > 0)
|
||||
expect_true(all(numeric_version(sub("^v", "", registry$first_release)) >= "2.0.0"))
|
||||
expect_true(all(numeric_version(sub("^v", "", registry$first_release)) <= numeric_version(sub("^v", "", registry$last_release))))
|
||||
|
||||
# every registered code must lead to its own taxon (or to NA if the taxon is not in the data anymore)
|
||||
expected_name <- registry$fullname
|
||||
renamed <- match(registry$mo, renames$mo)
|
||||
expected_name[!is.na(renamed)] <- renames$new_name[renamed[!is.na(renamed)]]
|
||||
# deliberate in as.mo() since v2.0.0: the kingdom/domain Fungi returns the code for an unknown fungus
|
||||
expected_name[registry$mo == "F_[KNG]_FUNGI"] <- "(unknown fungus)"
|
||||
result <- suppressWarnings(as.mo(registry$mo, keep_synonyms = TRUE, info = FALSE))
|
||||
result_name <- microorganisms$fullname[match(result, microorganisms$mo)]
|
||||
wrong <- !is.na(result) & mo_name_without_suffix(result_name) != mo_name_without_suffix(expected_name)
|
||||
defects <- new_defects("registered_code_with_other_taxon", paste0(registry$mo[wrong], " (", result_name[wrong], ")"))
|
||||
expect_true(length(defects) == 0,
|
||||
info = paste0("Registered codes leading to another taxon: ", paste(utils::head(defects, 25), collapse = ", "))
|
||||
)
|
||||
|
||||
# the internal lookup table must be up to date with the registry
|
||||
retired <- registry$mo[!registry$mo %in% microorganisms$mo]
|
||||
expect_setequal(AMR:::MO_RETIRED_CODES$old_mo, retired)
|
||||
})
|
||||
|
||||
test_that("MO codes: codes of earlier releases are translated, never guessed", {
|
||||
skip_on_cran()
|
||||
retired <- AMR:::MO_RETIRED_CODES
|
||||
expect_false(any(retired$old_mo %in% microorganisms$mo))
|
||||
expect_true(all(retired$mo[!is.na(retired$mo)] %in% microorganisms$mo))
|
||||
# every translated code leads to a record with the registered name
|
||||
translated <- retired[!is.na(retired$mo), , drop = FALSE]
|
||||
expect_identical(
|
||||
as.character(suppressWarnings(as.mo(translated$old_mo, keep_synonyms = TRUE, info = FALSE))),
|
||||
translated$mo
|
||||
)
|
||||
expect_identical(
|
||||
mo_name_without_suffix(microorganisms$fullname[match(translated$mo, microorganisms$mo)]),
|
||||
mo_name_without_suffix(translated$fullname)
|
||||
)
|
||||
|
||||
# regression: in October 2026, the code of Trichophyton (F_TRCHP, v3.0.1) was guessed as Talaromyces
|
||||
expect_warning(x <- as.mo("F_TRCHP_RBRM", info = FALSE), "earlier AMR package version")
|
||||
expect_identical(mo_name(x, language = NULL), "Trichophyton rubrum")
|
||||
expect_identical(suppressWarnings(mo_genus("F_TRCHP", language = NULL)), "Trichophyton")
|
||||
|
||||
# codes from before v2.0.0 and unknown codes are never guessed (decision by Matthijs S. Berends, 3 October 2026)
|
||||
expect_warning(x <- as.mo("B_ESCH_COL", info = FALSE), "not supported")
|
||||
expect_true(is.na(x))
|
||||
expect_warning(x <- as.mo(c("B_ESCHR_COL", "B_ESCHR_COLI"), info = FALSE), "unknown MO code")
|
||||
expect_identical(as.character(x), c(NA, "B_ESCHR_COLI"))
|
||||
|
||||
# regression: until October 2026, a MycoBank target that was not in the data set replaced a valid GBIF target by NA
|
||||
expect_identical(mo_current("Chaetomium abuense"), "Amesia nigricolor")
|
||||
# and a synonym without any known current name is not 'renamed' to itself
|
||||
no_target <- mo_synonyms_without_current_name(microorganisms)
|
||||
expect_true(all(is.na(AMR:::synonym_mo_to_accepted_mo(no_target$mo[is.na(no_target$chain_ends_at)], fill_in_accepted = FALSE))))
|
||||
|
||||
# current codes are returned as they are, without warnings
|
||||
expect_silent(x <- as.mo(c("B_ESCHR_COLI", "B_STPHY_AURS", NA), info = FALSE))
|
||||
expect_identical(as.character(x), c("B_ESCHR_COLI", "B_STPHY_AURS", NA))
|
||||
})
|
||||
@@ -255,10 +255,10 @@ test_that("test-mo.R", {
|
||||
# # expect_warning(as.mo("TestingOwnID", reference_df = NULL))
|
||||
expect_error(as.mo("E. coli", reference_df = data.frame(mycol = "TestingOwnID")))
|
||||
|
||||
# combination of existing mo and other code
|
||||
# combination of an unknown MO code and other code: MO codes are never guessed (see test-data-microorganisms.R)
|
||||
expect_identical(
|
||||
suppressWarnings(as.character(as.mo(c("B_ESCHR_COL", "ESCCOL")))),
|
||||
c("B_ESCHR_COLI", "B_ESCHR_COLI")
|
||||
c(NA, "B_ESCHR_COLI")
|
||||
)
|
||||
|
||||
# from different sources
|
||||
|
||||
Reference in new issue
Block a user