adds FDR, TPR and FDP to data.
ms_bench_add_scores(
data,
TP_col = "TP",
arrangeby = "diff",
desc = TRUE,
subject_Id = "protein_Id"
)
a dataframe with TP_col indicating if the row is a true positive hit
column name of TP (TRUE, FALSE)
- by which column to sort.
descending or ascending.
data.frame with the following columns added FDP - false discovery proportion (Q in Benjamini Hochberg table) FPR - false positive rate TPR - true positive rate TP_hits - true positives
Other benchmarking:
Benchmark
,
INTERNAL_FUNCTIONS_BY_FAMILY
,
ionstar_bench_preprocess()
,
make_benchmark()
,
ms_bench_auc()
dd <- prolfqua_data('data_test_confusion_matrix_scores')
xd <- ms_bench_add_scores(dd, arrangeby = "estimate")
plot(xd$TPR,xd$PREC, type="l")
plot(1- xd$PREC, xd$FDP)