scverse / scverse/scanpy

Plotting colors from obsm

Open
#3,277 1 comment 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

What kind of feature would you like to request?

New plotting function: A kind of plot you would like to seein sc.pl?

Please describe your wishes

As far as I'm aware, there's no way to plot columns in obsm directly. This usually leads to copying all columns from obsm into obs and deleting them afterwards again. Being able to plot directly from obsm would make this more straigthforward. I could use MuData for these things but it feels weird to use PCs or similar as an assay in MuData.

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 plotting functions under sc.pl and how they currently resolve values from obs, then inspect how obsm columns are represented. Add direct support for plotting values from obsm without copying them into obs, and verify that the relevant plotting behavior works for PCs or similar obsm columns.

Written by the indexing model from the issue text.

Assessment

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