summarizeReplicates        package:maigesPack        R Documentation

_S_u_m_m_a_r_i_s_e _m_i_c_r_o_a_r_r_a_y _o_b_j_e_c_t_s

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

     Function to summarise measures of a 'maiges' class object, both by
     samples and genes.

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

     summarizeReplicates(object=NULL, gLabelID="GeneName", sLabelID="Sample",
                         funcS="mean", funcG="mean", rmBad=TRUE, keepEmpty=TRUE)

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

  object: object of class 'maiges'.

gLabelID: character string giving the gene label ID to be used to
          summarise the data by rows.

sLabelID: character string giving the sample label ID to be used to
          summarise the data by columns.

   funcS: character string specifying the function to be applied for
          sample replicates. Defaults to 'mean'. If NULL, no resume is
          done for samples.

   funcG: character string specifying the function to be applied for
          genes (spots) replicates. Defaults to 'mean'. If NULL, no
          resume is done for genes..

   rmBad: logical indicating if you want to remove or not bad spots,
          given by the slot 'BadSpots' in argument 'object'.

keepEmpty: logical indicating if you want to maintain spots with empty
          information.

_D_e_t_a_i_l_s:

     This function takes the object of class 'maiges' and resume the
     data by spots (rows) and samples (columns).

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

     This function returns another object of class 'maiges' with
     replicates summarised to only one observation.

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

     Gustavo H. Esteves <gesteves@vision.ime.usp.br>

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

     ## Loading the dataset
     data(gastro)

     ## Summarising the data (maigesNorm class), replicated samples will be
     ## summarised by mean and genes by median
     gastro.summ = summarizeReplicates(gastro.norm, gLabelID="GeneName",
       sLabelID="Sample", funcS="mean", funcG="median",
       keepEmpty=FALSE, rmBad=FALSE)

     ## To summarise genes by mean and keep the blank spots use
     gastro.summ = summarizeReplicates(gastro.norm, gLabelID="GeneName",
       sLabelID="Sample", funcS="mean", funcG="mean",
       keepEmpty=TRUE, rmBad=FALSE)

