reduceES             package:pathRender             R Documentation

_c_o_l_l_a_p_s_e _t_h_e _a_s_s_a_y _v_a_l_u_e_s _i_n _a_n _E_x_p_r_e_s_s_i_o_n_S_e_t _t_o _a
_s_e_t _o_f _s_p_e_c_i_f_i_e_d _g_e_n_e_s, _u_s_i_n_g _a _s_t_a_t_i_s_t_i_c _w_h_e_n _m_u_l_t_i_p_l_e
_p_r_o_b_e_s _m_a_p _t_o _a _g_i_v_e_n _g_e_n_e

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

     collapse the assay values in an ExpressionSet to a set of
     specified genes, using a statistic when multiple probes map to a
     given gene

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

     reduceES(es, annovec, ann2featMap, pdvname="symbol", collapseFun=NULL)

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

      es: ExpressionSet instance

 annovec: genes to retain 

ann2featMap: either an AnnDbBimap from AnnotationDbi (typically
          constructed with revmap(), or a named vector mapping from
          symbols to probe set IDs

 pdvname: featureData variable name to be used to hold the  annotations
          of variables kept  

collapseFun: statistical function for collapsing data across probes
          mapping to the same gene 

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

     An ExpressionSet instance limited to genes in annovec, condensed
     if necessary using collapseFun to get one number per gene from
     multiple probes

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

     Vince Carey <stvjc@channing.harvard.edu>

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

     library(ALL)
     data(ALL)
     library(hgu95av2.db)
     rr = revmap(hgu95av2SYMBOL)
     exprs(reduceES(ALL[,1:3], c("DDR1", "CPNE1"), rr, "sym", mean))

