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)

