baitsOnly              package:y2hStat              R Documentation

_A _f_u_n_c_t_i_o_n _t_h_a_t _f_i_l_t_e_r_s _p_r_o_t_e_i_n_s _n_o_t _s_a_m_p_l_e_d _a_s _b_a_i_t_s.

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

     This function takes in a three tiered list. The top tier is the
     main list which is passed in by the user. The second tier set of
     lists should be named or referenced by experimentors. The third
     tier is a list of bait to prey associations. The names in the
     third tier of the list are those proteins sampled as baits, and
     the entries are character vectors of proteins detected as prey.
     This function will restrict those prey proteins to those which
     have also been sampled as baits. The resulting character vector
     contains only prey also sampled as baits or as a character(0).

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

     baitsOnly(y2h)

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

     y2h: A three tiered list. Names of the second tier corresponds to
          ID of experiment. Names of the third tier should be the bait
          proteins. The entries of the third tier are character vectors
          of proteins detected as prey

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

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

     The return value is the identical to the structure of the
     arguments though the proteins of the character vector are
     restricted to those proteins which were also sampled as baits; if
     none were sampled, the vector character(0) is returned

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

     T Chiang

_R_e_f_e_r_e_n_c_e_s:

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

     data(y2hSysGW)
     eg <- y2hSysGW[2:3]
     baitsOnly(eg)

