SpatialDM icon indicating copy to clipboard operation
SpatialDM copied to clipboard

reading in h5ad file

Open anamaria-uofg opened this issue 2 years ago • 1 comments

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.

anamaria-uofg avatar Jul 13 '23 11:07 anamaria-uofg

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.

leeyoyohku avatar Sep 17 '23 13:09 leeyoyohku