bento.tl.register_shape_feature

bento.tl.register_shape_feature(name, func) None

Register a new shape feature calculation function.

Parameters:
  • name (str) – Name to register the feature as

  • func (Callable[[SpatialData, str], None]) – Function that takes SpatialData and shape_key as arguments and modifies SpatialData in-place

Returns:

Updates global shape_features dictionary

Return type:

None