Closed jil100 closed 1 year ago
Hi @jil100
as you note with your second example, this is an issue with scanpy spatial plotting (related to scale_factor
) rather than with cell2location. Can you plot the expression of genes? If you get the same error with gene plotting I would suggest creating an issue with scanpy package.
@vitkl Thank you for your quick response. It was indeed an issue with scanpy spatial plotting.
I followed the latest tutorial (https://cell2location.readthedocs.io/en/latest/notebooks/cell2location_tutorial.html) and was able to reproduce the results successfully. When I used my own data with multiple slides, I followed the tutorial (https://cell2location.readthedocs.io/en/latest/notebooks/cell2location_short_demo.html#1.-Loading-Visium-data) to load the visium data, then proceeded with the latest tutorial. An error occurred as follows:
The same error occurred when I tried to plot cell abundance in spatial coordinates: