squidpy.gr.neighbors.GraphBuilderCSR
- class squidpy.gr.neighbors.GraphBuilderCSR(transform=None, set_diag=False, percentile=None, postprocessors=())[source]
CSR-based graph construction strategy.
Specializes
GraphBuilderfor sparse CSR matrix output. Adds SparseEfficiencyWarning suppression and multi-librarylibrary_keycombination. Built-in concrete builders (KNNBuilder,RadiusBuilder,DelaunayBuilder,GridBuilder) inherit from this class and declare their postprocessors explicitly in__init__using the reusable public postprocessor classes.Subclass this (not the generic
GraphBuilder) when implementing a builder that returns CSR matrices.See also
GraphBuilderGeneric builder interface for custom coordinate/matrix types.
KNNBuilderExample of a concrete CSR-based builder.
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.