voyagerpy.spatial.set_default_graph#

voyagerpy.spatial.set_default_graph(adata: AnnData, graph_name: str) None#

Set the default graph for spatial operations.

Parameters:
  • adata (AnnData) – The AnnData object to set the default graph for.

  • graph_name (str) – The name of the graph to set as default. Should be a key in adata.obsp.