src.paste.match_spots_using_spatial_heuristic

match_spots_using_spatial_heuristic(X, Y, use_ot=True)[source]

Calculates and returns a mapping of spots using a spatial heuristic.

Parameters
  • X (array-like, optional) – Coordinates for spots X.

  • Y (array-like, optional) – Coordinates for spots Y.

  • use_ot (bool) – If True, use optimal transport ot.emd() to calculate mapping. Otherwise, use Scipy’s min_weight_full_bipartite_matching() algorithm.

Return type

ndarray

Returns

Mapping of spots using a spatial heuristic.