Skip to content

Pdex 0.3.0 - #81

Merged
noamteyssier merged 15 commits into
mainfrom
pdex-0.3.0
Jul 14, 2026
Merged

Pdex 0.3.0#81
noamteyssier merged 15 commits into
mainfrom
pdex-0.3.0

Conversation

@noamteyssier

Copy link
Copy Markdown
Collaborator

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request bumps the version to 0.3.0 and introduces a major performance optimization for the "all" mode (1-vs-rest), transforming it into a one-shot computation of O(n_obs) complexity. It achieves this by materializing the expression matrix once, ranking genes once via a new mwu_one_vs_rest kernel, and algebraically deriving each group's "rest" statistics from the global sum. The PR also removes the deprecated fold_change column, guards against floating-point cancellation noise, improves CPU affinity detection, and adds extensive test coverage. The code review feedback correctly identifies a potential division-by-zero issue when the groupby column contains unused categorical levels, offering a robust code suggestion to filter out inactive groups.

Comment thread src/pdex/__init__.py
@noamteyssier
noamteyssier merged commit dcdf982 into main Jul 14, 2026
8 checks passed
@noamteyssier
noamteyssier deleted the pdex-0.3.0 branch July 14, 2026 20:32
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.

1 participant