bento.tl.bounds

bento.tl.bounds(sdata, shape_key, recompute=False) None

Compute bounding box coordinates for each shape.

Parameters:
  • sdata (SpatialData) – Input SpatialData object

  • shape_key (str) – Key in sdata.shapes containing shape geometries

  • recompute (bool, default False) – Whether to force recomputation if feature exists

Returns:

Updates sdata.shapes[shape_key] with: - ‘{shape_key}_minx’: x-axis lower bound - ‘{shape_key}_miny’: y-axis lower bound - ‘{shape_key}_maxx’: x-axis upper bound - ‘{shape_key}_maxy’: y-axis upper bound

Return type:

None