Graph gr

Graph gr#

gr.mask_graph(sdata, *, table_key, polygon_mask)

Mask the graph based on a polygon mask.

gr.nhood_enrichment(adata, *, cluster_key[, ...])

Compute neighborhood enrichment by permutation test.

gr.co_occurrence(adata, *, cluster_key[, ...])

Compute co-occurrence probability of clusters.

gr.centrality_scores(adata, *, cluster_key)

Compute centrality scores per cluster or cell type.

gr.interaction_matrix(adata, *, cluster_key)

Compute interaction matrix for clusters.

gr.ripley(adata, *, cluster_key[, mode, ...])

Calculate various Ripley's statistics for point processes.

gr.ligrec(adata, *, cluster_key[, ...])

Perform the permutation test as described in [Efremova et al., 2020].

gr.spatial_autocorr(adata, *[, ...])

Calculate Global Autocorrelation Statistic (Moran’s I or Geary's C).

gr.sepal(adata, *, max_neighs[, genes, ...])

Identify spatially variable genes with Sepal.

The result tuples SpatialNeighborsResult and NhoodEnrichmentResult are documented under Types and stay importable from squidpy.gr.