max_dist: int
Maximum distance between spatial clusters.
n_neighbours: int
Number of neighbours.
n_simulations: int
Number of simulations.
mode: char
Ripley mode (F, G or L).
plot_sims: bool
Plot simulations.
import squidpy as sq
mode = "L"
sq.gr.ripley(adata, cluster_key="cluster", mode=mode, max_dist=500)
sq.pl.ripley(adata, cluster_key="cluster", mode=mode)