library("prolfquabenchmark")
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))prepare benchmark data
Description
prepare benchmark data
Usage
ionstar_bench_preprocess(data, idcol = "protein_Id")
Arguments
data
|
analysis results |
idcol
|
default "protein_Id" |
See Also
Other benchmarking: Benchmark, benchmark_from_file(), benchmark_from_result(), collect_benchmark_results(), make_benchmark(), ms_bench_add_scores(), ms_bench_ap(), ms_bench_auc(), plot_benchmark_comparison(), read_benchmark_results(), read_contrast_results(), write_benchmark_results(), write_contrast_results()