cycombinepy

cycombinepy is a Python port of cyCombine for batch correction of single-cell cytometry data. It is AnnData-native and reuses mature Python libraries for the numerical heavy lifting:

Component

Library

ComBat correction

inmoose.pycombat

SOM clustering

FlowSOM

FCS I/O

pytometry

Batch-effect metrics

scib-metrics

The pipeline ported over unchanged from the R package is:

  1. Batch-wise normalize each marker (cycombinepy.normalize)

  2. Self-organizing map clustering of cells (cycombinepy.create_som)

  3. Per-cluster ComBat correction with optional covariates (cycombinepy.correct_data)

Step 1 operates on a normalized view so that downstream clusters represent biology rather than technical variation. Step 3 is applied to the unnormalized data per cluster so rare populations are not over-corrected.

Indices