JinmiaoChenLab / SpatialGlue

SpatialGlue is a novel deep learning methods for spatial multi-omics data integration.
GNU Affero General Public License v3.0
35 stars 5 forks source link

obs and obsm in input h5ad Data #9

Open ibimanji opened 3 months ago

ibimanji commented 3 months ago

I found that your input h5ad data has coordinates in both obs and obsm. Are they both necessary? What is the difference between the x, y coordinates in obs and obsm? I think the cell location is described in obs, so what does the location in obsm mean?

longyahui commented 3 months ago

Hi,

Thanks for your questions.

The coordinates in obs and obsm are the same and are necessary, as our model is a graph-based method that considers adjacent relationships between cells to learn cell embeddings. Putting coordinates in obsm is to make graph construction and visualization more convenient. Hope it helps.

Best regards,
Yahui
ibimanji commented 3 months ago

Thank you very much for your response. What I am very confused about is that the input obs and obsm information are not the same. For example, in the tutorial2 you provided, I printed the obs and obsm for both modalities of the Dataset3_Mouse_thymus1 dataset as follows. They don’t appear to be the same. Could you please explain what kind of processing was done? 截屏2024-07-10 13 34 59 截屏2024-07-10 13 34 54 截屏2024-07-10 13 34 47 截屏2024-07-10 13 34 39