pyXenium.contour.summarize_contour_topology#

summarize_contour_topology(sdata, *, contour_key, contour_query=None, groupby=None, boundary_tolerance=1.0, min_shared_boundary=0.0, enclosure_min_fraction=0.95, histoseg_root=None)#

Summarize contour boundary-neighbor and enclosure relationships.

This is a thin pyXenium wrapper around HistoSeg’s pure-geometry topology engine. It reconstructs one Shapely geometry per contour from sdata.shapes[contour_key] and returns plain pandas tables.

Parameters:
Return type:

dict[str, DataFrame]