squidpy.gr.neighbors.RadiusBuilder
- class squidpy.gr.neighbors.RadiusBuilder(radius, transform=None, set_diag=False, percentile=None)[source]
Build a generic radius-based spatial graph.
Two observations are connected when their Euclidean distance falls within the specified radius. See
spatial_neighbors_radius()for the user-facing API orspatial_neighbors_from_builder()for direct builder usage.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.