Skip to content

fix(ProSE): defer PSM FDR when Percolator enabled and emit valid .pin - #9195

Merged
timosachsenberg merged 2 commits into
OpenMS:developfrom
timosachsenberg:fix/prose-percolator-fdr-and-pin-format
Apr 21, 2026
Merged

timosachsenberg merged 2 commits into
OpenMS:developfrom
timosachsenberg:fix/prose-percolator-fdr-and-pin-format

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes two related ProSE bugs around Percolator rescoring:

  1. FDR:PSM stripped decoys before Percolator ran. Only FDR:protein was deferred when -percolator_executable is set; FDR:PSM still ran inside the algorithm on raw HyperScore q-values and — because protein FDR had been zeroed — also removed decoys via the fdr_protein_==0 branch. Percolator then saw a target-only input and aborted with "No decoys found". Now both FDRs are deferred; PSM FDR is applied post-rescoring on Percolator q-values (fallback files that didn't get rescored run FalseDiscoveryRate::apply first).

  2. -out_pin emitted a malformed .pin. The header was missing the mandatory SpecId / Label / ScanNr columns plus the standard mass/charge/enzyme feature columns (ExpMass, CalcMass, mass, peplen, charge{N}, enzN, enzC, enzInt, dm, absdm) that PercolatorInfile::preparePin_ already computes on every hit. The file was not consumable by the percolator CLI. Factored the canonical column list into a new PercolatorInfile::getStandardFeatureSet() helper; both PercolatorAdapter (previously hardcoded) and ProSE's -out_pin now use it, so the two tools emit consistent, standards-compliant .pin files.

Changes

  • src/topp/ProSE.cpp — defer FDR:PSM when Percolator is enabled; apply post-rescoring; use getStandardFeatureSet() for -out_pin.
  • src/openms/include/OpenMS/FORMAT/PercolatorInfile.h + .cpp — new getStandardFeatureSet(min_charge, max_charge) helper.
  • src/topp/PercolatorAdapter.cpp — use the helper instead of a hardcoded 22-line feature-set construction. Same columns, same output.
  • CHANGELOG — entries under ProSE.

Test plan

  • cmake --build OpenMS-build --target OpenMS ProSE PercolatorAdapter PercolatorInfile_test — clean build.
  • ctest -R "TOPP_ProSE|PercolatorInfile|PercolatorAdapter" — 23/23 pass locally.
  • Smoke-tested ProSE -out_pin on SimpleSearchEngine_1.mzML: header begins with SpecId, Label, ScanNr and ends with Peptide, Proteins.
  • CI on develop base.
  • End-to-end percolator-CLI consumption of ProSE -out_pin output (no external test harness currently exists; TOPP_PercolatorAdapter_missing is the only percolator-binary-dependent test in tree and it's skipped when percolator isn't installed).

Notes

  • No test currently exercises ProSE's Percolator path (no -percolator_executable in any ProSE test in src/tests/topp/CMakeLists.txt). Consider adding a percolator-conditional test similar to how TOPP_PercolatorAdapter_missing is guarded — happy to do in a follow-up if desired.
  • PercolatorAdapter's .pin column order changes slightly when description_of_correct != 0: retentiontime, deltamass now appear at the end instead of right after ScanNr. Column order in the middle of a Percolator .pin is not significant to the percolator binary, and the tool's final idXML output is unaffected.

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Bug Fixes

    • Fixed PSM FDR filtering to occur after Percolator rescoring when enabled, preventing premature removal of decoys that could cause Percolator to be skipped.
    • Corrected output file format for proper compatibility with Percolator CLI tools.
  • Improvements

    • Enhanced fallback handling when Percolator rescoring is unavailable or fails.
    • Standardized feature column generation across Percolator integration points.

Two related ProSE bugs around Percolator rescoring:

1. FDR:PSM was applied inside the algorithm on raw HyperScore q-values
   before Percolator ran, which also stripped decoys via the
   fdr_protein_==0 branch (protein FDR is already deferred). Percolator
   then saw a target-only input and aborted with "No decoys found".
   Fix: defer FDR:PSM alongside FDR:protein when -percolator_executable
   is set. Post-rescoring, apply PSM FDR on Percolator q-values
   directly (scores are already q-values via -score_type q-value).
   Files that fell back to HyperScores (Percolator skipped/failed)
   compute q-values via FalseDiscoveryRate first. Decoys are only
   removed when protein FDR is disabled, matching the algorithm's
   existing semantics.

2. -out_pin emitted a .pin header missing the mandatory SpecId / Label
   / ScanNr columns and the standard mass/charge/enzyme features
   (ExpMass, CalcMass, mass, peplen, charge{N}, enzN, enzC, enzInt,
   dm, absdm) that PercolatorInfile::preparePin_ already sets on every
   hit. The output was not consumable by the percolator CLI.
   Fix: factor the canonical column list into a new
   PercolatorInfile::getStandardFeatureSet() helper. Both
   PercolatorAdapter (previously hardcoded) and ProSE -out_pin now
   build their feature_set from this helper, so the two tools emit
   consistent, standards-compliant .pin files.

Verified: all 18 ProSE tests, PercolatorInfile_test, and
PercolatorAdapter INI/CTD tests pass. Smoke-tested ProSE -out_pin on
SimpleSearchEngine_1.mzML: header now begins with SpecId / Label /
ScanNr and ends with Peptide / Proteins.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This PR defers PSM and protein FDR filtering in ProSE until after Percolator rescoring completes, preventing premature decoy removal. It also centralizes .pin file feature column generation via a new PercolatorInfile::getStandardFeatureSet() API to ensure consistent file format across tools.

Changes

Cohort / File(s) Summary
Percolator Feature Set API
src/openms/include/OpenMS/FORMAT/PercolatorInfile.h
Added public static method getStandardFeatureSet(int min_charge, int max_charge) to define canonical .pin header and feature columns.
Feature Set Implementation
src/openms/source/FORMAT/PercolatorInfile.cpp
Implemented getStandardFeatureSet() generating fixed columns (SpecId, Label, ScanNr, etc.), dynamic charge columns, and enzyme-related fields.
Feature Set Integration & FDR Deferral
src/topp/PercolatorAdapter.cpp, src/topp/ProSE.cpp
Refactored to use centralized getStandardFeatureSet() instead of hardcoded feature construction; ProSE defers both PSM and protein FDR filtering until post-rescoring, conditionally applying filters based on Percolator success and computing q-values from HyperScore when Percolator unavailable.

Sequence Diagram(s)

sequenceDiagram
    actor Input as Input Data<br/>(with HyperScores)
    participant ProSE
    participant Perc as Percolator
    participant FDR as Filtering
    actor Output as Filtered PSMs<br/>(by q-value FDR)

    Input->>ProSE: PSM candidates
    Note over ProSE: Defer FDR:PSM & FDR:protein<br/>Set both to 0.0
    ProSE->>Perc: .pin file with all decoys
    alt Percolator succeeds
        Perc-->>ProSE: Rescored PSMs<br/>(q-values computed)
        ProSE->>FDR: Apply PSM FDR threshold<br/>on q-values directly
    else Percolator fails/skipped
        ProSE->>FDR: Compute q-values via<br/>FalseDiscoveryRate
        FDR-->>ProSE: q-values
        ProSE->>FDR: Apply PSM FDR threshold
    end
    FDR-->>Output: Filtered results
Loading

Possibly related PRs

Poem

🐰 Hooray for deferred FDR!
Decoys survive to run with Per-
colator's quest for truth,
Then filtered by q-values, forsooth!
One standard .pin for all to pursue. 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately summarizes the two main fixes: deferring PSM FDR when Percolator is enabled and emitting a valid .pin file with correct headers.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
src/openms/include/OpenMS/FORMAT/PercolatorInfile.h (1)

85-85: Use OpenMS Int for the new public API.

min_charge and max_charge are OpenMS numeric values; prefer Int in the declaration and mirror it in the .cpp definition/loop variable.

♻️ Proposed API polish
-      static StringList getStandardFeatureSet(int min_charge, int max_charge);
+      static StringList getStandardFeatureSet(Int min_charge, Int max_charge);

As per coding guidelines, src/openms/**/*.{cpp,h,hpp}: Use OpenMS primitive types from OpenMS/CONCEPT/Types.h instead of standard C++ types.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/include/OpenMS/FORMAT/PercolatorInfile.h` at line 85, Change the
public API of getStandardFeatureSet to use the OpenMS primitive type Int for
both parameters instead of raw int: update the declaration of static StringList
getStandardFeatureSet(int min_charge, int max_charge); to use Int, and mirror
the change in the corresponding .cpp definition and any loop/index variables
inside (e.g., any for-loops over min_charge/max_charge) so they use
OpenMS::Int/Int from OpenMS/CONCEPT/Types.h; ensure the header includes the
appropriate Types.h import if not already present.
src/openms/source/FORMAT/PercolatorInfile.cpp (1)

36-48: Guard invalid charge ranges before emitting the header.

If min_charge > max_charge, the helper silently emits no chargeN columns while still returning a .pin header. A fail-fast precondition would make upstream range bugs easier to diagnose.

🛡️ Proposed guard
   StringList PercolatorInfile::getStandardFeatureSet(int min_charge, int max_charge)
   {
+    OPENMS_PRECONDITION(min_charge <= max_charge, "min_charge must be less than or equal to max_charge")
     StringList fs = {
       "SpecId", "Label", "ScanNr",
       "ExpMass", "CalcMass", "mass", "peplen"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/openms/source/FORMAT/PercolatorInfile.cpp` around lines 36 - 48, In
PercolatorInfile::getStandardFeatureSet, add a fail-fast guard for the charge
range: if min_charge > max_charge, throw an informative exception (e.g.,
InvalidParameter/InvalidValue) before building fs so callers immediately see the
bad input rather than returning a header missing chargeN columns; reference the
function name PercolatorInfile::getStandardFeatureSet and the local fs variable
in your change and include the offending values in the exception message.
src/topp/ProSE.cpp (2)

526-541: Centralized feature-set construction LGTM; behavior diverges from PercolatorAdapter.

Using PercolatorInfile::getStandardFeatureSet(min_charge, max_charge) here fixes the missing SpecId/Label/ScanNr header and keeps ProSE's -out_pin consumable by the Percolator CLI.

Minor note on the score handling: PercolatorAdapter uses if (extra_features) { ... } else if (generic_feature_set) push "score"; else error; (i.e. score is only appended in the generic fallback), whereas ProSE here unconditionally ensures score is appended when absent. For ProSE this is fine because it always emits a HyperScore under the score column, but the two code paths are no longer symmetric despite the PR goal of aligning them — worth a comment in code or an explicit acknowledgement that ProSE intentionally always injects score.

🧹 Optional clarifying comment
               StringList feature_set = PercolatorInfile::getStandardFeatureSet(min_charge, max_charge);
               if (sp.metaValueExists("extra_features"))
               {
                 StringList extra = ListUtils::create<String>(sp.getMetaValue("extra_features").toString());
                 feature_set.insert(feature_set.end(), extra.begin(), extra.end());
               }
+              // ProSE always exports a HyperScore under the "score" column; unlike
+              // PercolatorAdapter (which gates this behind -generic_feature_set),
+              // we unconditionally ensure the column is present.
               if (std::find(feature_set.begin(), feature_set.end(), "score") == feature_set.end())
               {
                 feature_set.push_back("score");
               }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ProSE.cpp` around lines 526 - 541, The feature-set construction in
ProSE.cpp now uses PercolatorInfile::getStandardFeatureSet(min_charge,
max_charge) but then unconditionally appends "score" when missing, diverging
from PercolatorAdapter's conditional logic; add a concise inline comment near
the block that builds feature_set (referencing feature_set and the
extra_features handling) stating that ProSE intentionally always emits a
HyperScore into the "score" column so appending "score" is deliberate and not a
bug, or alternatively add an explicit assertion/acknowledgement variable (e.g.,
bool prose_always_injects_score) and comment it to make the divergence clear to
future readers.

353-398: Deferred PSM-FDR application logic looks correct.

A couple of observations worth confirming rather than fixing:

  • This whole block is (correctly) nested inside if (!percolator_executable.empty()), keeping behavior symmetric with the non-percolator path where ProSEAlgorithm applies FDR internally.
  • The percolator_succeeded[i] == false branch (fallback) correctly covers all three "no Percolator q-values available" cases: (a) global has_decoys_for_percolator == false → whole rescoring loop skipped; (b) per-file <100 PSMs skip; (c) per-file perc_ec != EXECUTION_OK. In each, we re-check per-file decoys before running FalseDiscoveryRate and skip with a warning if absent. Good.
  • Note that after rescoring we call IDFilter::keepNBestHits(result.peptide_ids, 1) (Line 344), but fallback/non-rescored files don't get the same collapse before FDR. ProSEAlgorithm's postProcessHits_() truncates results to a configurable report_top_hits parameter (default 1), so with default settings both paths operate on single hits per spectrum. However, if a user configures report:top_hits > 1, the fallback path could compute q-values on multiple hits per spectrum while the rescored path is reduced to 1 first—potentially affecting filtering behavior.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/topp/ProSE.cpp` around lines 353 - 398, Fallback files
(percolator_succeeded[i] == false) compute FDR on all hits but rescored files
are collapsed via IDFilter::keepNBestHits earlier, which can cause different
filtering when report_top_hits > 1; before calling
FalseDiscoveryRate::apply(result.peptide_ids) in the non-rescored branch,
collapse to the same number of top hits as the rescored path (use
IDFilter::keepNBestHits(result.peptide_ids, report_top_hits) or the literal used
elsewhere, e.g., keepNBestHits(..., 1)) so both paths operate on the same hits;
reference percolator_succeeded, FalseDiscoveryRate::apply,
IDFilter::keepNBestHits, and ProSEAlgorithm::postProcessHits_/report_top_hits.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@CHANGELOG`:
- Around line 107-108: Update the two changelog bullets by appending the PR
reference " (`#9195`)" to each relevant line: the bullet starting "Fix: FDR:PSM is
now deferred (alongside FDR:protein)..." and the bullet starting "Fix: -out_pin
output is now a valid, percolator-CLI-consumable .pin file..."; ensure the exact
text of those bullets remains unchanged aside from adding the " (`#9195`)" suffix
so they match surrounding entries for traceability.

---

Nitpick comments:
In `@src/openms/include/OpenMS/FORMAT/PercolatorInfile.h`:
- Line 85: Change the public API of getStandardFeatureSet to use the OpenMS
primitive type Int for both parameters instead of raw int: update the
declaration of static StringList getStandardFeatureSet(int min_charge, int
max_charge); to use Int, and mirror the change in the corresponding .cpp
definition and any loop/index variables inside (e.g., any for-loops over
min_charge/max_charge) so they use OpenMS::Int/Int from OpenMS/CONCEPT/Types.h;
ensure the header includes the appropriate Types.h import if not already
present.

In `@src/openms/source/FORMAT/PercolatorInfile.cpp`:
- Around line 36-48: In PercolatorInfile::getStandardFeatureSet, add a fail-fast
guard for the charge range: if min_charge > max_charge, throw an informative
exception (e.g., InvalidParameter/InvalidValue) before building fs so callers
immediately see the bad input rather than returning a header missing chargeN
columns; reference the function name PercolatorInfile::getStandardFeatureSet and
the local fs variable in your change and include the offending values in the
exception message.

In `@src/topp/ProSE.cpp`:
- Around line 526-541: The feature-set construction in ProSE.cpp now uses
PercolatorInfile::getStandardFeatureSet(min_charge, max_charge) but then
unconditionally appends "score" when missing, diverging from PercolatorAdapter's
conditional logic; add a concise inline comment near the block that builds
feature_set (referencing feature_set and the extra_features handling) stating
that ProSE intentionally always emits a HyperScore into the "score" column so
appending "score" is deliberate and not a bug, or alternatively add an explicit
assertion/acknowledgement variable (e.g., bool prose_always_injects_score) and
comment it to make the divergence clear to future readers.
- Around line 353-398: Fallback files (percolator_succeeded[i] == false) compute
FDR on all hits but rescored files are collapsed via IDFilter::keepNBestHits
earlier, which can cause different filtering when report_top_hits > 1; before
calling FalseDiscoveryRate::apply(result.peptide_ids) in the non-rescored
branch, collapse to the same number of top hits as the rescored path (use
IDFilter::keepNBestHits(result.peptide_ids, report_top_hits) or the literal used
elsewhere, e.g., keepNBestHits(..., 1)) so both paths operate on the same hits;
reference percolator_succeeded, FalseDiscoveryRate::apply,
IDFilter::keepNBestHits, and ProSEAlgorithm::postProcessHits_/report_top_hits.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5b85ab20-7ad7-492d-b82d-ce09fb72f440

📥 Commits

Reviewing files that changed from the base of the PR and between 4d76c4c and 70073d2.

📒 Files selected for processing (5)
  • CHANGELOG
  • src/openms/include/OpenMS/FORMAT/PercolatorInfile.h
  • src/openms/source/FORMAT/PercolatorInfile.cpp
  • src/topp/PercolatorAdapter.cpp
  • src/topp/ProSE.cpp

Comment thread CHANGELOG
Comment on lines +107 to +108
- Fix: FDR:PSM is now deferred (alongside FDR:protein) when -percolator_executable is set, and applied post-rescoring on Percolator q-values. Previously FDR:PSM=0.01 filtered raw HyperScore q-values before Percolator ran and also stripped decoys, causing "No decoys found" and skipping Percolator entirely; fallback files (Percolator skipped/failed) still apply PSM FDR on HyperScore q-values via FalseDiscoveryRate
- Fix: -out_pin output is now a valid, percolator-CLI-consumable .pin file. Previously the header was missing the mandatory SpecId/Label/ScanNr columns and the standard mass/charge/enzyme feature columns (ExpMass, CalcMass, mass, peplen, charge{N}, enzN, enzC, enzInt, dm, absdm), which are populated on hits by PercolatorInfile::preparePin_ but were not declared in the feature list. Both ProSE -out_pin and PercolatorAdapter now build their feature set from the new PercolatorInfile::getStandardFeatureSet() helper so the two emit consistent .pin files

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add the PR reference for changelog traceability.

These two new bullets should include (#9195) like the surrounding entries.

📝 Proposed changelog tweak
-      - Fix: FDR:PSM is now deferred (alongside FDR:protein) when -percolator_executable is set, and applied post-rescoring on Percolator q-values. Previously FDR:PSM=0.01 filtered raw HyperScore q-values before Percolator ran and also stripped decoys, causing "No decoys found" and skipping Percolator entirely; fallback files (Percolator skipped/failed) still apply PSM FDR on HyperScore q-values via FalseDiscoveryRate
-      - Fix: -out_pin output is now a valid, percolator-CLI-consumable .pin file. Previously the header was missing the mandatory SpecId/Label/ScanNr columns and the standard mass/charge/enzyme feature columns (ExpMass, CalcMass, mass, peplen, charge{N}, enzN, enzC, enzInt, dm, absdm), which are populated on hits by PercolatorInfile::preparePin_ but were not declared in the feature list. Both ProSE -out_pin and PercolatorAdapter now build their feature set from the new PercolatorInfile::getStandardFeatureSet() helper so the two emit consistent .pin files
+      - Fix: FDR:PSM is now deferred (alongside FDR:protein) when -percolator_executable is set, and applied post-rescoring on Percolator q-values. Previously FDR:PSM=0.01 filtered raw HyperScore q-values before Percolator ran and also stripped decoys, causing "No decoys found" and skipping Percolator entirely; fallback files (Percolator skipped/failed) still apply PSM FDR on HyperScore q-values via FalseDiscoveryRate (`#9195`)
+      - Fix: -out_pin output is now a valid, percolator-CLI-consumable .pin file. Previously the header was missing the mandatory SpecId/Label/ScanNr columns and the standard mass/charge/enzyme feature columns (ExpMass, CalcMass, mass, peplen, charge{N}, enzN, enzC, enzInt, dm, absdm), which are populated on hits by PercolatorInfile::preparePin_ but were not declared in the feature list. Both ProSE -out_pin and PercolatorAdapter now build their feature set from the new PercolatorInfile::getStandardFeatureSet() helper so the two emit consistent .pin files (`#9195`)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Fix: FDR:PSM is now deferred (alongside FDR:protein) when -percolator_executable is set, and applied post-rescoring on Percolator q-values. Previously FDR:PSM=0.01 filtered raw HyperScore q-values before Percolator ran and also stripped decoys, causing "No decoys found" and skipping Percolator entirely; fallback files (Percolator skipped/failed) still apply PSM FDR on HyperScore q-values via FalseDiscoveryRate
- Fix: -out_pin output is now a valid, percolator-CLI-consumable .pin file. Previously the header was missing the mandatory SpecId/Label/ScanNr columns and the standard mass/charge/enzyme feature columns (ExpMass, CalcMass, mass, peplen, charge{N}, enzN, enzC, enzInt, dm, absdm), which are populated on hits by PercolatorInfile::preparePin_ but were not declared in the feature list. Both ProSE -out_pin and PercolatorAdapter now build their feature set from the new PercolatorInfile::getStandardFeatureSet() helper so the two emit consistent .pin files
- Fix: FDR:PSM is now deferred (alongside FDR:protein) when -percolator_executable is set, and applied post-rescoring on Percolator q-values. Previously FDR:PSM=0.01 filtered raw HyperScore q-values before Percolator ran and also stripped decoys, causing "No decoys found" and skipping Percolator entirely; fallback files (Percolator skipped/failed) still apply PSM FDR on HyperScore q-values via FalseDiscoveryRate (`#9195`)
- Fix: -out_pin output is now a valid, percolator-CLI-consumable .pin file. Previously the header was missing the mandatory SpecId/Label/ScanNr columns and the standard mass/charge/enzyme feature columns (ExpMass, CalcMass, mass, peplen, charge{N}, enzN, enzC, enzInt, dm, absdm), which are populated on hits by PercolatorInfile::preparePin_ but were not declared in the feature list. Both ProSE -out_pin and PercolatorAdapter now build their feature set from the new PercolatorInfile::getStandardFeatureSet() helper so the two emit consistent .pin files (`#9195`)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CHANGELOG` around lines 107 - 108, Update the two changelog bullets by
appending the PR reference " (`#9195`)" to each relevant line: the bullet starting
"Fix: FDR:PSM is now deferred (alongside FDR:protein)..." and the bullet
starting "Fix: -out_pin output is now a valid, percolator-CLI-consumable .pin
file..."; ensure the exact text of those bullets remains unchanged aside from
adding the " (`#9195`)" suffix so they match surrounding entries for traceability.

@timosachsenberg
timosachsenberg merged commit c162f2d into OpenMS:develop Apr 21, 2026
49 of 50 checks passed
timosachsenberg pushed a commit that referenced this pull request Apr 23, 2026
Restore ProSE/FragmentIndex/File entries dropped by the FeatureFinderCentroided
reorganization commit (#9159) and add new entries for commits merged after the
last sync:

- #9188: ProSE BREAKING: default isotope error range changed to [0,+2]
- #9191: ProSE SNES mother-peptide indexing for non-specific searches
- #9195: ProSE fix: defer PSM FDR when Percolator enabled; valid .pin output
- #9203: FragmentIndex: fixed bucket_size 4096 for tighter candidate lists
- #9204: ProSE: resolve PercolatorAdapter via findSiblingTOPPExecutable
- #9205: ProSE: per-file output isolation + dangling decoy ref crash fix
- #9207: File::rename: cross-device fallback (copy+remove on EXDEV)

Co-authored-by: GitHub Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot mentioned this pull request Apr 26, 2026
@timosachsenberg timosachsenberg mentioned this pull request Jun 8, 2026
timosachsenberg added a commit that referenced this pull request Jun 17, 2026
… columns (#9460) (#9536)

PercolatorInfile_test only covered load(); the .pin feature-set / header writer
(getStandardFeatureSet, used to assemble the Percolator input header) was untested.

Adds a section asserting the exact ordered feature set:
- the three mandatory columns SpecId, Label, ScanNr
- mass/length features (ExpMass, CalcMass, mass, peplen)
- one "charge<c>" column per charge state in [min,max] (verified for 2..4 and the
  single-state 3..3 case)
- enzyme / mass-delta features (enzN, enzC, enzInt, dm, absdm)
and that the assembled header (features + Peptide + Proteins) begins with SpecId
and ends with Peptide, Proteins -- the exact shape Percolator parses (#9195).

Verified: builds clean and the test runs PASSED.

Co-authored-by: Claude Opus 4.8 <[email protected]>
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