StatBiomed / SpatialDM

Spatial direct messaging detected by bivariate Moran
https://spatialdm.readthedocs.io
Apache License 2.0
24 stars 5 forks source link

reading in h5ad file #23

Open anamaria-uofg opened 1 year ago

anamaria-uofg commented 1 year ago

Hi. I'm trying to read in a h5ad file which was generated from seurat R package. I am using this function: adata = sdm.read_spatialdm_h5ad(filename), but I get KeyError: 'geneInter'. Is this not the right way to read in the data? Thanks.

leeyoyohku commented 1 year ago

Hey @anamaria-uofg . Thanks for using our package. Please try reading the h5ad file using scanpy and then run spatialdm as described in our tutorials. sdm.read_spatialdm_h5ad could be useful to read intermediate spatialdm objects.