scverse / scverse/scanpy

Allow selection of layer/ raw for methods that use X

Open
#828 2 comments 1 reaction 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

I think this could use a consolidated effort for consistent behavior. Especially since testing whether it works will probably have some common patterns. In some cases Raw will need to be an option.

I like the convention of having the arguments use_raw, layers, and (when appropriate) obsm_key/ varm_key. With these at most one of the values can be not None, and if all are None (the default) X is used.

An alternative convention is use_rep: Optional[str]. I’m less a fan of this due to potential key collisions.

Some relevant issues/ prs: #826 #801 #730

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 reviewing the related issues and pull requests #826, #801, and #730 to identify the affected methods and existing decisions. Define a consistent convention for selecting X, raw data, layers, and applicable obsm_key or varm_key values, then add shared tests for the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.