MacenkoParams

MacenkoParams#

class squidpy.types.MacenkoParams[source]#

Tuning knobs for Macenko stain-matrix fitting.

A TypedDict: pass a plain dict with any subset of these keys.

alpha: NotRequired[float]#

Angular percentile (deg) for the two stain directions; the extremes are taken at alpha / 100 - alpha.

Default: 1.0

beta: NotRequired[float]#

Mean-absorbance cutoff selecting tissue pixels (optical-density space).

Default: 0.15