metalsinglecell.tl.leiden#
- metalsinglecell.tl.leiden(adata, resolution=1.0, key_added='leiden', random_state=0, n_iterations=2, backend='igraph', variant='sync', commit_prob=0.9, copy=False)[source]#
Leiden clustering (
sc.tl.leiden); writesadata.obs[key_added](categorical).backend="gpu"runs the Metal parallel Leiden;variant(“sync”|”colored”) andcommit_probtune its convergence (GPU path only; ignored for the igraph backend).