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)

