Open xiang11bei opened 7 months ago
This is an issue with the incorrect use of Scanpy and pandas. You need to make sure that variable and observation names are unique and match correctly between objects (eg adata_vis and inf_aver). This could also be an issue with package version mismatch - but this is not specific to cell2location in any way.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Minimal code sample (that we can run without your data, using public data)
When a scRNA-seq integrate with spatial transcriptome using common HVGs, Anadata containing only intersecting genes cannot be retrieved by idling data my ST data is accquired from the public dataset (https://www.10xgenomics.com/datasets/visium-hd-cytassist-gene-expression-libraries-of-human-crc)