scverse / scverse/squidpy

Handling Multiple Cells Sharing the Same Coordinates in Squidpy Neighborhood Analysis

Open
#925 0 comments 0 reactions 1 assignee View on GitHub

@giovp is already working on this.

Since Dec 7, 2024.

Dominant language
Python
Stars
598
Forks
121
Avg merge
3d 11h
Merged PRs (30d)
3

Description

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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.