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) – IfTrue, use optimal transportot.emd()to calculate mapping. Otherwise, use Scipy’smin_weight_full_bipartite_matching()algorithm.
- Return type
ndarray- Returns
Mapping of spots using a spatial heuristic.