scverse / scverse/scirpy

Refactoring group_abundance.

Open
#232 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking-change
Dominant language
Python
Stars
265
Forks
50
Avg merge
9d 9h
Merged PRs (30d)
4

Description

The current group_abundance function is relatively slow.
Also I don't like the name too much.

barplot or stackedbarplot is better. x, y and color are better argument names.

Maybe this could even be merged upstream into scanpy.

See also:
https://sc-dandelion.readthedocs.io/en/master/api.html#module-dandelion.plotting

  • sort plot segements (#186)
  • get colors from anndata
  • get variables not only from obs, but also airr, X, obsm etc.

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 current group_abundance entry point and reading the linked dandelion plotting API, then review issue #186 for the sorting dependency. Confirm the intended scope for performance, naming, color sourcing, and variable sources; done should be defined by agreed behavior and tests for the selected changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Refactor
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.