generateExprVal             package:affy             R Documentation

_C_o_m_p_u_t_e _a _s_u_m_m_a_r_y _e_x_p_r_e_s_s_i_o_n _v_a_l_u_e _f_r_o_m _t_h_e _p_r_o_b_e_s _i_n_t_e_n_s_i_t_i_e_s

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

     Compute a summary expression value from the probes intensities

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

     express.summary.stat(x, pmcorrect, summary, ...)
     express.summary.stat.methods() # vector of names of methods
     upDate.express.summary.stat.methods(x)

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

       x: a ('ProbeSet'

pmcorrect: the method used to correct the PM values before summarizing
          to an expression value.

 summary: the method used to generate the expression value.

     ...: other parameters the method might need... (see the
          corresponding methods below...)

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

     Returns a vector of expression values.

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

     if (require(affydata)) {
       data(Dilution)

       p <- probeset(Dilution, "1001_at")[[1]]

       par(mfcol=c(5,2))
       mymethods <- express.summary.stat.methods()
       nmet <- length(mymethods)
       nc <- ncol(pm(p))

       layout(matrix(c(1:nc, rep(nc+1, nc)), nc, 2), width = c(1, 1))

       barplot(p)

       results <- matrix(0, nc, nmet)
       rownames(results) <- paste("sample", 1:nc)
       colnames(results) <- mymethods

       for (i in 1:nmet) {
         ev <- express.summary.stat(p, summary=mymethods[i], pmcorrect="pmonly")
         if (mymethods[[i]] != "medianpolish")
           results[, i] <- 2^(ev$exprs)
         else
           results[, i] <- ev$exprs
       }

       dotchart(results, labels=paste("sample", 1:nc))
     }

