CoHyperGResult-class         package:PCpheno         R Documentation

_C_l_a_s_s "_C_o_H_y_p_e_r_G_R_e_s_u_l_t"

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

     This class represents the results of a test for
     over-representation of genes in a selected gene set based among
     protein complexes upon the  Hypergeometric distribution.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects is created by calls to the funtion hyperGTest.

_S_l_o_t_s:


     '_p_v_a_l_u_e_s': '"numeric"' vector: the ordered p-values for each
          category term tested.

     '_g_e_n_e_C_o_u_n_t_s': '"integer"' vector: for each category term tested,
          the number of genes from the gene set that are annotated at
          the term.

     '_u_n_i_v_e_r_s_e_C_o_u_n_t_s': '"integer"' vector: for each category term
          tested, the number of genes from the gene universe that are
          annotated at the term.

     '_c_a_t_T_o_G_e_n_e_I_d': Object of class '"list"'.  The names of the list
          are category IDs.  Each element is a vector of gene IDs
          annotated at the given category ID and in the specified gene
          universe.

     '_a_n_n_o_t_a_t_i_o_n': A string giving the name of the chip annotation data
          package used.

     '_g_e_n_e_I_d_s': Object of class '"ANY"': the input vector of gene
          identifiers intersected with the universe of gene identifiers
          used in the computation.  The class of this slot is specified
          as '"ANY"' because gene IDs may be integer or character
          vectors depending on the annotation package.

     '_t_e_s_t_N_a_m_e': A string identifying the testing method used.

     '_p_v_a_l_u_e_C_u_t_o_f_f': Numeric value used a a p-value cutoff.  Used by
          the 'show' method to count number of significant terms.


_E_x_t_e_n_d_s:

     Class '"HyperGResultBase"', directly.

_M_e_t_h_o_d_s:


     _g_e_n_e_C_o_u_n_t_s 'signature(r = "CoHyperGResult")': return an
          '"numeric"' vector: for each category term tested, the number
          of genes from the gene set that are annotated at the term.

     _p_v_a_l_u_e_s 'signature(r = "HyperGResult")': return a '"numeric"'
          vector: the ordered p-values for each category term tested.

     _o_d_d_s_R_a_t_i_o_s 'signature(r = "HyperGResult")': return a '"numeric"'
          vector: the odds ratio for each category term tested.

     _e_x_p_e_c_t_e_d_C_o_u_n_t_s 'signature(r = "HyperGResult")': return a
          '"numeric"' vector: the expected number of genes for each GO
          term tested.

     _u_n_i_v_e_r_s_e_C_o_u_n_t_s 'signature(r = "HyperGResult")': return an
          '"numeric"' vector: for each category term tested, the number
          of genes from the gene universe that are annotated at the
          term.

     _g_e_n_e_I_d_U_n_i_v_e_r_s_e 'signature(r = "CoHyperGResult")': return a list
          named by the protein Complexes.  Each element of the list is
          a vector of gene identifiers (from the gene universe)
          annotated at the corresponding protein complex.

     _s_u_m_m_a_r_y 'signature(r = "CoHyperGResult")': Returns a 'data.frame'
          summarizing the test result. Optional arguments 'pvalue' and
          'categorySize' allow specification of minimum p-value and
          cateogyrSize, respectively. Optional argument 'htmlLinks' is
          a logical value indicating whether to add HTML links (useful
          in conjunction with xtables print method with 'type' set to
          '"html"').


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

     S. Falcon and N. LeMeur

_S_e_e _A_l_s_o:

     'HyperGResultBase-class'

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

     data(DudleyPhenoM)
     data(ScISIC)

     ## Select genes sensitive to paraquat
     DudleyPhenoL <- apply(DudleyPhenoM,2,function(x) names(which(x==1)))
     paraquat <- DudleyPhenoL[["Paraq"]]

     ## Apply a hypergeometric test
     params <- new("CoHyperGParams",
                   geneIds=paraquat, 
                   universeGeneIds=rownames(ScISIC),
                   annotation="YEAST",
                   categoryName="ScISIC",
                   pvalueCutoff=0.01,
                   testDirection="over")

     paraquat.complex <- hyperGTest(params)

     ## access the p-values
     pvalues(paraquat.complex)[1:5]

     ## Display a summary of the results
     summary(paraquat.complex)[,1:4]

