sainsc.LazyKDE.load_local_maxima

sainsc.LazyKDE.load_local_maxima(genes=None, *, spatialdata=False)

Load the gene expression (KDE) of the local maxima.

The local maxima (sainsc.LazyKDE.local_maxima) are calculated and returned as anndata.AnnData object.

Parameters:
  • genes (Iterable[str], optional) – List of genes for which the KDE will be calculated.

  • spatialdata (bool, optional) – If True will load the data as a SpatialData object including the totalRNA projection and cell-type map if available. If False an AnnData object is returned.

Return type:

AnnData | SpatialData

Raises: