Expand description
Mean-variance modelling of count data at the observation level. Port of
limma’s voom (voom.R) and the span heuristic chooseLowessSpan.
voom transforms counts to log2-counts-per-million, fits a gene-wise linear
model, fits a LOWESS trend of the residual standard deviation against the
average log-count, and converts that trend into per-observation precision
weights for entry to the usual lmFit -> eBayes pipeline.
The current port covers the default path: an optional design and library
sizes, normalize.method = "none", no offsets and no blocking/correlation.
Per-array prior weights are supported via [voom_weighted], which backs
voom_with_quality_weights (voom + gene-by-gene array quality weights).
Structs§
- Voom
Output - Result of
voom: the log-CPM matrixE, the per-observation precisionweights, the design used, the per-sample library sizes, and the span. - Voom
Quality Weights - Result of
voom_with_quality_weights: aVoomOutput-style payload whoseweightsalready fold in the per-samplesample_weights. - Vooma
ByGroup Output - Result of
vooma_by_group. - Vooma
LmFit - Result of
vooma_lm_fit. - Vooma
Output - Result of
vooma: the per-observation precisionweights, the design used, and the span.
Functions§
- choose_
lowess_ span - Choose a LOWESS span as a function of the number of points. Port of
chooseLowessSpan: larger spans for small datasets, smaller for large ones. - voom
voom(counts, design, lib.size, span, adaptive.span)withnormalize.method = "none".- voom_
with_ quality_ weights voomWithQualityWeights(counts, design, span, adaptive.span, var.design, method="genebygene")— combine voom observation weights with array quality weights estimated gene-by-gene.- vooma
vooma(y, design, span, legacy.span)— the continuous-data analog ofvoom, with no predictor and no blocking.- vooma_
by_ group voomaByGroup(y, group, design, span, legacy.span)— fit a separate vooma mean-variance trend within each level ofgroupand assemble the per-group observation weights into onen_genes x n_samplesmatrix for entry tolmFit.- vooma_
lm_ fit voomaLmFit(y, design, prior.weights, span, legacy.span)— vooma followed by a weightedlmFit, returning a fit ready foreBayes.