Skip to content

Percolator: run with target-decoy competition (-Y) - #210

Merged
ypriverol merged 2 commits into
mainfrom
fix/percolator-tdc
Oct 21, 2026
Merged

ypriverol merged 2 commits into
mainfrom
fix/percolator-tdc

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

andes --rescore now runs Percolator with target-decoy competition (-Y).

Why

andes called Percolator without -Y, so Percolator chose the q-value method from the data. Every andes benchmark and calibration figure was measured with -Y: the PSMs at 1%, the entrapment true FDPs, and the Percolator thread benchmark in #208. So the default that shipped was never the one that was validated.

With -Y, the best PSM of each spectrum group (scan and precursor mass) competes, and q-values come from the winners. A scan therefore reports one PSM per precursor mass. Chimeric secondaries are written with their own precursor mass, so they keep their own competition. The QPX join already handles the target rows that -Y leaves out; DOCS describes it as the default now.

No change in identifications is expected relative to the published benchmarks, because they already used -Y. Runs that relied on the previous default will report what the benchmarks measured.

Change

  • Builders: the native and docker argument builders add -Y after --only-psms, unless --percolator-args already has -Y or --post-processing-tdc.
  • DOCS: the flags table and the QPX section.

Tests

  • Argument builders: -Y appears once, a user -Y or --post-processing-tdc is not repeated, and the docker arguments carry it.
  • Suites: clippy is clean; output and andes pass.

andes called Percolator without -Y, leaving the q-value method to
Percolator's choice from the data, while every andes benchmark and
calibration figure was measured with -Y. With -Y the best PSM of each
spectrum (scan and precursor mass) competes and q-values come from the
winners, so a scan reports one PSM per precursor mass; chimeric secondaries,
written with their own precursor mass, keep their own competition. A -Y or
--post-processing-tdc in --percolator-args is not repeated.
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 14a1eca3-7617-4e27-af6f-f49af7a2351b
📥 Commits

Reviewing files that changed from the base of the PR and between 4b3a23d and 2b267ed.

📒 Files selected for processing: 2
  • DOCS.md
  • crates/output/src/percolator.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

# Conflicts:
#	DOCS.md
#	crates/output/src/percolator.rs
@ypriverol
ypriverol merged commit 1cd996a into main Oct 21, 2026
5 checks passed
@ypriverol
ypriverol deleted the fix/percolator-tdc branch November 4, 2026 07:38
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