n_perms: int Number of permutations when computing the score.
n_perms: int
import squidpy as sq sq.gr.spatial_neighbors(adata) sq.gr.nhood_enrichment(adata, n_perms=1000, cluster_key="cell_type") sq.pl.nhood_enrichment(adata, cluster_key="cell_type")