setWeights             package:beadarray             R Documentation

_S_e_t _B_e_a_d_L_e_v_e_l_L_i_s_t _W_e_i_g_h_t_s

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

     Replaces the weights of a BeadLevelList with user-specified ones.

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

     setWeights(BLData, wts, array, combine=FALSE)

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

  BLData: 'BeadLevelList'

     wts: either a numerical vector of weights to use, or 0 or 1 to set
          all weights to 0 or 1.

   array: integer specifying the strip/array to use

 combine: logical.  If 'TRUE', the new weights specified by 'wts' are
          combined with the existing weights by storing the minimum of
          the two for each bead.  If 'FALSE' the new weights replace
          any existing weights.

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

     This function replaces the weights column, 'wts', on the specified
     array, with user-specified values.

     Only rows with 'wts != 1' are used in 'createBeadSummaryData'.

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

     'BeadLevelList' object, with updated 'wts' values.

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

     Mark Dunning

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

     data(BLData)
     BLData <- setWeights(BLData,1,1) ##set all weights to 1
     BLData <- setWeights(BLData,0,1) ##set all weights to 0

