beadCountWeights(y, x, design = NULL, bead.stdev = NULL, bead.stderr = NULL, nbeads = NULL, array.cv = TRUE, scale = FALSE)
y
.Arguments x
and y
are both required.
x
contains the raw expression values and y
contains the corresponding log2 values for the same probes and the same arrays after background correction and normalization.
x
and y
be any type of object that can be coerced to a matrix, with rows corresponding to probes and columns to arrays.
x
and y
must contain the same rows and columns in the same order.
The reliability of the normalized expression value for each probe on each array is measured by estimating its technical and biological variability. The bead number weights are the inverse sum of the technical and biological variances.
The technical variance for each probe on each array is inversely proportional to the number of beads and is estimated using array-specific bead-level coefficients of variation.
Coefficients of variation are calculated using raw expression values.
The biological variance for each probe across the arrays are estimated using a Newton iteration, with the assumption that the total residual deviance for each probe from lmFit
is inversely proportional to the sum of the technical variance and biological variance.
If any of the arguments design
, bead.stdev
, bead.stderr
or nbeads
are set explicitly in the call they will over-ride the slots or components in the data object
. The argument design
does not normally need to be set in the call but will be extracted from the data object
if available. If arguments bead.stdev
, bead.stderr
and nbeads
are not set explicitly in the call, it is necessary that they are available for extraction from the data object
. Only one of bead.stdev
or bead.stderr
is required, whether it is set explicitly or extracted from the data object
. If both bead.stdev
and bead.stderr
are set explicitly then bead.stdev
is used in preference to bead.stderr
for the calculation of variances.
## Not run:
# ps <- read.ilmn(files="probesummaryprofile.txt",
# ctrfiles="controlprobesummary.txt",
# other.columns=c("BEAD_STDEV","Avg_NBEADS"))
# y <- neqc(ps)
# x <- ps[ps$genes$Status=="regular",]
# bcw <- beadCountWeights(y,x,design)
# fit <- lmFit(y,design,weights=bcw$weights)
# fit <- eBayes(fit)
# ## End(Not run)
Run the code above in your browser using DataLab