arrayWeights(object, design = NULL, weights = NULL, var.design = NULL,
method = "genebygene", maxiter = 50, tol = 1e-10, trace=FALSE)
arrayWeightsSimple(object, design = NULL,
maxiter = 100, tol = 1e-6, maxratio = 100, trace=FALSE)
numeric
, matrix
, MAList
, marrayNorm
,
ExpressionSet
or PLMset
containing log-ratios or log-values of
expression for a series of microarrays.NULL
."genebygene"
and "reml"
.lm.wfit
. The dispersion model
is fitted to the squared residuals from the mean fit, and is set up to
have array specific coefficients, which are updated in either full REML
scoring iterations, or using an efficient gene-by-gene update algorithm.
The final estimates of these array variances are converted to weights.
The data object object
is interpreted as for lmFit
.
In particular, the arguments design
and weights
will be extracted from the data
object
if available and do not normally need to be set explicitly in
the call; if any of these are set in the call then they will over-ride
the slots or components in the data object
.
arrayWeightsSimple
is a fast version of arrayWeights
with method="reml"
, no prior weights and no missing values.voomWithQualityWeights
An overview of linear model functions in limma is given by 06.LinearModels.# Subset of data from ApoAI case study in Limma User's Guide
RG <- backgroundCorrect(RG, method="normexp")
MA <- normalizeWithinArrays(RG)
targets <- data.frame(Cy3=I(rep("Pool",6)),Cy5=I(c("WT","WT","WT","KO","KO","KO")))
design <- modelMatrix(targets, ref="Pool")
arrayw <- arrayWeightsSimple(MA, design)
fit <- lmFit(MA, design, weights=arrayw)
fit2 <- contrasts.fit(fit, contrasts=c(-1,1))
fit2 <- eBayes(fit2)
# Use of array weights increases the significance of the top genes
topTable(fit2)
Run the code above in your browser using DataLab