squidpy.gr.neighbors.GraphBuilder

class squidpy.gr.neighbors.GraphBuilder(transform=None, set_diag=False, percentile=None, postprocessors=())[source]

Base class for spatial graph construction strategies.

Custom builders must implement build_graph(). Overriding postprocessors() and combine() is optional. Postprocessors can be provided directly via __init__ or by overriding postprocessors().

Methods

build(coords)

build_graph(coords)

Construct raw adjacency and distance matrices.

combine(mats, ixs)

Combine per-library results into a single graph.

postprocessors()

Return post-build processing steps for (adj, dst).

uns_params()

Parameters stored in anndata.AnnData.uns after graph construction.