resolution: float, default = 0.6
Resolution to use in clustering algorithm (a higher resultion finds more clusters).
import scanpy as sc
resolution = 0.6
sc.pp.neighbors(adata, n_neighbors=10, n_pcs=40)
# add leiden embeddings
sc.tl.leiden(adata, resolution=resolution, key_added=f"leiden_{resolution}")
# add louvain embeddings
sc.tl.louvain(adata, resolution=resolution, key_added=f"louvain_{resolution}")