troutpy.tl.communication_strength

troutpy.tl.communication_strength#

troutpy.tl.communication_strength(sdata, source_layer='source_score', target_layer='target_score', copy=False)#

Compute a 3D interaction strength matrix from the source table in SpatialData.

Parameters:
  • sdata (SpatialData) – SpatialData object with a ‘tables’ attribute.

  • source_layer (str (default: 'source_score')) – Key to access the source table within sdata.tables.

Returns:

sdata SpatialData object with computed interactions