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

Handling Multiple Cells Sharing the Same Coordinates in Squidpy Neighborhood Analysis #925

Open
aboutfanfan opened this issue Dec 7, 2024 · 0 comments
Assignees

Comments

@aboutfanfan
Copy link

Hi,

I am working with spatial transcriptomics data (Stereo-seq bin50) that has been processed using CytoSPACE. After aligning with single-cell data, each spatial spot has been decomposed into multiple cells of different types. As a result, multiple cells now share the same xy coordinates, but they represent distinct cell types, creating a new dataset based on cell types rather than the original spatial spots.

I would like to perform neighborhood analysis using Squidpy, but I am unsure how to handle the fact that multiple cells share the same xy coordinates. Here are my main concerns:

  1. Should I add slight random offsets to the shared coordinates to differentiate them spatially?
  2. Is there a way to aggregate these cells or their types for neighborhood analysis (e.g., by creating a weighted matrix or composite types)?
  3. What would be the recommended practice in Squidpy for this scenario to ensure biologically meaningful results?

Any suggestions or best practices would be greatly appreciated!

Thank you for your help!

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