mirandom: Convert target/decoy scores into winning scores and labels
Description
mirandom takes a collection of target and decoy scores for m
hypotheses and returns a winning score and label attached to each.
The argument scores must be organised in an m x (d + 1) matrix,
where d is the number of decoy scores. The first column of scores
must contain the target scores.
Usage
mirandom(scores, c = 0.5, lambda = 0.5)
Arguments
scores
An m x (d + 1) matrix where m is the number of hypothesis and
d is the number of decoy scores for each hypothesis. The first column of
scores are target scores and subsequent columns are decoy scores.
c
Determines the ranks of the target score that are considered
winning. Defaults to c = 0.5 for single-decoy FDP-SD.
lambda
Determines the ranks of the target score that are
considered losing. Defaults to lambda = 0.5 for single-decoy FDP-SD.
Value
A m x 2 matrix where m is the number of hypotheses. The first column
contains the winning scores and the second column contains the corresponding
labels.