scverse / scanpy

Single-cell analysis in Python. Scales to >1M cells.
https://scanpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.87k stars 594 forks source link

> [Bug] `rank_genes_groups` after `normalize_pearson_residuals` #2501

Open Starlitnightly opened 1 year ago

Starlitnightly commented 1 year ago

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
kcArtemis commented 10 months ago

I would like to work on this issue.