1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-12 19:41:58 +02:00

new species groups, updated clinical breakpoints

This commit is contained in:
2023-07-08 17:30:05 +02:00
parent 2d97cca6d9
commit acb534102b
172 changed files with 44445 additions and 52835 deletions

18
data-raw/species groups.R Normal file
View File

@ -0,0 +1,18 @@
g <- certetoolbox::import_clipboard()
g <- g %>% as_tibble()
g
for (i in seq_len(nrow(g))) {
if (is.na(g$taxonomy_from[i])) next
mo <- as.mo(g$taxonomy_from[i])
g$phylum[i] <- mo_phylum(mo)
g$class[i] <- mo_class(mo)
g$order[i] <- mo_order(mo)
g$family[i] <- mo_family(mo)
g$genus[i] <- mo_genus(mo)
g$species[i] <- paste(mo_species(mo), "complex")
g$lpsn_parent[i] <- mo_property(mo, property = "lpsn_parent")
g$gbif_parent[i] <- mo_property(mo, property = "gbif_parent")
g$oxygen_tolerance[i] <- mo_property(mo, property = "oxygen_tolerance")
g$prevalence[i] <- mo_property(mo, property = "prevalence")
}
certetoolbox::export_clipboard(g)