moscot.problems.space.MappingProblem.spatial_correspondence

MappingProblem.spatial_correspondence(interval=10, max_dist=None, attr=None)

Compute structural correspondence between spatial and molecular distances.

Parameters:
Return type:

DataFrame

Returns:

: A dataframe with the following columns:

  • 'features_distance' - average spatial distance.

  • 'index_interval' - index of the interval.

  • 'value_interval' - average expression distance.

  • '{batch_key}' key of the batch (slide).