scverse / scverse/scanpy

negative values after score_genes with log1P or counts layer

Open
#3,297 1 comment 0 reactions 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

Hi,

I got negative values after run score_genes with log1P or counts layer like below:
using layers['counts']:
Image

using layers['counts']:
Image

Is this reasonable?

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

The issue names score_genes and the log1P/counts layers, but no file or test. Start by reproducing the reported negative values for both layer choices and trace score_genes. Done means establishing whether the values are expected and recording the confirmed behavior.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.