scverse / scverse/scanpy

Compute UMAP from pre-existing distance matrix

Open
#2,157 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area - Topology 🍩 good first issue
Dominant language
Python
Stars
2.6k
Forks
779
Avg merge
1d 4h
Merged PRs (30d)
27

Description

It should be easier to compute a UMAP layout from a pre-existing distance matrix. Currently, we only really support this for pre-existing connectivity matrices.

The missing step here is computing the umap weighted graph from a distance matrix.

The functionality for this largely already exists in the sc.neighbors module in private functions (example: https://github.com/theislab/scanpy/issues/2139#issuecomment-1050914072). We would just need an API.

Previously discussed in: #1561

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 in the private functions in the sc.neighbors module referenced by the issue, then review the discussion in #1561 and the linked comment for existing distance-matrix behavior. Define the public API for producing a UMAP weighted graph from a pre-existing distance matrix and verify that the resulting layout follows the existing connectivity-matrix path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, machine-learning
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.