assessSymmetry           package:ppiStats           R Documentation

_A _f_u_n_c_t_i_o_n _t_h_a_t _c_a_l_c_u_a_l_t_e_s _s_o_m_e _d_i_r_e_c_t_e_d _d_e_g_r_e_e _s_t_a_t_i_s_t_i_c_s _o_n
_g_r_a_p_h_s _u_s_i_n_g _a _b_i_n_o_m_i_a_l _e_r_r_o_r _m_o_d_e_l

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

     This function takes in a bait to prey protein-protein interaction
     graph (undirected) and calculates the reciprocated degree, the
     unreciprocated in and out degrees. Using this information and
     binomial error model, it asses the p-value for the in and out
     degree of each protein. Lastly, it plots the countour curves for
     these p-values

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

     assessSymmetry(bpMat, bpGraph = FALSE,
       pLevels = c(1e-06, 1e-04, 0.01))

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

   bpMat: Either a bait to prey directed graphNEL or its corresponding
          adjacency matrix.

 bpGraph: A logical. If TRUE, than bpMat is passed in by the user as a
          graphNEL.

 pLevels: A numeric vector. It gives the levels to calculate the
          countours of the function in p in the (n-in, n-out)-plane

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

     A list:

     deg: A 3xn matrix. The rows are indexed by each protein. Column
          one gives the number of reciprocated edges; column two gives
          the number of unreciprocated out edges; colunm three gives
          the number of unreciprocated in-edges

       p: The p-value for each protein with experimental in and out
          degrees

countours: The countours as a function of p

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

     W Huber

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

     library(ppiData)
     assessSymmetry(Ito2001BPGraph, bpGraph=TRUE)

