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:
18
data-raw/species groups.R
Normal file
18
data-raw/species groups.R
Normal 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)
|
Reference in New Issue
Block a user