scverse / scverse/scanpy

> [Bug] `rank_genes_groups` after `normalize_pearson_residuals`

Open
#2,501 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area – Differential Expression
Dominant language
Python
Stars
2.6k
Forks
779
Avg merge
1d 4h
Merged PRs (30d)
27

Description

Hi, @jlause

There's a issue when using normalize_pearson_residuals, it seems that we can't calculated the log2foldchange in rank_genes_groups will be failed. That's because np.expm1 can't restore the adata.X after normalize_pearson_residuals. Could you solve this issue that completed the downstream currently?

image

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 reproducing the failure with normalize_pearson_residuals followed by rank_genes_groups, then read both entry points to trace how log2foldchange is calculated. Done means this downstream sequence completes successfully and produces log2foldchange values after Pearson residual normalization.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.