Closed sps-01 closed 1 year ago
Hi @sps-01 , can you please check whether the spatial coordinates stored adata.obsm[...]
is a numpy.array
?
Hi, yes, we checked it and it is.
Thanks for checking this. This means that the scalefactor
is somehow wrong, will investigate.
I can't reproduce it with that data, here are my versions (running scanpy.loggings.print_versions()
and print(squidpy.__full_version__)
:
squidpy='1.2.3+g3d19b33.d20221202'
Given that this error happens both in scanpy/squidpy
, I'd suspect some issue with numpy
or some platform-specific issue (I tried it locally on Debian, will try on Mac later).
I had the same issue.
This line solved it for me adata.obsm['spatial'] = adata.obsm['spatial'].astype(np.float)
another points to check would possibly be the scalefactors
in adata.uns
?
Perfect, thanks a lot for all help. This line (adata.obsm['spatial'] = adata.obsm['spatial'].astype(np.float)
) works for me as well!
Description
Hi, Whenever we are trying in our FFPE Visium data to visualize cluster annotation in spatial context with squidpy.pl.spatial_scatter() an error occurs stating that it "can't multiply sequence by non-int of type 'float'"
Minimal reproducible example
We get this following error: by using this command:
We are getting the same error by using the corresponding scanpy command:
You can reproduce the error by downloading the example FFPE Visium data set of 10X 10X Genomics example data set of FFPE Visium
Version
1.2.2.