scverse / scverse/squidpy

Add parameter to `sliding_window` to end up with windows of (approximately) same number of cells

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

Nobody has claimed this yet.

enhancement :sparkles: feature graph :spider_web: squidpy2.0
Dominant language
Python
Stars
598
Forks
121
Avg merge
3d 11h
Merged PRs (30d)
3

Description

Could add a heuristic that tries to optimise the number of cells per window (and unassigned cells) so that on average, most windows have a number of cells assigned that is as close as possible to what the user specified.

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 locating the existing sliding_window entry point and reading how it currently assigns cells to windows. Define the new parameter's behavior, then verify that the resulting windows have approximately balanced cell counts and that unassigned cells are handled as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.