| voomWithQualityWeights {limma} | R Documentation |
Combine voom observational-level weights with sample-specific quality weights in a designed experiment.
voomWithQualityWeights(counts, design=NULL, lib.size=NULL, normalize.method="none",
plot=FALSE, span=0.5, var.design=NULL, method="genebygene", maxiter=50,
tol=1e-10, trace=FALSE, replace.weights=TRUE, col=NULL, ...)
counts |
a numeric |
design |
design matrix with rows corresponding to samples and columns to coefficients to be estimated. Defaults to the unit vector meaning that samples are treated as replicates. |
lib.size |
numeric vector containing total library sizes for each sample.
If |
normalize.method |
normalization method to be applied to the logCPM values.
Choices are as for the |
plot |
|
span |
width of the lowess smoothing window as a proportion. |
var.design |
design matrix for the variance model. Defaults to the sample-specific model (i.e. each sample has a distinct variance) when |
method |
character string specifying the estimating algorithm to be used. Choices
are |
maxiter |
maximum number of iterations allowed. |
tol |
convergence tolerance. |
trace |
logical variable. If true then output diagnostic information
at each iteration of the '"reml"' algorithm, or at every 1000th iteration of the
|
replace.weights |
logical variable. If TRUE then the weights in the voom object will be replaced with
the combined voom and sample-specific weights and the |
col |
colours to use in the barplot of sample-specific weights (only used if |
... |
other arguments are passed to |
This function is intended to process RNA-Seq data prior to linear modelling in limma.
It combines observational-level weights from voom with sample-specific weights estimated using the arrayWeights function.
A numeric matrix of same dimension as counts containing consolidated voom and sample-specific weights.
If replace.weights=TRUE, then an EList object is returned with the weights component containing the consolidated weights.
Matthew Ritchie and Cynthia Liu
Law, C. W., Chen, Y., Shi, W., Smyth, G. K. (2014). Voom: precision weights unlock linear model analysis tools for RNA-seq read counts. Genome Biology 15, R29. http://genomebiology.com/2014/15/2/R29
Liu, R., Holik, A. Z., Su, S., Jansz, N., Chen, K., Leong, H. S., Blewitt, M. E., Asselin-Labat, M.-L., Smyth, G. K., Ritchie, M. E. (2015). Why weight? Combining voom with estimates of sample quality improves power in RNA-seq analyses. Nucleic Acids Research 43. (Accepted 17 April 2015)
Ritchie, M. E., Diyagama, D., Neilson, van Laar, R., J., Dobrovic, A., Holloway, A., and Smyth, G. K. (2006). Empirical array quality weights in the analysis of microarray data. BMC Bioinformatics 7, 261. http://www.biomedcentral.com/1471-2105/7/261
A summary of functions for RNA-seq analysis is given in 11.RNAseq.