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(). Overridingpostprocessors()andcombine()is optional. Postprocessors can be provided directly via__init__or by overridingpostprocessors().Methods
build(coords)build_graph(coords)Construct raw adjacency and distance matrices.
combine(mats, ixs)Combine per-library results into a single graph.
Return post-build processing steps for
(adj, dst).Parameters stored in
anndata.AnnData.unsafter graph construction.