Skip to content

Add min_cells to Mixscape instead of reusing min_de_genes - #873

Merged
Zethson merged 2 commits into
mainfrom
mixscape-min-cells
Nov 2, 2026
Merged

Zethson merged 2 commits into
mainfrom
mixscape-min-cells

Conversation

@Zethson

@Zethson Zethson commented Nov 2, 2026

Copy link
Copy Markdown
Member

Mirrors scverse/pertpy#1189.
Mixscape.mixscape gets a min_cells parameter for the minimum number of cells that must stay classified as perturbed, which min_de_genes silently controlled before, matching pertpy and Seurat's fix in satijalab/seurat#10299.

Mixscape collapsed a target gene to NP when fewer than `min_de_genes` cells
stayed classified as perturbed, a typo inherited from Seurat's RunMixscape
and fixed there in satijalab/seurat#10299 and in pertpy in scverse/pertpy#1189.
The cell threshold is now its own `min_cells` parameter, default 5 like Seurat,
so results only change for calls that set a non-default `min_de_genes`.
@Zethson
Zethson merged commit 36cadd0 into main Nov 2, 2026
22 of 26 checks passed
@Zethson
Zethson deleted the mixscape-min-cells branch November 2, 2026 10:43
@codecov-commenter

codecov-commenter commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.83%. Comparing base (90ccd3b) to head (ebda800).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #873      +/-   ##
==========================================
+ Coverage   90.80%   90.83%   +0.02%     
==========================================
  Files         129      129              
  Lines       13530    13530              
==========================================
+ Hits        12286    12290       +4     
+ Misses       1244     1240       -4     
Files with missing lines Coverage Δ
src/rapids_singlecell/pertpy_gpu/_mixscape.py 92.13% <100.00%> (+1.74%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants