mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 02:03:04 +02:00
fix
This commit is contained in:
@ -107,8 +107,8 @@ read_EUCAST <- function(sheet, file, guideline_name) {
|
||||
|
||||
get_mo <- function(x) {
|
||||
for (i in seq_len(length(x))) {
|
||||
y <- trimws(unlist(strsplit(x[i], "(,|and)")))
|
||||
y <- trimws(gsub("[(].*[)]", "", y))
|
||||
y <- trimws2(unlist(strsplit(x[i], "(,|and)")))
|
||||
y <- trimws2(gsub("[(].*[)]", "", y))
|
||||
y <- suppressWarnings(suppressMessages(as.mo(y, allow_uncertain = FALSE)))
|
||||
if (!is.null(mo_uncertainties())) uncertainties <<- add_uncertainties(uncertainties, mo_uncertainties())
|
||||
y <- y[!is.na(y) & y != "UNKNOWN"]
|
||||
|
@ -678,7 +678,7 @@ taxonomy <- taxonomy %>%
|
||||
|
||||
# Add prevalence ----------------------------------------------------------
|
||||
|
||||
# update prevalence based on taxonomy (our own JSS paper: Berends et al., 2022)
|
||||
# update prevalence based on taxonomy (our own JSS paper: Berends MS et al. (2022), DOI 10.18637/jss.v104.i03)
|
||||
taxonomy <- taxonomy %>%
|
||||
mutate(prevalence = case_when(
|
||||
class == "Gammaproteobacteria" |
|
||||
|
Reference in New Issue
Block a user