Skip to main content

Partial AUC of benchmark results restricted to protein and contrast pairs

Description

Keeps the rows of ‘result’ in ‘pairs’ and scores them as the benchmark does: [benchmark_from_result()] annotates the ground truth and ranks the proteins by ‘score’; the partial areas under the ROC curve are those of all contrasts pooled.

Usage

score_on_pairs(result, pairs, score)

Arguments

result list with ‘data’, a contrast table in the format of ‘contrasts.tsv’ (‘protein_id’, ‘contrast’, ‘log_fc’, ‘t_statistic’, ‘p_value’, ‘p_value_adjusted’, ‘avg_intensity’), and ‘metadata’ with the ground truth, as written by [write_contrast_results()]
pairs data.frame with the columns ‘protein_id’ and ‘contrast’
score ranking score: ‘"log_fc"’, ‘"t_statistic"’ or ‘"scaled.p_value"’

Value

named numeric: ‘pAUC_5’ and ‘pAUC_10’, the partial areas up to a false positive rate of 0.05 and 0.1

See Also

Other same pairs: same_pairs_scores()