gi2Interactome             package:SLGI             R Documentation

_R_e_d_u_c_e _g_e_n_e_t_i_c _i_n_t_e_r_a_c_t_i_o_n_s _m_a_t_r_i_x

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

     Reduce genetic interactions matrix to the pairs that genetically
     interact and that are present in the interactome of interest.

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

     gi2Interactome(iMat, interactome, threshold=0)

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

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

interactome: Interactome matrix, e.g. 'ScISIC'. 

threshold: Integer

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

     The returned value is the  genetic interaction matrix  reduced to
     the row and column (genes) names that are present in the
     interactome and where the row and column sums are higher than the
     specified threshold.

_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)

