Skip to content

benchmarks: phospho vs Comet, the fragment-index numbers, and the standard sets re-verified on merged main - #83

Merged
ypriverol merged 1 commit into
mainfrom
docs/benchmark-numbers-2026-09-10
Sep 10, 2026
Merged

ypriverol merged 1 commit into
mainfrom
docs/benchmark-numbers-2026-09-10

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

#75 was squash-merged before the Comet head-to-head and the fragment-ion index were measured, so main still described the phospho benchmark on the enumeration path only and quoted no Comet comparison. This brings the documentation level with what is on main today.

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:

engine / path wall (32 threads) PSMs @1% true FDP phospho-bearing MaxQuant covered
Comet 2025.01 226 s 33,888–34,025 1.73–1.78% 23,888 77.9%
andes, fragment index 164 s 37,258–37,280 1.15–1.16% 26,883 82.5%
andes, enumeration path 5,954 s 36,817–36,922 1.22–1.32% 26,629 82.1%

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 .raw directly, 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 Arc refcount 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-index help 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 andes 94 passed, and --help renders the corrected text. Every number here is from a run recorded in this repository's issues (#70, #72, #76, #77) or measured on merged main.

…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.
@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 8dd6831d-7da6-4ec6-b60c-bada713614e6

📥 Commits

Reviewing files that changed from the base of the PR and between 9ed6bc0 and 7b21908.

📒 Files selected for processing (4)
  • DOCS.md
  • crates/andes/src/bin/andes/cli.rs
  • docs/benchmarks/README.md
  • docs/plans/2026-09-03-comet-msfragger-competitive-plan.md

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Refresh phospho and fragment-index benchmark results

📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Replaces stale phospho timings with merged-main fragment-index and Comet comparisons.
• Re-verifies standard benchmark counts and clarifies cross-machine timing limitations.
• Records optimization history, measured design constraints, and remaining benchmark gaps.
Diagram

graph TD
  A["Merged Main"] --> B["Benchmark Runs"] --> C["Benchmark README"]
  B --> D["Competitive Plan"]
  B --> E["CLI Reference"]
  B --> F["CLI Help"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Machine-readable benchmark manifest
  • ➕ Provides one source of truth for repeated benchmark values.
  • ➕ Could generate tables and detect inconsistent timing claims automatically.
  • ➖ Requires new generation and validation infrastructure.
  • ➖ Narrative findings, caveats, and optimization history would still need manual maintenance.

Recommendation: The PR's direct documentation synchronization is appropriate for this correction because the benchmark context is largely narrative and spans different audiences. If these figures change frequently, a follow-up machine-readable manifest could prevent future drift without blocking this update.

Files changed (4) +121 / -12

Documentation (4) +121 / -12
DOCS.mdCorrect fragment-index timing and add Comet context +1/-1

Correct fragment-index timing and add Comet context

• Changes the documented phospho runtime from the development figure of 169 seconds to the production-default measurement of 164 seconds. Adds Comet's 226-second runtime and 9.6% PSM deficit for context.

DOCS.md

cli.rsSynchronize fragment-index CLI help timing +1/-1

Synchronize fragment-index CLI help timing

• Updates the '--fragment-index' argument documentation to report the verified 164-second phospho benchmark instead of 169 seconds. Runtime behavior is unchanged.

crates/andes/src/bin/andes/cli.rs

README.mdPublish merged-main phospho and standard-set benchmarks +69/-10

Publish merged-main phospho and standard-set benchmarks

• Makes the fragment-ion index the primary phospho result, adds same-node and small-machine Comet comparisons, and preserves enumeration results for attribution. It also records exact standard-set re-verification, reproduction timing, index limitations, and the measured fucose-rich tissue gap.

docs/benchmarks/README.md

2026-09-03-comet-msfragger-competitive-plan.mdDocument completed PTM fragment-index workstream +50/-0

Document completed PTM fragment-index workstream

• Adds Workstream C with the measured progression from memory failures to the 164-second pruned index. Records design constraints, rejected follow-ups, comparison results, and remaining fragment-index limitations.

docs/plans/2026-09-03-comet-msfragger-competitive-plan.md

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 📜 Skill insights (0)

Grey Divider


Action required

1. The reproducer can run the wrong path 🐞 Bug ≡ Correctness
Description
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.
Code

docs/benchmarks/README.md[R679-681]

+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
Evidence
The reproducer omits both index flags while claiming the fragment index necessarily activates.
Candidate-index auto selects RAM whenever its estimate fits 60% of currently available memory, and
fragment-index auto then remains disabled unless mmap was selected.

docs/benchmarks/README.md[667-682]
crates/andes/src/bin/andes/search.rs[615-657]
crates/andes/src/bin/andes/search.rs[664-684]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## 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



Remediation recommended

2. Comet's result gap is overstated 🐞 Bug ≡ Correctness
Description
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.
Code

DOCS.md[95]

+| `--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)* |
Evidence
The detailed table gives Comet 33,888–34,025 results and andes 37,258–37,280, then correctly
describes andes as 9.6% higher. Dividing the gap by the larger andes count instead yields only an
approximately 8.7–9.1% Comet deficit.

DOCS.md[95-95]
docs/benchmarks/README.md[634-640]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## 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


3. The index results omit two seeds 🐞 Bug ≡ Correctness
Description
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.
Code

docs/benchmarks/README.md[625]

+| 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** |
Evidence
The table header labels its result column as seeds 1–5, and the reproduction command also requests
seeds 1–5. The added fragment-index row lists only three counts, while each neighboring enumeration
row lists five.

docs/benchmarks/README.md[623-627]
docs/benchmarks/README.md[671-674]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## 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


Grey Divider

Context sources
Review mode: ⚖️ Balanced: Although mostly documentation, the PR changes a runtime CLI help string and presents numerous benchmark claims and cross-document consistency updates that warrant a careful single-pass review.

Grey Divider

Tip of the day
💡 Did you know, you can turn these tips off under Display preferences

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread DOCS.md
|---|---|---|---|---|
| `--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)* |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

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

Comment thread docs/benchmarks/README.md
Comment on lines +679 to +681
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

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

Comment thread docs/benchmarks/README.md
|---|---|---:|---:|---:|---:|---:|
| 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** |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remediation recommended

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

@ypriverol
ypriverol added this pull request to stack #87 September 10, 2026 11:01
@ypriverol
ypriverol merged commit 281191b into main Sep 10, 2026
5 checks passed
@ypriverol
ypriverol deleted the docs/benchmark-numbers-2026-09-10 branch October 15, 2026 16:05
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