scib.preprocessing.scale_batch

scib.preprocessing.scale_batch(adata, batch)

Batch-aware scaling of count matrix

Scaling counts to a mean of 0 and standard deviation of 1 using scanpy.pp.scale for each batch separately.

Parameters:
  • adataanndata object with normalised and log-transformed counts

  • batchadata.obs column