Repository navigation
benchmarks: phospho vs Comet, the fragment-index numbers, and the standard sets re-verified on merged main - #83
Conversation
…main #75 was squash-merged before the Comet head-to-head and the fragment-ion index were measured, so main still carried only the enumeration path. This adds, all measured on the same node and settings: - the phospho row and section 2b: fragment index 164 s / 37,258-37,280 PSMs @1% / 1.15-1.16% FDP / 26,883 phospho-bearing, against Comet 2025.01 at 226 s / 33,888-34,025 / 1.73-1.78% / 23,888, and the enumeration path at 5,954 s; - the same comparison on an 8-core 31 GB machine (1,046 s vs Comet's 1,126 s; 876 s reading the .raw directly, which skips the 577 s conversion Comet needs); - the standard sets re-verified on merged main: 38,394 / 12,281 / 15,838, reproduced exactly, with a note that wall times are not comparable across machines; - workstream C in the competitive plan, with what each step bought and the measured design facts (peptidoforms per Da, slice bounding, the pre-pass exclusion, the tolerance trap); - known gaps: the index is measured on one dataset and does not reproduce multiplicity copies; issue #79's measured decomposition on fucose-rich tissue. Also corrects the --fragment-index help and DOCS row from the 169 s development figure to the 164 s production-defaults measurement.
|
Warning Review limit reachedNext included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
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 |
PR Summary by QodoRefresh phospho and fragment-index benchmark results
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1. The reproducer can run the wrong path
|
| |---|---|---|---|---| | ||
| | `--precursor-cal` | enum | `auto` | Precursor-mass calibration: `off`, `auto`, or `on`. `auto`/`on` run a pre-pass that learns a systematic ppm shift from confident PSMs, then tighten the precursor tolerance for the main search; `auto` (the default) skips the correction when the sample is too small to be reliable, so it is safe to leave on. No effect on native `.raw` or `.d` input — calibration is not yet supported for those formats, so it is skipped (with a warning) and the search proceeds uncalibrated. | Java `-precursorCal auto\|on\|off` | | ||
| | `--fragment-index` | enum | `auto` | Fragment-ion index for out-of-core searches: `auto` (default) uses it whenever the candidate index does not fit in RAM (`--candidate-index` resolves to `mmap`), `on` forces it in out-of-core mode, `off` keeps per-spectrum enumeration. Spectra are scored in precursor-mass order against the peptidoforms their fragment peaks vote for (top 100 by matched b/y ions, at least 3). Measured on a phospho file: 169 s instead of 5,954 s at +1% PSMs and lower entrapment FDP; searches that fit in RAM are untouched. Not used with `--chimeric`, `--refine`, or `--glyco`. | *(no Java equivalent)* | | ||
| | `--fragment-index` | enum | `auto` | Fragment-ion index for out-of-core searches: `auto` (default) uses it whenever the candidate index does not fit in RAM (`--candidate-index` resolves to `mmap`), `on` forces it in out-of-core mode, `off` keeps per-spectrum enumeration. Spectra are scored in precursor-mass order against the peptidoforms their fragment peaks vote for (top 100 by matched b/y ions, at least 3). Measured on a phospho file: 164 s instead of 5,954 s at +1% PSMs and lower entrapment FDP (Comet 2025.01 on the same node and settings: 226 s, 9.6% fewer PSMs); searches that fit in RAM are untouched. Not used with `--chimeric`, `--refine`, or `--glyco`. | *(no Java equivalent)* | |
There was a problem hiding this comment.
2. Comet's result gap is overstated 🐞 Bug ≡ Correctness
The updated --fragment-index description calls Comet's 33,888–34,025 results “9.6% fewer” than andes' 37,258–37,280 results, but that direction uses the wrong denominator. The documented values make andes approximately 9.6% higher than Comet, while Comet is only approximately 8.7–9.1% lower than andes.
Agent Prompt
## Issue description
The Comet comparison reverses a 9.6% increase into a 9.6% decrease, even though percentage changes use different denominators in those directions.
## Fix Focus Areas
- DOCS.md[95-95]
- docs/benchmarks/README.md[634-640]
## Recommended Fix
Change the parenthetical to say that andes reports 9.6% more PSMs than Comet, matching the detailed benchmark comparison.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| delta in the peptide string. Expect **~3 min on 32 cores and ~17 min on 8 cores**; the | ||
| fragment-ion index turns itself on because this search does not fit in RAM. Add | ||
| `--fragment-index off` to reproduce the enumeration rows instead, which take ~100 min and |
There was a problem hiding this comment.
1. The reproducer can run the wrong path 🐞 Bug ≡ Correctness
The reproduction command leaves both candidate-index and fragment-index selection on auto, although auto chooses the fragment index only when the estimated candidate index exceeds the current host's memory budget. On a sufficiently large or differently constrained host, the same command selects in-memory enumeration instead and cannot reproduce the documented fragment-index wall time or output path.
Agent Prompt
## Issue description
The benchmark reproducer relies on memory-dependent automatic selection, so it does not guarantee the fragment-index or out-of-core enumeration arm being reproduced.
## Fix Focus Areas
- docs/benchmarks/README.md[667-682]
## Recommended Fix
Provide explicit commands for both arms: use `--candidate-index mmap --fragment-index on` for the fragment-index result and `--candidate-index mmap --fragment-index off` for the enumeration result.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| |---|---|---:|---:|---:|---:|---:| | ||
| | default | `hcd_qexactive_tryp` | 36,817 · 36,872 · 36,922 · 36,862 · 36,865 | 225–244 | 1.22–1.32% | 26,629 | 5,954 s | | ||
| | `--protocol phospho` | `hcd_qexactive_tryp_phosphorylation` | 36,835 · 36,819 · 36,826 · 36,780 · 36,884 | 202–210 | 1.10–1.14% | 26,767 | 6,031 s | | ||
| | default, **fragment index** (today's default) | `hcd_qexactive_tryp` | 37,280 · 37,271 · 37,258 | 214–216 | **1.15–1.16%** | **26,883** | **164 s** | |
There was a problem hiding this comment.
3. The index results omit two seeds 🐞 Bug ≡ Correctness
The fragment-index row is placed under a seeds 1–5 heading but contains only three result counts, unlike both enumeration rows' five counts. Following the stated five-seed Percolator command therefore cannot account for the exact values presented for the newly documented index arm.
Agent Prompt
## Issue description
The fragment-index row claims five-seed coverage while reporting only three seed results, making the benchmark record incomplete and its exact seed range unclear.
## Fix Focus Areas
- docs/benchmarks/README.md[623-627]
- docs/benchmarks/README.md[671-674]
## Recommended Fix
Run the two missing Percolator seeds and add their counts to the fragment-index row, or explicitly label the row with the three exact seeds actually measured and adjust the reproduction instruction accordingly.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
#75 was squash-merged before the Comet head-to-head and the fragment-ion index were measured, so
mainstill described the phospho benchmark on the enumeration path only and quoted no Comet comparison. This brings the documentation level with what is onmaintoday.What changes
The phospho row and §2b now lead with the path a user actually gets (the fragment-ion index is the default whenever a search goes out-of-core) and keep the enumeration rows for attribution:
Plus the same comparison on an 8-core, 31 GB machine — Comet 1,126 s against andes 1,046 s from mzML and 876 s reading the
.rawdirectly, which also skips the 577 s conversion Comet needs — and the note that the index picks narrower slices there (77 Da, 15.6 GB) rather than using more memory.The standard sets are re-verified on merged
main: 38,394 / 12,281 / 15,838, reproduced exactly. Those searches fit in RAM so none of the out-of-core work is on their path. The block now also says plainly that wall times are machine-specific and not comparable across sessions, with the interleaved A/B that shows no change against the commit before the stack.Workstream C is added to the competitive plan, including what each step bought (memory defects → 40 h, base-record cache, the
Arcrefcount contention, first index, pruned index → 164 s) and the design facts that were measured rather than assumed: peptidoforms per Da on this space, why slices are bounded by mass span, why the calibration pre-pass must not use the index, and the hardcoded 0.5 Da tolerance trap. The two follow-ups that were measured and dropped are recorded so they are not retried.Known gaps gain two entries: the index is measured on one dataset and does not reproduce the enumeration path's multiplicity copies; and issue #79's measured decomposition on fucose-rich tissue.
Consistency fix: the
--fragment-indexhelp and its DOCS row quoted 169 s from development; both now say 164 s, the production-defaults measurement, and the DOCS row names Comet's 226 s for context.Verification
Documentation plus one help string.
cargo build --release,cargo test -p andes94 passed, and--helprenders the corrected text. Every number here is from a run recorded in this repository's issues (#70, #72, #76, #77) or measured on mergedmain.