Apply the EUCAST breakpoints of Vibrio to the species that EUCAST states only

The Vibrio sheet (v12.0 to v16.1) states: "Breakpoints are valid for V. alginolyticus, V. cholerae, V. fluvialis, V. parahaemolyticus and V. vulnificus." The rows of the genus are therefore replaced by rows of these species, with the statement in the note. Other species and isolates identified at genus level give NA, or use PK/PD breakpoints in EUCAST 2022-2023. CLSI is unchanged.

Any other wording of "breakpoints are valid for" now stops the script, so that a new statement cannot be missed.
This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-11-03 17:14:15 +01:00
1 parent 81f5aaa7b8
commit 361dfc28f7
14 files changed
+550 -113

No files matched your search

+19 -1
View File
@@ -655,7 +655,9 @@ test_that("clinical_breakpoints: every blocking row of EUCAST has an effect (#32
}
}
# the definition itself, on a constructed set of rows
rows <- cb[cb$guideline == latest & as.character(cb$ab) == "CTX" & cb$method == "MIC" & as.character(cb$mo) == "B_VIBRI", , drop = FALSE][1, ]
rows <- cb[cb$guideline == latest & as.character(cb$ab) == "CTX" & cb$method == "MIC" & as.character(cb$mo) == "B_VIBRI_CHLR" & cb$type == "human", , drop = FALSE][1, ]
rows$mo <- as.mo("Vibrio", info = FALSE)
rows$rank_index <- 3
blocker <- rows
blocker$mo <- as.mo("Vibrio fluvialis", info = FALSE)
blocker$rank_index <- 2.1
@@ -666,6 +668,22 @@ test_that("clinical_breakpoints: every blocking row of EUCAST has an effect (#32
expect_false(blocking_row_is_needed(1, blocker))
})
test_that("clinical_breakpoints: EUCAST breakpoints of Vibrio are for the species that EUCAST states", {
skip_on_cran()
cb <- as.data.frame(clinical_breakpoints, stringsAsFactors = FALSE)
cb$mo <- as.character(cb$mo)
cb <- cb[cb$type == "human" & cb$guideline %in% paste("EUCAST", 2022:2026), , drop = FALSE]
species <- as.character(as.mo(c("Vibrio alginolyticus", "Vibrio cholerae", "Vibrio fluvialis", "Vibrio parahaemolyticus", "Vibrio vulnificus"), info = FALSE))
vibrio <- cb[grepl("^B_VIBRI", cb$mo), , drop = FALSE]
expect_identical(sort(unique(vibrio$mo)), sort(species))
has_values <- !is.na(vibrio$breakpoint_S) | !is.na(vibrio$breakpoint_R)
expect_true(all(grepl("Breakpoints are valid for V. alginolyticus", vibrio$note[has_values], fixed = TRUE)))
# all species have the same breakpoints per year, apart from the IE of cefotaxime for V. fluvialis
key <- paste(vibrio$guideline, vibrio$ab, vibrio$method, vibrio$breakpoint_S, vibrio$breakpoint_R)[has_values & !(vibrio$ab == "CTX")]
expect_true(all(table(key) == 5))
expect_false(any(has_values & vibrio$ab == "CTX" & vibrio$mo == as.character(as.mo("Vibrio fluvialis", info = FALSE))))
})
test_that("clinical_breakpoints: EUCAST breakpoints stated in the Notes (#329)", {
skip_on_cran()
cb <- as.data.frame(clinical_breakpoints, stringsAsFactors = FALSE)