Squidpy's neighborhood flavour counts the cell-type composition of each cell's spatial neighbourhood, z-scores it and runs Leiden over the profiles — so the niche count is emergent, not fixed. The neighbourhood is a k-NN spatial graph of degree n_neighs, and profiles are summed over 2 hops (1-hop profiles fragment into hundreds of clusters on this cohort and are not shown, nor is n_neighs 6, which fragments even at 2 hops). Change resolution and degree; flip the seed to see how stable the emergent niches are. Drag the ↔ handle on the bottom-right of the map to resize it. Click a dot in the composition plot to read its exact % and shine those cells on the map.