Skip to content

[ProSE] Default tolerances + auto decoy mode (prefix/suffix), reconciled with FDR decoupling - #9644

Merged
timosachsenberg merged 7 commits into
developfrom
feat/prose-decoy-auto-land
Jun 21, 2026
Merged

timosachsenberg merged 7 commits into
developfrom
feat/prose-decoy-auto-land

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

Brings the feat/prose-default-tolerances-suffix-decoys lineage (new default tolerances + auto decoy mode, #9634) onto develop, reconciled with the already-merged ProSE FDR/decoy decoupling (#9633).

What lands

  • decoys is now an enum {auto, generate, ignore} (default auto) — replaces the old boolean. auto reuses decoys already in the FASTA (marker auto-detected, prefix or suffix, via DecoyHelper::findDecoyString) or generates them when absent; generate always (re)builds from targets; ignore searches target-only. Fixes latent bugs where a hardcoded decoy_prefix position was assumed.
  • New default precursor/fragment tolerances (precursor 10 / fragment 20 ppm).

Reconciliation with #9633 (the new work in this PR vs. the feature branch)

#9634 predates #9633's FDR/decoy decoupling, so landing it required unifying the two decoy models:

Design note: decoys=auto always generates when absent (not FDR-gated)

Decoys are generated whenever the FASTA lacks them, even with no ProSE-level FDR — because ProSE's external/downstream-FDR workflows are first-class and tested (ProSE → FalseDiscoveryRate on idXML; ProSE → Percolator), and ProSE can't detect a coming external FDR step. (FDR-gating was prototyped and rejected: FalseDiscoveryRate on a decoy-free idXML silently assigns target q=0.) The ~2× cost of always-generating only affects a pure no-FDR search, which opts out with decoys=ignore — an INFO hint points this out.

Review

Thorough opus + codex review (verdict: ship-with-fixes, no blockers). Verified: decoupling preserved, marker threading correct (incl. suffix) through PeptideIndexing / picked-protein FDR / chunked / multi-file / merged, FragmentIndex boolean decoys forced false on every build path, merged-path gating correct, tolerances coherent. Applied all agreed fixes:

  • empty-marker guards (applyCompleteSetProteinFDR skip + buildDecoyAugmentedDB_ throw on empty decoy_prefix when generating);
  • -out_merged-alone no longer rejected as "no output";
  • pyOpenMS tests migrated off the now-invalid boolean decoys values;
  • a suffix-marker unit case and an unconditional decoys=auto end-to-end TOPP test (ProSE_8_auto).

Deferred as pre-existing follow-ups: the library searchWithModificationAnalysis overload not finalizing protein FDR; .pin/Percolator guards using DB-level vs PSM-level decoy labels.

Tests

Unit ProSEAlgorithm_test (incl. new suffix case) + all 38 TOPP tests pass locally — ProSE_1–8, the three Bruker .d DDA-PASEF tests, and the external FalseDiscoveryRate_ProSEDDA / SimpleSearchEngineDDA workflows.

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • New Features

    • Added configurable decoy handling modes (auto, generate, ignore) instead of boolean-style settings, including automatic reuse of existing decoys in input FASTA or controlled generation.
  • Improvements

    • Improved decoy-aware behavior in multi-file and merged outputs, with more consistent protein-level FDR handling and clearer runtime warnings.
  • Bug Fixes

    • Protein FDR is now correctly skipped when no decoy proteins are available.
  • Other

    • Updated default precursor mass tolerance bounds and expanded ProSE/TOPP test coverage.

timosachsenberg and others added 6 commits June 19, 2026 11:52
…tion

Change the ProSEAlgorithm defaults to a precursor mass tolerance of
10 ppm (lower/upper) and a fragment mass tolerance of 20 ppm, matching
typical high-resolution Orbitrap settings.

Recognise pre-existing decoys whether the configured decoy marker is a
prefix or a suffix of the protein accession (e.g. "DECOY_PROT" or
"PROT_DECOY"). No extra parameter: isDecoyAccession_() tests both
orientations, and detectDecoyStringPosition_() picks the right
"decoy_string_position" for PeptideIndexing from the database itself.

Adds test coverage for the new defaults and the prefix/suffix detection.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
)

* [ProSE] Auto decoy mode: detect existing or generate, with suffix support

Replace the boolean 'decoys' (true/false) with a three-way mode that lets
the user decide less:

  - auto (default): ensure decoys are available for target-decoy FDR — reuse
    decoys already present in the database (marker auto-detected via
    DecoyHelper, prefix or suffix, falling back to decoy_prefix for custom
    markers) or generate them from the targets if none are found.
  - generate: always (re)build decoys from the targets; any pre-existing
    decoys are stripped first to avoid decoy-of-decoy entries.
  - ignore: search the targets only; any decoys in the database are removed.

A single resolveDecoyStrategy_() resolves the decoy handling once per input
database into a DecoyStrategy_ (generate / strip / effective marker+position
/ have_decoys). The result is threaded through every search path (in-memory,
chunked, single-context, file-based, multi-file) via the SearchContext and a
new searchChunked_ parameter, so PeptideIndexing and picked-protein FDR use
the same decoys that were searched. This fixes prior latent bugs where the
marker/position for external (non-DECOY_, or suffix) decoys was hardcoded.

The effective marker is also surfaced on MultiFileSearchResult so the ProSE
tool's -out_merged protein-FDR step recognises the right decoys.

FragmentIndex declares its own unused boolean 'decoys' flag; ProSE now hands
it FI-safe parameters (fragmentIndexParameters_) so the enum value never trips
FI's validation.

Supersedes the prefix/suffix helpers from the parent branch with the more
capable DecoyHelper-based detection. Updates the class test (auto/generate/
ignore + custom-marker fallback), the TOPP reference inis, and the DDA test
commands (the old valueless -Search:decoys flag now takes an explicit value).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [ProSE] Silence DecoyHelper noise on target-only databases

DecoyHelper::findDecoyString logged ERROR/WARN ("Unable to determine decoy
string...") whenever fewer than 40% of proteins carried a decoy marker. For
ProSE's auto/generate modes a target-only database is a normal case (decoys
are then synthesised), so the message was misleading noise.

Add an opt-in 'quiet' flag (default false → unchanged for all existing
callers such as PeptideIndexing) that suppresses these log lines, and pass
quiet=true from ProSE's resolveDecoyStrategy_, which handles the negative
result itself.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
…uto-land

# Conflicts:
#	src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
#	src/topp/ProSE.cpp
…pin guard

Per the codex/opus design discussion: do NOT FDR-gate decoys=auto. ProSE's external/
downstream-FDR workflows (ProSE -> FalseDiscoveryRate on idXML, ProSE -> Percolator)
and deferred/sharded FDR rely on auto producing target+decoy PSMs even when no
ProSE-level FDR is requested; ProSE cannot detect that an external FDR step is coming,
and FalseDiscoveryRate on a decoy-free idXML silently assigns q=0 rather than failing.
So "generate whenever decoys are absent" is the correct, safe default.

Two small hardenings:
- INFO log when auto generates decoys with no ProSE FDR, pointing at decoys=ignore for
  a genuinely target-only search (discoverability for the ~2x index/scoring cost).
- Warn when -out_pin is requested but the run is target-only (decoys=ignore): the .pin
  would contain no decoys and external Percolator cannot estimate FDR from it. Mirrors
  the existing in-process Percolator decoy guard.
- Value-form wording in the in-process Percolator decoy warning.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Thorough opus+codex review of the #9634/#9633 reconciliation (verdict: ship-with-fixes,
no blockers). Address the agreed in-scope items:

- Empty-marker guards (both reviewers): applyCompleteSetProteinFDR early-returns with a
  warning on an empty decoy marker (hasPrefix(x,"") is always true -> would treat all
  proteins as decoys); buildDecoyAugmentedDB_ throws if asked to generate with an empty
  decoy_prefix (decoy accessions would equal their targets); the merged-path protein-FDR
  guard also skips on an empty marker.
- TOPP -out_merged alone is no longer rejected as "no output specified".
- pyOpenMS test_modification_discovery.py: decoys true/false -> generate/ignore (the old
  boolean values are invalid under the new {auto,generate,ignore} enum and would throw).
- Coverage: a suffix-marker resolveDecoyStrategy_ unit case (the prefix-OR-suffix headline
  feature was prefix-only tested) and an unconditional TOPP_ProSE_8_auto end-to-end test
  (decoys=auto previously ran only under the WITH_OPENTIMS-gated Bruker tests).

Deferred as pre-existing follow-ups (not #9634-introduced): the library
searchWithModificationAnalysis overload not finalizing protein FDR; .pin/Percolator guards
using DB-level vs PSM-level decoy labels.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dc48af3d-1957-40e4-bfcb-2b527cada8a0

📥 Commits

Reviewing files that changed from the base of the PR and between 2c4228e and 1493bf3.

📒 Files selected for processing (3)
  • CHANGELOG
  • src/openms/include/OpenMS/ANALYSIS/ID/ProSEAlgorithm.h
  • src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
✅ Files skipped from review due to trivial changes (1)
  • CHANGELOG
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/openms/include/OpenMS/ANALYSIS/ID/ProSEAlgorithm.h
  • src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp

📝 Walkthrough

Walkthrough

ProSE's boolean decoys flag is replaced with a three-mode string parameter (auto/generate/ignore). A new DecoyMode_ enum and DecoyStrategy_ struct carry resolved decoy marker metadata, which is threaded through all search paths, PeptideIndexing, protein-FDR, and CLI output. findDecoyString gains a quiet suppression option. Precursor mass tolerance defaults are reduced to 10 ppm. All tests, INI configs, CMake entries, and changelog are updated accordingly.

Changes

ProSE Decoy Strategy Refactor

Layer / File(s) Summary
Data contracts: DecoyMode_, DecoyStrategy_, updated structs and signatures
src/openms/include/OpenMS/ANALYSIS/ID/ProSEAlgorithm.h
Introduces DecoyMode_ enum and DecoyStrategy_ struct; adds decoy_string, decoy_is_prefix, have_decoys to MultiFileSearchResult and SearchContext; updates applyCompleteSetProteinFDR, buildDecoyAugmentedDB_, searchChunked_ signatures; replaces decoys_ member with decoy_mode_; reduces precursor tolerance defaults from 20.0 to 10.0.
FASTAContainer: quiet log suppression in findDecoyString
src/openms/include/OpenMS/DATASTRUCTURES/FASTAContainer.h
Adds quiet boolean parameter to DecoyHelper::findDecoyString; all ERROR/WARN log paths for decoy string detection failures are guarded by !quiet.
Parameter change, fragmentIndexParameters_, resolveDecoyStrategy_, and buildDecoyAugmentedDB_ implementation
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
Replaces boolean decoys parameter with auto/generate/ignore string mode; implements resolveDecoyStrategy_() (detects existing decoys via quiet findDecoyString, decides strip/generate), fragmentIndexParameters_() (forces decoys=false on FragmentIndex), and updated buildDecoyAugmentedDB_() that accepts DecoyStrategy_ and uses fixed-seed shuffle for deterministic generation.
prepareContext and in-memory single-search refactor
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
Refactors prepareContext() to resolve decoy strategy upfront, build augmented DB via strategy, store metadata into SearchContext, and build fragment index via fragmentIndexParameters_(); refactors single-file in-memory search to resolve strategy, build augmented DB, inline single-context search with strategy metadata when fits in one chunk, or pass strategy to searchChunked_.
Chunked search: FragmentIndex, PeptideIndexing, decoy gating
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
Extends searchChunked_() to accept DecoyStrategy_ parameter; switches calibration and per-chunk FragmentIndex builds to use fragmentIndexParameters_(); updates chunked PeptideIndexing to set decoy marker/position from strategy; replaces PSM decoy presence detection from DB scan to strategy.have_decoys; updates FDR:PSM warning.
In-memory search: PeptideIndexing and decoy gating
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
Updates in-memory PeptideIndexing to set decoy marker/position from SearchContext; replaces PSM decoy presence detection to ctx.have_decoys; updates FDR:PSM warning text.
applyCompleteSetProteinFDR refactor and protein-FDR gating
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
Refactors applyCompleteSetProteinFDR to take (decoy_string, decoy_is_prefix, protein_fdr), adds guard for empty marker and post-inference skip; refactors file-based protein-FDR gating to resolve strategy and call with strategy marker/orientation.
Multi-file search paths: strategy resolution and propagation
src/openms/source/ANALYSIS/ID/ProSEAlgorithm.cpp
Refactors multi-file searchWithModificationAnalysis to resolve strategy once, store metadata into MultiFileSearchResult, build augmented DB via strategy; updates chunk-major path to use fragmentIndexParameters_() and set PeptideIndexing/PSM-level decoy detection from strategy; updates non-chunked shared context to set strategy metadata and fragment index via fragmentIndexParameters_().
ProSE CLI: docs, validation, warnings, and merged output
src/topp/ProSE.cpp
Updates CLI documentation for decoy mode semantics; extends "no output" validation to include -out_merged; adds warning for .pin without decoys; adjusts Percolator-missing-decoys text; gates single-file protein-FDR on mfres.have_decoys; switches merged output to use mfres.decoy_string/mfres.decoy_is_prefix; refactors merged protein-FDR with merged_fdr_applied flag and conditional decoy removal finalization.
Tests, INI configs, CMake registration, and changelog
src/pyOpenMS/tests/test_modification_discovery.py, src/tests/class_tests/openms/source/ProSEAlgorithm_test.cpp, src/tests/topp/ProSE_*.ini, src/tests/topp/CMakeLists.txt, CHANGELOG
Updates all decoys parameter values from boolean to string modes across all test files and INI configs; adds white-box EXTRA test section for resolveDecoyStrategy_/buildDecoyAugmentedDB_; registers TOPP_ProSE_8_auto end-to-end test and updates DDA-PASEF test invocations to pass -Search:decoys auto; documents mass tolerance changes in changelog.

Possibly related PRs

  • OpenMS/OpenMS#9633: Directly related — both PRs modify ProSEAlgorithm.cpp and ProSE.cpp to refactor protein-FDR application logic, decoy protein retention, and the conditions under which decoy removal finalization is performed.

🐇 A boolean flag once stood alone,
Now three modes share the decoy throne.
auto, generate, ignore — hooray!
The strategy resolves and finds its way.
Through chunked and merged, the markers flow,
With quiet logs and FDR in tow! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 73.68% 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 accurately summarizes the main changes: default tolerances adjustment and auto decoy mode with prefix/suffix support, with FDR reconciliation.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/prose-decoy-auto-land

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.

…ostics

From the second opus+codex review of #9644 (keep the 10 ppm precursor default):
- CHANGELOG: document the default tolerance change (precursor 20->10, fragment 10->20 ppm)
  that was otherwise bundled silently; note the calibration-drift caveat.
- Fix stale member initializers precursor_mass_tolerance_lower_/upper_ {20.0} -> {10.0} so
  they match the param default (they are read in the const search() path).
- decoys=auto now logs the auto-detected decoy marker when reusing existing decoys (prefix or
  suffix), so a rare DecoyHelper misdetection is diagnosable (previously reuse logged nothing).
- decoys=generate warns when the database carries sub-threshold decoy-like accessions that are
  not stripped (would become decoys-of-decoys), pointing at -Search:decoy_prefix.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@timosachsenberg
timosachsenberg merged commit 09a9184 into develop Jun 21, 2026
41 checks passed
@timosachsenberg
timosachsenberg deleted the feat/prose-decoy-auto-land branch June 21, 2026 20:30
timosachsenberg added a commit that referenced this pull request Jun 22, 2026
- ProSE (#9633, #9644): fix entry for protein-level FDR now applied for
  single-file runs; was previously silently skipped unless -out_merged was
  used in multi-file mode
- pyOpenMS (#9629): fix entry for 6 docutils ERROR-level warnings in
  nanobind binding docstrings resolved


Claude-Session: https://claude.ai/code/session_01XUrYEuLbeCJznCzV51iJjk

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit to timosachsenberg/OpenMS that referenced this pull request Jun 22, 2026
…tics_; YAML scope doc

opus+codex final pre-merge review. Two fixes:
- collectRunStatistics_ now computes target_psms/decoy_psms from the (post-FDR) hits it
  is given. Previously only capturePreFdrStats_ (pre-FDR) and updateFinalStats (post-FDR)
  set them, so a library caller reading SearchResult::stats without calling
  updateFinalStats saw PRE-FDR counts despite the "final IDs" doc. The TOPP tool was
  already correct (it calls updateFinalStats); this makes every caller consistent.
- CHANGELOG: the YAML -summary_out omits the console-only modification-discovery section,
  so drop the "same information" claim and list the actual contents.

Confirmed correct by both reviewers (no change): matched_spectra count_if at both sites,
HyperScore pre-FDR capture not overwritten, db target/decoy by resolved marker, chunked
seconds_search=0 intentional + console-omitted, hand-rolled YAML valid across all shapes
(control-char escaping, YAML-1.1 floats), FileTypes WRITEABLE-only, OpenMS#9644 reconciliation intact.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
timosachsenberg added a commit that referenced this pull request Jun 22, 2026
…9642)

* [ProSE] Extensive end-of-search command-line report + JSON summary

Print a consolidated "Search Report" when a ProSE run completes, covering all
run modes: configuration recap, database/fragment-index stats, per-file
identification results (matched/ID-rate, unique peptides+proteins,
target/decoy counts, achieved PSM FDR, charge & missed-cleavage histograms,
HyperScore distribution), per-run tolerance estimation, per-phase timing,
open-search modification discovery, and an output-file manifest. Multi-file
runs render a per-file table with totals.

New -summary_out writes the same data as machine-readable JSON; -no_summary
suppresses the console block. Per-run stats are exposed on
ProSEAlgorithm::SearchResult::stats / MultiFileSearchResult::shared, with
static renderRunSummary()/renderModificationSummary() helpers; the algorithm
no longer auto-prints the old diagnostic/modification-summary log blocks
(rendering moved to the TOPP tool). Stats are recomputed after
Percolator/deferred-FDR so the report reflects the final identifications.

Adds FragmentIndex::getNumFragments() and a TOPP_ProSE_6_summary test.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [ProSE] Fix macOS/Windows build: move summary-JSON serialization into the library

The end-of-search JSON summary included <nlohmann/json.hpp> directly in the ProSE
TOPP tool. nlohmann_json is linked PRIVATE on the OpenMS library, so its include
directory is not propagated to consumers: the tool compiled only on Linux (where
Arrow's transitive CMake config leaks the path) and failed on macOS/Windows with
"'nlohmann/json.hpp' file not found".

Move the serialization into the new static ProSEAlgorithm::renderRunSummaryJson()
in the OpenMS library (which links nlohmann), returning the JSON string; the TOPP
tool just writes it. Mirrors the existing in-library JSON pattern (ProFormaDataJson.h)
and keeps nlohmann an implementation detail. No change to the JSON content.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [ProSE] review fixes: count report decoys by the resolved marker; header self-containment

opus+codex review of the rebase found one report-only bug: the end-of-search report's
db_target_proteins/db_decoy_proteins counts used the hardcoded decoy_prefix_ (prefix-only)
instead of the resolved DecoyStrategy_. Generated decoys (always DECOY_ prefix) counted
correctly, but reused EXTERNAL decoys with a suffix or non-default marker (decoy_mode
"external") were all miscounted as targets -> a self-contradictory "N target proteins,
decoys: external" with db_decoy_proteins=0. Count by strategy.decoy_string/is_prefix
(guarded by have_decoys so target-only/ignore stays all-target). Report/JSON only; search,
PSM target/decoy classification (TARGET_DECOY meta) and FDR were unaffected.

Also add <string>/<utility> includes to ProSEAlgorithm.h for the new renderRunSummaryJson
signature (std::string / std::pair were only transitively available).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [ProSE] Emit the end-of-search summary as YAML (hand-rolled, drop nlohmann)

Replace the -summary_out JSON with hand-rolled YAML, removing the nlohmann/json
dependency from this feature entirely — which dissolves the macOS/Windows build
problem at its root (no library include-path to propagate) rather than working
around it. YAML is also more idiomatic for OpenMS (CWL tool descriptions are YAML).

- renderRunSummaryJson -> renderRunSummaryYaml (still in the library): a small
  emitter that double-quotes every string scalar and escapes all control chars as
  \xNN (so paths/accessions containing ':' , quotes or control bytes round-trip
  safely), emits non-finite numbers as null, forces the classic locale, and writes
  a mantissa dot on bare exponentials ("8e-05" -> "8.0e-05") so YAML 1.1 parsers
  read them as numbers. Same field set / structure as the previous JSON.
- ProSEAlgorithm.cpp no longer includes <nlohmann/json.hpp>.
- Register YAML as a first-class, WRITEABLE FileTypes entry so
  setValidFormats_("yaml") is valid (OpenMS already emits YAML for CWL).
- -summary_out description/format/log messages, the ProSE_9_summary test
  (.json -> .yaml) and the CHANGELOG updated accordingly.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [ProSE] address CodeRabbit review: matched_spectra count + stat-field docs

- matched_spectra: count only identifications that retained a hit, not
  peptide_ids.size(). ProSE pushes one PeptideIdentification per searched spectrum
  (incl. empty non-matches); a caller that collects stats before stripping empties
  (the single-file library path) would over-count matched spectra / ID rate.
  count_if(non-empty) is correct in every path (unchanged where empties were
  already absent, e.g. the multi-file TOPP path: 896/2789 stays 896/2789).
- Docs: target_psms/decoy_psms/matched_spectra are recomputed from the FINAL
  identifications (post-FDR) by collectRunStatistics_/updateFinalStats; the header
  said "BEFORE FDR". Corrected to "final IDs (after FDR, if applied)".

Not changed: CodeRabbit also flagged per-file seconds_search=0 on chunked runs.
That is intentional and documented (~ProSEAlgorithm.cpp:2387): chunk-major scores
one shared index against all files, so per-file search time is not separable; the
console omits the line rather than misreporting, and the cost shows under
index(shared) + the whole-run total.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [ProSE] final review fixes: post-FDR target/decoy in collectRunStatistics_; YAML scope doc

opus+codex final pre-merge review. Two fixes:
- collectRunStatistics_ now computes target_psms/decoy_psms from the (post-FDR) hits it
  is given. Previously only capturePreFdrStats_ (pre-FDR) and updateFinalStats (post-FDR)
  set them, so a library caller reading SearchResult::stats without calling
  updateFinalStats saw PRE-FDR counts despite the "final IDs" doc. The TOPP tool was
  already correct (it calls updateFinalStats); this makes every caller consistent.
- CHANGELOG: the YAML -summary_out omits the console-only modification-discovery section,
  so drop the "same information" claim and list the actual contents.

Confirmed correct by both reviewers (no change): matched_spectra count_if at both sites,
HyperScore pre-FDR capture not overwritten, db target/decoy by resolved marker, chunked
seconds_search=0 intentional + console-omitted, hand-rolled YAML valid across all shapes
(control-char escaping, YAML-1.1 floats), FileTypes WRITEABLE-only, #9644 reconciliation intact.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [pyOpenMS] expose all FileTypes::Type values (add YAML + 9 pre-existing gaps)

The FileType enum binding was non-exhaustive: it omitted YAML (added on this branch)
and 9 pre-existing types (ZIP, IDPARQUET, FEATUREPARQUET, CONSENSUSPARQUET,
CHROMPARQUET, MOBILPARQUET, OSWPQ, BRUKER_TDF, PEFF). Bind all of them so the Python
enum matches C++ (72 real values).

test_FileTypes.py: complete the expected list and add an exhaustiveness assertion
(len(real types) == int(SIZE_OF_TYPE)) so a future FileTypes::Type added in C++ forces
the binding + test to be updated. Verified directly: all 72 values accessible with
correct ints, typeToName(YAML) == 'yaml'.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

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