applyFPErrors {simulatorAPMS}R Documentation

Function to generate the False Postive Observations

Description

This function generates the stochastic False Positive (FP) observations for each bait protein used in the AP-MS simulation.

Usage

applyFPErrors(notFoundProt, rateFP)

Arguments

notFoundProt A vector of proteins
rateFP A scalar within the unit interval indicating the rate at which stochastic FN obersevations are observed.

Details

This function tries to simulate the stochastic nature of the AP-MS technology. The overall simulation function, runSimulators, will call the simulator function on each bait protein along with some uniform random rate at which the technology is estimated to generate FP observations.

Value

A character vector of proteins, proteinFP:
The proteinsFP is a vector consisting of a subset of the notFoundProt proteins which will serve as the FP output for bait B

Author(s)

T.Chiang

See Also

applyFNErrors, applyStickyError

Examples


library(simulatorAPMS)
data(TSNMatrix)
exampleNotFoundPrey <- rownames(TSNMatrix)[50:100]
applyFPErrors(exampleNotFoundPrey, 0.04)
  

[Package simulatorAPMS version 1.8.0 Index]