Skip to main content

Create a Benchmark object from a write_contrast_results return value

Description

Convenience factory that takes the list returned by write_contrast_results (with data and metadata elements), applies ground truth annotation, and creates a Benchmark R6 object.

Usage

benchmark_from_result(result, ...)

Arguments

result list with data and metadata as returned by write_contrast_results
… additional arguments passed to make_benchmark

Value

Benchmark R6 object

See Also

Other benchmarking: Benchmark, benchmark_from_file(), collect_benchmark_results(), ionstar_bench_preprocess(), 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()

Examples

library("prolfquabenchmark")

res <- write_contrast_results(contrast_data, "/tmp/ionstar_lm", metadata)
bench <- benchmark_from_result(res)
bench$plot_ROC()