Repository navigation
search: turn the precursor-calibration pre-pass off by default - #110
Conversation
The pre-pass costs 9-17% of a run and, on the benchmark VM, fired on none of Astral (17 s), TMT (11 s), UPS1 (7 s) or phospho (133 s): its gate needs 150 targets at the raw score's own 1% q among 500 sampled spectra, and before Percolator the raw score does not get there (on high-res, where the pre-pass forces rank scoring, only 2 of 484 pass). Where a 2,000-spectrum sample did make it fire (UPS1), it learned a 0.036 ppm shift and tightened the window to 6.5 ppm, which lost 7.6% of PSMs at the same entrapment count. Default is now off; --precursor-cal auto|on keep the behaviour. On the four benchmark sets the output is unchanged, since the pre-pass never changed it.
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe ChangesPrecursor Calibration Default
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The precursor-calibration pre-pass is now skipped by default as intended. Users can still enable it through YAML or the CLI, so no material merge risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Why
--precursor-cal auto(the default) runs a pre-pass before the main search. It searches a sample of spectra, learns a ppm shift, and tightens the precursor window. On the benchmark VM (8 threads,main7e93bdc1) it never fired, yet it took a large share of every run:Why it never fires. The gate needs 150 targets at 1% q on the raw score among 500 sampled spectra. Before Percolator the raw score doesn't get there:
Where it does fire, it costs identifications. On the same VM, Percolator
-Y, seeds 42/1/2:Change
off;--precursor-cal auto|onkeep the old behaviour.config.example.yamlare updated.Effect on outputs: on all four benchmark sets the pre-pass never changed the search, so outputs are unchanged and every run drops its pre-pass time.
Workspace tests and clippy (
-D warnings) pass.Summary by CodeRabbit
off.auto,.raw, and.dremain unchanged.