Skip to content

ProteomicsLFQ: document PIP-ECHO; PercolatorAdapter: document the in-process backend and stop ignoring options it lacks - #10297

Merged
timosachsenberg merged 2 commits into
developfrom
claude/confident-lovelace-muuw2w-lfq-percolator-docs
Sep 28, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/confident-lovelace-muuw2w-lfq-percolator-docs

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Documentation for two 3.6 features that had no user documentation yet, and a fix that writing it turned up. This is the third of the 3.6 documentation PRs (after #10293 and #10296).

ProteomicsLFQ page (documentation only)

  • New section "Match between runs with PIP-ECHO" (-pip_echo true). It covers:
    • what the default QT linking does, and what PIP-ECHO does instead: decoy transfers at the retention time of an unrelated peptide; SVM scoring on intensity, mass error, RT agreement, isotope envelope and, when every run has IM data, ion mobility; and the PipEcho:fdr cutoff;
    • the local RT windows (PipEcho:local_rt:*, and the global window when they are disabled);
    • the min_decoys fallback that keeps only direct identifications;
    • random_seed, and max_training_points per cross-validation fold;
    • the requirement -targeted_only false.
  • Thermo .raw is listed as input; it was already accepted with WITH_THERMO_RAW. The entry links to the "Vendor formats" page from [DOC] Document the vendor readers, compressed files, Parquet bundles and imzML (format pages) #10293, with the same URL as that PR's FileConverter page.
  • -post-processing-tdc → -post_processing_tdc, on the page and in the -ids help. The old spelling is not a valid flag.

PercolatorAdapter: fix (fa014c5)
The in-process backend, the default since 3.6, silently ignored the options that only the percolator executable implements:

  • it wrote no -out_pout_* or -weights file;
  • it had no -quick_validation, -static, -test_each_iteration or -override.

Now:

  • Options only the executable implements: these options run the executable, like -doc and -init_weights already did (in_process_ok).
  • -out_pin: the in-process backend writes this file itself, with PercolatorInfile::store() as the subprocess path does. Asking for a debug output must not switch the backend and so change the results. TOPP_PercolatorAdapter_5, whose comment says it "tests if pin file can be written", had silently stopped writing it.
  • -threads 0 ("all cores") gave the in-process backend one thread; it now gets 3. That is the most it can use (one per cross-validation fold), and what the executable uses by default.
  • New tests:
    • TOPP_PercolatorAdapter_1_inproc_pin + _written: the in-process pin file is written with a nonexistent executable.
    • TOPP_PercolatorAdapter_1_weights_needs_binary: -weights with a nonexistent executable fails with the "could not be found (by searching on PATH)" message. The fallback is taken, not ignored.

PercolatorAdapter page and help

  • It describes:
    • the in-process default (no executable needed for idXML, mzIdentML and idparquet input at PSM level);
    • every option that makes the tool run the executable;
    • that both backends write -out_pin;
    • the decoy requirement of the library (Percolator.h preconditions);
    • the thread counts of both backends.
  • The -use_subprocess and -percolator_executable help texts describe the automatic fallback.

CHANGELOG: the PercolatorAdapter entry now says the fallback is automatic, lists all its triggers, and mentions -out_pin and -threads 0. There is also one Documentation entry, placed so that it doesn't touch the lines #10293 and #10296 add.

Validation

  • The documentation is checked against the code on develop 305c205:
    • PipEchoAlgorithm.cpp defaults, PIPECHO/Impl.cpp decoy selection and PIPECHO/TransferFDRModel.cpp SVM predictors;
    • ProteomicsLFQ's linker switch and window sizing;
    • PercolatorAdapter's in_process_ok, the in-process parameter mapping and the thread handling.
  • Both pages were rendered with doxygen 1.9.8: same warnings as before, and the lists and @p spans render as intended.
  • The C++ change is not compiled locally (no build here); CI builds it and runs the new tests.
    • I re-read it against the surrounding code. pin_file, feature_set, enz_str, min_charge and max_charge are all in scope where store() is called, with the types store() takes.
    • cmake -E sha256sum fails for a missing file, which the _written check relies on.

Checklist

  • Make sure that you are listed in the AUTHORS file (n/a)
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes: not built locally; CI runs the new and existing PercolatorAdapter tests.
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

Summary by CodeRabbit

  • New Features
    • PSM-level FDR from idXML, mzid, and idparquet uses in-process rescoring by default.
    • The in-process backend can write PIN output and uses up to three threads by default.
    • The Percolator executable runs for OSW input, peptide- or protein-level FDR, and executable-only options, including weights and validation settings.
  • Documentation
    • ProteomicsLFQ guidance covers Thermo .raw input and PIP-ECHO match-between-runs settings, including FDR control and retention-time windows.
    • PercolatorAdapter guidance explains backend selection, limitations, decoy requirements, and thread behavior.

…in-process backend

ProteomicsLFQ page: describe -pip_echo (decoy transfers, SVM scoring, FDR,
local RT windows, min_decoys fallback, random_seed, max_training_points),
list Thermo .raw input, and fix the flag name -post_processing_tdc (page and
-ids help).

PercolatorAdapter page: describe the in-process default, the options that
run the percolator executable instead, the options the in-process backend
does not implement, the decoy requirement and the thread counts of both
backends. Update the -use_subprocess and -percolator_executable help to
match the automatic fallback.

CHANGELOG: correct the PercolatorAdapter entry (the fallback is automatic
and also covers -doc and -init_weights) and add a Documentation entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 21e9d31c-992d-4a2f-90d9-00bb757d55f2

📥 Commits

Reviewing files that changed from the base of the PR and between 07edb00 and fa014c5.

📒 Files selected for processing (3)
  • CHANGELOG
  • src/tests/topp/CMakeLists.txt
  • src/topp/PercolatorAdapter.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

PercolatorAdapter selects in-process processing or the Percolator executable based on input type and requested options. The in-process backend writes requested PIN output and uses up to three threads. ProteomicsLFQ documentation adds Thermo .raw input and PIP-ECHO match-between-runs details.

Changes

Percolator backend selection

Layer / File(s) Summary
Backend options and documented behavior
CHANGELOG, src/topp/PercolatorAdapter.cpp
The documentation describes in-process support for idXML, mzIdentML, and idparquet with PSM-level FDR. It lists cases that use the executable and documents backend thread behavior.
Backend selection and in-process outputs
src/topp/PercolatorAdapter.cpp, src/tests/topp/CMakeLists.txt
Binary-only outputs and options select the executable. The in-process backend writes requested PIN output and maps nonpositive thread counts to three, with positive values capped at three. Tests check PIN generation and the missing-executable diagnostic for -weights.

ProteomicsLFQ documentation

Layer / File(s) Summary
Input and match-between-runs documentation
CHANGELOG, src/topp/ProteomicsLFQ.cpp
The documentation adds Thermo .raw input and PIP-ECHO match-between-runs behavior and settings. It corrects the PercolatorAdapter option spelling.

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to fa014

PIN output has the required features, and no material backend-selection failure is established. No merge-blocking impact is evident.

Security Architecture Review

Security architecture risk: 🔵 Low · up to fa014

The new behavior is controlled by explicit tool options and uses existing execution and file-writing paths. No security issue was verified, but the change can cause an external executable to run automatically, so its operating environment matters.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The immediate changed exposure is the invoking tool process: selected options can cause executable invocation or writing to an explicitly supplied output path. The evidence does not establish a separate tenant, service, or privilege boundary for those options.

Trust Boundaries and Controls

  • observed — Backend selection checks the executable-only options before resolving the executable. PIN writing requires a nonempty out_pin option, registered as an output file; no separate filesystem-confinement or privilege policy was established by the reviewed source.

Resilience and Maintainability Implications

  • inferred — Because the writer opens the destination directly and PIN creation precedes training, interruption or later failure may leave an incomplete or otherwise unaccompanied PIN output. The same direct writer was already used by the executable path; no new cross-owner recovery obligation is established.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (2 skipped: 2 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the two main changes: documenting PIP-ECHO support in ProteomicsLFQ and documenting or correcting PercolatorAdapter in-process backend behavior.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

A rabbit reads the FDR flow
Three threads hop where zero goes
A PIN file lands beside the run
Raw files join the matching fun
Decoys guide each transfer home

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

… lacks

The in-process backend (the default since 3.6) ignored the options that
only the percolator executable implements: it wrote no -out_pout_* or
-weights file and had no -quick_validation, -static, -test_each_iteration
or -override. These now run the executable, like -doc and -init_weights
already did. -out_pin is written by the in-process backend itself
(PercolatorInfile::store, as the subprocess path does), so that asking
for this debug output does not switch the backend and change the
results. TOPP_PercolatorAdapter_5, which exists to check that the pin
file is written, had silently stopped writing it.

-threads 0 ("all cores") gave the in-process backend one thread; it now
gets 3, the most it can use and what the executable uses by default.

New tests: the in-process pin file is written without the executable,
and -weights with a missing executable reports that executable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
@timosachsenberg timosachsenberg changed the title [DOC] ProteomicsLFQ: PIP-ECHO match-between-runs; PercolatorAdapter: in-process backend ProteomicsLFQ: document PIP-ECHO; PercolatorAdapter: document the in-process backend and stop ignoring options it lacks Sep 27, 2026
@timosachsenberg
timosachsenberg merged commit 724b06b into develop Sep 28, 2026
32 checks passed
@timosachsenberg
timosachsenberg deleted the claude/confident-lovelace-muuw2w-lfq-percolator-docs branch September 28, 2026 05:42
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.

2 participants