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 fulldim = (n_rows, n_cols)matrix, recycling exactly as limma does.- modify_
weights - Multiply the weights of every probe (row) whose
statusequalsvalues[k]bymultipliers[k].multipliersis recycled when it has length 1. Returns a new matrix;weightsis left unchanged.