setWeights {beadarray}R Documentation

Set BeadLevelList Weights

Description

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

Usage

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

Arguments

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.

Details

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

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

Value

BeadLevelList object, with updated wts values.

Author(s)

Mark Dunning

Examples

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

[Package beadarray version 1.10.0 Index]