modifyWeights             package:limma             R Documentation

_m_o_d_i_f_y_W_e_i_g_h_t_s

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

     Modify weights matrix for given gene status values.

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

     modifyWeights(weights=rep(1,length(status)), status, values, multipliers)

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

 weights: numeric matrix of relative weights, rows corresponding to
          genes and columns to arrays

  status: character vector giving the control status of each spot on
          the array, of same length as the number of rows of 'weights'

  values: character vector giving subset of the unique values of
          'status'

multipliers: numeric vector of same length as 'values' giving factor by
          which weights will be modified

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

     The function is usually used to temporarily modify the weights
     matrix during normalization of data. The function can be used for
     example to give zero weight to spike-in ratio control spots during
     normalization.

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

     Numeric matrix of same dimensions as 'weights' with rows
     corresponding to 'values' in 'status' modified by the specified
     multipliers.

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

     Gordon Smyth

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

     An overview of normalization functions available in LIMMA is given
     in 05.Normalization.

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

     w <- matrix(runif(6*3),6,3)
     status <- c("Gene","Gene","Ratio_Control","Ratio_Control","Gene","Gene")
     modifyWeights(w,status,values="Ratio_Control",multipliers=0)

