prepare benchmark data
See also
Other benchmarking:
Benchmark,
INTERNAL_FUNCTIONS_BY_FAMILY,
make_benchmark(),
ms_bench_add_scores(),
ms_bench_auc()
Examples
dd <- data.frame(
protein_Id = c("P1_HUMAN", "P2_ECOLI", "P3_HUMAN", "P4_OTHER"),
estimate = c(0.5, -1.2, 0.3, 0.1),
stringsAsFactors = FALSE)
res <- ionstar_bench_preprocess(dd)
stopifnot(is.list(res))
stopifnot(all(c("data", "table") %in% names(res)))
stopifnot(nrow(res$data) == 3) # OTHER is filtered out
stopifnot("TP" %in% colnames(res$data))