scverse / scverse/spatialdata

New features of polygon queries

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

Nobody has claimed this yet.

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

Description

@lopollar

Ideas:

  • Allow for making a polygon query where the polygon is inside the SpatialData object, without the need to extract it and transform it. This is particularly useful when a coordinate system would otherwise have to be applied.
  • Allow making an "inverse polygon query", in which we keep all the points except the ones inside the query region.

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

Start by tracing the existing polygon-query path and how polygons relate to the SpatialData object. Done means supporting an in-object polygon without extraction or transformation, plus an inverse query that retains points outside the selected region, with tests covering both behaviors.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.