scverse / scverse/spatialdata

Aggregation case: a shape in `values` intersects two shapes in `by`

Open
#211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

method: aggregation 🔢
Dominant language
Python
Stars
394
Forks
95
Avg merge
4d 3h
Merged PRs (30d)
7

Description

Handle the case in which a shape in values intersects two (or more) shapes in by. This would likely lead to two rows in the resulting table, both with the same instance index.

A real dataset when this happens is the Xenium + Visium, where some Xenium cells intersects 2 Visium circles.

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.

Research direction

No file or test entry point is named. Start by locating the aggregation operation and tracing how shapes in values are matched to shapes in by; reproduce the Xenium + Visium case where one value shape intersects multiple by shapes. Done means the resulting table represents those intersections with the expected repeated instance index.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics, data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.