scverse / scanpy

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

I have always had a question: do I need to scale my adata before running sc.tl.score_genes? #3080

Closed christophechu closed 4 months ago

christophechu commented 4 months ago

Please make sure these conditions are met

What happened?

I have always had a question: do I need to scale my adata before running sc.tl.score_genes?

Minimal code sample

sc.tl.score_genes_cell_cycle(adata_hvg, layers='scaled', s_genes=s_genes, g2m_genes=g2m_genes)

Error output

No response

Versions

``` ```
flying-sheep commented 4 months ago

Hi, this issue tracker is better suited for bugs or enhancement request. Please ask e.g. here: https://discourse.scverse.org/