normalize_total
Normalize per-cell counts to a consistent total, either by median or a specified target sum. Optionally exclude highly expressed genes and apply adjustments to specific layers in single-cell RNA sequencing data.
Instructions
Normalize counts per cell to the same total count
Input Schema
Name | Required | Description | Default |
---|---|---|---|
exclude_highly_expressed | No | Exclude highly expressed genes for the computation of the normalization factor for each cell. | |
inplace | No | Whether to update adata or return dictionary with normalized copies. | |
key_added | No | Name of the field in adata.obs where the normalization factor is stored. | |
layer | No | Layer to normalize instead of X. If None, X is normalized. | |
layer_norm | No | Specifies how to normalize layers. | |
layers | No | List of layers to normalize. If 'all', normalize all layers. | |
max_fraction | No | If exclude_highly_expressed=True, consider cells as highly expressed that have more counts than max_fraction of the original total counts in at least one cell. | |
target_sum | No | If None, after normalization, each cell has a total count equal to the median of total counts before normalization. If a number is provided, each cell will have this total count after normalization. |