pylimma.wsva
- pylimma.wsva(y, design, n_sv=1, weight_by_sd=False, plot=False, *, array_weights=None, weights=None, block=None, correlation=None, **kwargs)[source]
Weighted surrogate variable analysis.
Port of R limma’s
wsva(Yifang Hu and Gordon Smyth, 2015-2017). Returns ann_arrays x n_svmatrix of surrogate variables.When
weight_by_sd=True, the algorithm is iterative and each iteration weights rows by their residual SD. Whenplot=True, a screeplot of the singular-value spectrum is produced via matplotlib (lazy import).array_weights,weights,block, andcorrelationare threaded through to.lmEffectsas R’s wsva does via...(wsva.R:1, lmEffects.R:1).weightsaliased as array-weights (lengthn_arrays) is promoted toarray_weightsto match R’s lmEffects.R:52-56.