nichepca.graph_construction.delaunay_graph#
- nichepca.graph_construction.delaunay_graph(adata, obsm_key='spatial', add_self_loops=False, remove_long_links_=True, verbose=True, return_graph=False)#
Construct a delaunay graph.
- Parameters:
adata (
AnnData) – Annotated data object.obsm_key (
str(default:'spatial')) – Key inobsmattribute where the spatial data is stored.add_self_loops (
bool(default:False)) – Whether to add self-loops to the graph.remove_long_links (bool, default True) – Whether to remove long links (edges).
verbose (
bool(default:True)) – Whether to print graph statistics.return_graph (bool, default False) – Whether to return the graph instead of storing it in
adata.
- Returns:
None