step_down: Step-Down algorithm to control the FDP

Description Usage Arguments Value Examples

View source: R/step_down.R

Description

Step-Down algorithm to control the FDP

Usage

1
step_down(target_scores, decoy_scores, alpha, gamma, randomised = T)

Arguments

target_scores

a vector of numeric values representing the target scores

decoy_scores

a vector of numeric values representing the corresponding decoy scores

alpha

the FDP control threshold, must be a numeric value between 0 and 1

gamma

the confidence level will be 1 - gamma

randomised

boolean

Value

It returns a threshold and a list of indices of the dicvoeries

Examples

1
2
3
4
5
x <- rnorm(1000, 1, 1)
y <- rnorm(1000)
target_scores <- apply(cbind(x, y), 1, max)
decoy_scores <- rnorm(1000)
step_down(target_scores, decoy_scores, 0.2, 0.1)

gargoyle1919/step.down documentation built on Dec. 20, 2021, 9:48 a.m.