dynamo.pp.normalize_layers_pearson_residuals
- dynamo.pp.normalize_layers_pearson_residuals(adata, layers=['X'], select_genes_layer='X', select_genes_key='use_for_pca', copy=False, **normalize_pearson_residual_args)[source]
Normalize the given layers of the AnnData object using Pearson residuals.
- Parameters:
adata (
AnnData
) – AnnData object to normalize.layers (
list
) – the list of layers to normalize.select_genes_layer – the layer to select highly variable genes.
select_genes_key – the key to use for selecting highly variable genes.
copy – Whether to create a copy of the AnnData object before editing it.
**normalize_pearson_residual_args – Additional arguments to pass to the _normalize_single_layer_pearson_residuals function.
- Return type:
- Returns:
None. Anndata object will be updated.