simulate_subset: Random generation of a dataset after TDA.

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Random generation of number of decoy, correct target and incorrect target PSMs after a competitive target-decoy search.

Usage

1
simulate_subset(n, pi0, sims = 1)

Arguments

n

number of total PSMs.

pi0

theoretical π_0.

sims

number of observations.

Value

A data frame with “sims” rows and 6 rows:

n

number of PSMs.

pi0

theoretical π_0.

decoy_n

number of decoy PSMs.

target_n

number of target PSMs.

H0_n

number of incorrect target PSMs.

H1_n

number of correct target PSMs.

Examples

1
2
3
## Simulate the number of decoys, correct targets and incorrect targets in 10 datasets that
## consist of 100 PSMs and that have on average 20% incorrect target PSMs.
simulate_subset(100, .2, 10)

compomics/search-all-assess-subset documentation built on May 13, 2019, 9:55 p.m.