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 as background (matches backgroundCorrect.matrix Eb parameter).

Two-colour / RGList / MAList dispatch is out of scope (see memory/policy_data_class_wrappers.md). movingmin and edwards both require a printer / spotted-array layout and raise NotImplementedError; the printer parameter is accepted for R signature compatibility but is only used by those out-of-scope paths.

Parameters: