metalsinglecell.pp.scale#

metalsinglecell.pp.scale(adata, max_value=None, zero_center=True, layer=None, copy=False)[source]#

Z-score genes then clip (sc.pp.scale). Densifies (zero-centering breaks sparsity).

max_value defaults to None (no clip), matching scanpy/rapids-singlecell — pass a value (e.g. 10) to clip z-scores, as the atlas/streaming demos do explicitly.

Parameters: