squidpy.gr.sepal

squidpy.gr.sepal(adata, max_neighs, genes=None, n_iter=30000, dt=0.001, thresh=1e-08, connectivity_key='spatial_connectivities', spatial_key='spatial', layer=None, use_raw=False, copy=False, n_jobs=None, show_progress_bar=True, *, table_key=None)[source]

Identify spatially variable genes with Sepal.

Sepal is a method that simulates a diffusion process to quantify spatial structure in tissue. See [Anderson and Lundeberg, 2021] for reference.

Parameters:
Return type:

DataFrame | None

Returns:

If copy = True, returns a pandas.DataFrame with the sepal scores.

Otherwise, modifies the adata with the following key:

Notes

If some genes in anndata.AnnData.uns ['sepal_score'] are NaN, consider re-running the function with increased n_iter.