getInteraction             package:SLGI             R Documentation

_C_o_u_n_t _g_e_n_e_t_i_c _i_n_t_e_r_a_c_t_i_o_n_s _w_i_t_h_i_n _a_n_d _b_e_t_w_e_e_n _c_e_l_l_u_l_a_r
_o_r_g_a_n_i_z_a_t_i_o_n_a_l _u_n_i_t_s

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

     Count the number of genetic interactions within and between the
     elements of the interactome.

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

     getInteraction(iMat, universe, interactome)

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

    iMat: Interaction matrix. Each entry has value 0 or 1, representing
          positive or negative interaction of corresponding pairs of
          row and column, respectively.

universe: Character vector of gene names, e.g., array genes used in
          synthetic genetic array experiments (SGA)

interactome: Adjacency matrix where row are gene names and columns are
          cellular organizational units. 

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

     The returned value is a list of 2 matrices: 

   bwMat: 

     CDs: Subset of the input interactome that shares interactions.

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

     N. LeMeur

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

     ##Create the genetic interaction matrix
     gInt <- sample(c(0, 1), 25, TRUE)
     iMat  <- matrix(gInt, nrow=5, ncol=5, dimnames=list(letters[1:5],letters[4:8]))

     ##Create the interactome
     cInt <- sample(c(0,1),30, TRUE)
     interactome  <- matrix(cInt, nrow=6, ncol=5,dimnames=list(letters[2:7],LETTERS[1:5]))

     ## Reduce the genetic interaction matrix to match the gene present in
     ## the interactome
     reducediMat <- gi2Interactome(iMat, interactome)

     ## Get the interaction
     prey <- letters[1:20]
     myInteraction <- getInteraction(reducediMat, prey, interactome)

