scverse / scverse/scanpy

paga inconsistency with plotting functions

Open
#1,274 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Functions like sc.tl.umap support initialization with group centroid coordinates derived from sc.pl.paga. Unfortunately pl.paga only returns 2D coordinates, whereas embedding support n_components >2. I found that if init_pos is set to paga, the number of components is always set to 2. I understand the behavior, but wouldn’t it be more consistent if paga could be return arbitrary sized coordinates?

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

Trace the sc.pl.paga coordinate generation and sc.tl.umap handling of init_pos and n_components. Check where PAGA coordinates are constrained to two dimensions and how UMAP consumes them. Done means PAGA can provide coordinates matching the requested dimensionality and initialization no longer forces n_components to 2; add or update focused tests for this behavior.

Written by the indexing model from the issue text.

Assessment

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