Skip to main content

Module weights

Module weights 

Source
Expand description

Weight utilities (limma weights.R).

Pure-Rust ports of modify_weights (limma’s modifyWeights): scale the observation weights of probes whose status matches given labels by per-label multipliers; and as_matrix_weights (asMatrixWeights): expand probe-, array- or scalar-weights to a full n_genes x n_arrays matrix. The two-colour quality-weight helpers (wtarea, wtflags, wtIgnore.Filter) operate on named spot-quality columns and are out of scope for the numeric port.

Functions§

as_matrix_weights
asMatrixWeights(weights, dim): expand a weight vector or matrix to a full dim = (n_rows, n_cols) matrix, recycling exactly as limma does.
modify_weights
Multiply the weights of every probe (row) whose status equals values[k] by multipliers[k]. multipliers is recycled when it has length 1. Returns a new matrix; weights is left unchanged.