scverse / squidpy

Spatial Single Cell Analysis in Python
https://squidpy.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
400 stars 70 forks source link

Should the raw H&E image (.tif) and the image stored in anndata be in the same orientation? #818

Closed ddzhang3 closed 3 weeks ago

ddzhang3 commented 2 months ago
LLehner commented 3 weeks ago

Hi @ddzhang3, thank you for using squidpy. Apologies for the late response.

You are right that ideally orientation should match, but for utilizing both image data and Anndata tables I would highly recommend you to make use of spatialdata. This is a data structure optimized for spatial omics data where you can store both tables, images and annotation of images. It also has functions for image alignment, which can solve orientation issues. Image container in squidpy will be deprecated in the future, instead we will work on compatibility with spatialdata. You can continue to use squidpy for analysis by using the anndata table from the spatialdata object.