Graph

Graph#

gr.aggregate_neighbors(adata, n_layers[, ...])

Aggregate the features from each neighborhood layers and concatenate them, and optionally with the cells' features, into a single vector.

gr.connected_components(adata[, ...])

Compute the connected components of the spatial graph.

gr.diff_nhood_enrichment(adata, cluster_key, ...)

Differential neighborhood enrichment between conditions.

gr.enrichment(adata, group_key, label_key[, ...])

Compute the enrichment of label_key in group_key.

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

A modified version of squidpy's neighborhood enrichment.

gr.remove_long_links(adata[, ...])

Remove links between cells at a distance bigger than a certain percentile of all positive distances.

gr.remove_intra_cluster_links(adata, cluster_key)

Remove links between cells that belong to the same cluster.