loki.preprocess.get_spot_diameter_in_pixels
- loki.preprocess.get_spot_diameter_in_pixels(adata, library_id=None)
Retrieves the spot diameter in pixels from the AnnData object’s scalefactors for a given library ID. If no library ID is provided, the function will automatically retrieve the first available library ID.
- Parameters:
adata – AnnData object containing spatial data and scalefactors in adata.uns[‘spatial’].
library_id – The library ID for which the spot diameter is to be retrieved. If not provided, defaults to the first available ID.
- Returns:
The spot diameter in full resolution pixels, or None if not found.