Skip to content

Reuse log-factorials in q-value correction - #243

Open
rpinho wants to merge 2 commits into
levitsky:masterfrom
rpinho:perf-qvalues-factorial-cache
Open

rpinho wants to merge 2 commits into
levitsky:masterfrom
rpinho:perf-qvalues-factorial-cache

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The finite-sample correction recomputes the same log-factorials for each rank. Calling qvalues with correction=2 on 25,000 SCoPE2 matches took about four seconds before the change. Build a table of log-factorials once for the target and decoy flags and reuse its entries across ranks. The test compares q-values with values calculated from the truncated distribution, and the benchmark compares every output byte.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

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