pylimma.background_correct
- pylimma.background_correct(object, background=None, method='auto', offset=0.0, printer=None, normexp_method='saddle', verbose=True, *, out_layer='bg_corrected', uns_key='background_correct', layer=None)[source]
Background-correct a single-channel intensity matrix or EList.
Faithful port of R limma’s
backgroundCorrect.matrix(limma/R/background.R:40-108). Accepts a matrix, dict / EList / AnnData carrying the foreground, with the background passed separately asbackground(matchesbackgroundCorrect.matrixEbparameter).Two-colour / RGList / MAList dispatch is out of scope (see
memory/policy_data_class_wrappers.md).movingminandedwardsboth require a printer / spotted-array layout and raiseNotImplementedError; theprinterparameter is accepted for R signature compatibility but is only used by those out-of-scope paths.