spatialHeterogeneity.graph_builder.graphBuilder module

Summary

Functions:

build_graph

Build graph representation for a sample

Reference

build_graph(so, spl, builder_type='knn', mask_key='cellmasks', key_added=None, config=None, inplace=True)[source]

Build graph representation for a sample

Parameters
  • so

  • spl (str) –

  • builder_type – graph type to construct {knn, radius, contact}

  • mask_key – key in so.masks[spl] to use as segmentation masks

  • key_added

  • config – dict containing a dict ‘builder_params’ that specifies the graph construction parameters

  • inplace – whether to return a new SpatialOmics instance

Returns

None or SpatialOmics if inplace = False