nichepca.utils.normalize_per_sample

nichepca.utils.normalize_per_sample#

nichepca.utils.normalize_per_sample(adata, sample_key, **kwargs)#

Normalize the per-sample counts in the adata object based on the given sample_key.

Parameters:
  • adata (AnnData) – The annotated data object.

  • sample_key (str) – The key in adata.obs that identifies distinct samples.

  • kwargs (dict, optional) – Additional keyword arguments to be passed to sc.pp.normalize_total.

Returns:

None