densityEstimate           package:PCpheno           R Documentation

_O_b_s_e_r_v_e_d _v_e_r_s_u_s _E_x_p_e_c_t_e_d _R_a_t_i_o_s

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

     Function to calculate the ratio of genes that characterize a
     phenotype (observed) among the genes that characterize a
     biological complex versus the ratio of a set of randomly sampled
     genes (expected) among the genes that characterize a biological
     complex.

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

     densityEstimate(genename,interactome,perm)

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

genename: Character vector of the gene names that characterize a
          specific phenotype.

interactome: Contingency matrix of genes (rows) and biological
          complexes (columns) (see package _ScISI_) 

    perm: Numeric vector indicating the number of simulations to run to
          compute the expected ratios.

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

     List of observed and simulated ratios.

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

     N. LeMeur

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

      data(ScISI)
      data(essglist)
      essential <- names(essglist)
      ScISI <- as.matrix(ScISI)
       ratio<- densityEstimate(genename=essential,interactome=ScISI,perm=50)

