bento.tl.perimeter¶
- bento.tl.perimeter(sdata, shape_key, recompute=False) None¶
Compute perimeter length of 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}_perimeter’: Perimeter length of each shape
- Return type:
None