tirank.Imageprocessing.scale_coordinate
- tirank.Imageprocessing.scale_coordinate(data)[source]
Scales ST spot coordinates to match the high-resolution image.
This function reads the scale factor from the AnnData object and applies it to the spatial coordinates, adding the results to data.obs as ‘imagecol’ and ‘imagerow’.
- Parameters:
data (anndata.AnnData) – The AnnData object containing spatial info.
- Returns:
The AnnData object, modified in place.
- Return type:
anndata.AnnData