scverse / scverse/scanpy

PAGA plot resets colors

Open
#1,972 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of scanpy.
  • (optional) I have confirmed this bug exists on the master branch of scanpy.
    Version: '1.8.0.dev70+g560bd5d3'

I set custom colors for my obs col in uns, but when I use pl.paga or pl.paga_compare a different set of colours is used and the uns is changed.

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

Reproduce the behavior with pl.paga and pl.paga_compare using custom colors stored for an obs column in uns. First verify whether the bug still occurs on the latest version or master branch, then trace how these plotting entry points read and update uns. Done means both plots retain the custom colors and do not modify the stored values.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics, data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.