Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error' single positional indexer is out-of-bounds' when using 'ct.tl.spatial_communication' #29

Open
yao50985098 opened this issue Jan 19, 2024 · 1 comment

Comments

@yao50985098
Copy link

Hello, thank you for your nice work for quantifying spatial signaling.
I got an error when calculating customized pathway using ct.tl.spatial_communication.
I followed the steps in your uploaded code in the breast slide.
截屏2024-01-20 01 21 11

Then :
截屏2024-01-20 01 23 27
截屏2024-01-20 01 23 42
I think I generated the right form, since some pathways were successfully calculated,but more pathways got the error' single positional indexer is out-of-bounds' .
Looking forward to your kind help, thank you!

@izabellaleahz
Copy link

I also had this issue and it turned out to be the fact that there was no overlap between the gene list in the adata and df_ligrec[0] genes. In my case it was the gene names in adata were lowercase instead of uppercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants