popari.tl.leiden

Contents

popari.tl.leiden#

popari.tl.leiden(datasets, resolution=1.0, tolerance=0.05, **kwargs)#

Compute Leiden clustering for all datasets.

Parameters:
  • trained_model – the trained Popari model.

  • joint – if True, jointly cluster the spots

  • datasets (Sequence[PopariDataset]) – list of datasets to cluster

  • use_rep – the key in the .obsm dataframe to ue as input to the Leiden clustering algorithm.

  • resolution (float) – the resolution to use for Leiden clustering. Higher values yield finer clusters..

  • tolerance (float)