scverse / scverse/scanpy

An advice for color palette in adata.uns

Open
#2,632 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.6k
Forks
779
Avg merge
1d 4h
Merged PRs (30d)
27

Description

What kind of feature would you like to request?

Additional function parameters / changed functionality / changed defaults?

Please describe your wishes

As we all know, the color palette is a list stored in uns[f'{values_key}_colors']. I wonder if the color palette can be set to dictionary by default. This makes it easy to unify colors across different adata objects.

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 how adata.uns[f'{values_key}_colors'] is written and read. Define how a dictionary palette would represent colors and remain compatible across different adata objects. Done means the default palette representation supports consistent color unification without breaking existing usage.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.