stereo.core.StPipeline.normalize_total¶
- StPipeline.normalize_total(target_sum=10000, layer=None, inplace=True, add_layer=False, res_key='normalize_total')[source]¶
Normalize total counts over all genes per cell such that each cell has the same total count after normalization.
- Parameters:
target_sum (
int) – the number of total counts per cell after normalization, ifNone, each cell has a total count equal to the median of total counts for all cells before normalization.layer (
Optional[str]) – the key of layer to be used instead of the data.exp_matrix.inplace (
bool) – whether to replace the data.exp_matrix or save the result indata.layers.add_layer (
bool) – whether to save the result indata.layerssimultaneously wheninplaceis True.res_key (
str) – the key to save the result indata.layerswheninplaceis False oradd_layeris True.
- Return type:
Depending on
inplace, ifTrue, the data will be replaced by those normalized