genBPGraph             package:ppiStats             R Documentation

_A _f_u_n_c_t_i_o_n _t_o _g_e_n_e_r_a_t_e _t_h_e _p_r_o_t_e_i_n-_p_r_o_t_e_i_n _i_n_t_e_r_a_c_t_i_o_n (_p_p_i)
_i_n_d_u_c_e_d (_u_n)_d_i_r_e_c_t_e_d _g_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     This function will take the ppi data and generate instance of the 
     class graph.

_U_s_a_g_e:

     genBPGraph(bpMat, directed=TRUE, bp=TRUE)

_A_r_g_u_m_e_n_t_s:

   bpMat: An adjacency matrix of PPI. If the matrix is obtained by
          empirical data, or bait to prey, then the   rows are indexed
          by the baits and the columns indexed by the  preys. If the
          rownames are not the same as the column names (i.e. a generic
          bait to prey matrix) the argument bp must be set to TRUE.

directed: A logical - if TRUE, the object will be a directed graph
          rather than an ordinary graph. For bait to prey interactions,
          this  parameter must always be set to TRUE.

      bp: A logical - if TRUE, it signifies that the adjacency matrix 
          is a bait to prey empirically derived matrix so that the bait
          population (rownames) is usually different from the prey
          population (colnames).

_V_a_l_u_e:

     An instance of the class graph.

_A_u_t_h_o_r(_s):

     T Chiang

_E_x_a_m_p_l_e_s:

     library(ppiData)
     library(graph)
     data(y2hSysGW)
     eg=y2hSysGW[[3]]
     egMat = bpMatrix(eg)
     genBPGraph(egMat)

