mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 17:02:03 +02:00
updated taxonomy
This commit is contained in:
9
R/zzz.R
9
R/zzz.R
@ -206,8 +206,13 @@ create_MO_lookup <- function() {
|
||||
MO_lookup[which(MO_lookup$kingdom == "Archaea"), "kingdom_index"] <- 4
|
||||
# all the rest
|
||||
MO_lookup[which(is.na(MO_lookup$kingdom_index)), "kingdom_index"] <- 5
|
||||
|
||||
MO_lookup$fullname_lower <- MO_FULLNAME_LOWER
|
||||
|
||||
if (length(MO_FULLNAME_LOWER) != nrow(MO_lookup)) {
|
||||
packageStartupMessage("fullname_lower not same size - applied tolower(), update sysdata.rda!")
|
||||
MO_lookup$fullname_lower <- tolower(MO_lookup$fullname)
|
||||
} else {
|
||||
MO_lookup$fullname_lower <- MO_FULLNAME_LOWER
|
||||
}
|
||||
MO_lookup$full_first <- substr(MO_lookup$fullname_lower, 1, 1)
|
||||
MO_lookup$species_first <- substr(MO_lookup$species, 1, 1)
|
||||
|
||||
|
Reference in New Issue
Block a user