applyFPErrors         package:simulatorAPMS         R Documentation

_F_u_n_c_t_i_o_n _t_o _g_e_n_e_r_a_t_e _t_h_e _F_a_l_s_e _P_o_s_t_i_v_e _O_b_s_e_r_v_a_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     applyFPErrors(notFoundProt, rateFP)

_A_r_g_u_m_e_n_t_s:

notFoundProt: A vector of proteins

  rateFP: A scalar within the unit interval indicating the rate at
          which stochastic FN obersevations are observed.

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

     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

_A_u_t_h_o_r(_s):

     T.Chiang

_S_e_e _A_l_s_o:

     'applyFNErrors', 'applyStickyError'

_E_x_a_m_p_l_e_s:

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

