paste3.helper.norm_and_center_coordinates

paste3.helper.norm_and_center_coordinates(spatial_dist)[source]

Normalizes and centers spatial coordinates by subtracting the mean and scaling by the minimum pairwise distance

Parameters:

spatial_dist (np.ndarray) -- Spot distance matrix of a slice.

Returns:

Normalized and centered spatial coordinates.

Return type:

np.ndarray