Skip to content

[FEATURE,API] ProSEAlgorithm: applyCompleteSetProteinFDR returns whether it applied the FDR; remove_decoys - #10704

Merged
timosachsenberg merged 3 commits into
developfrom
claude/prose-protein-fdr-applied
Oct 23, 2026
Merged

timosachsenberg merged 3 commits into
developfrom
claude/prose-protein-fdr-applied

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

ProSEAlgorithm::applyCompleteSetProteinFDR now:

  • returns bool: whether the picked-protein FDR was actually applied. It returns false when the decoy marker is empty, or when no decoy protein is left after inference.
  • takes bool remove_decoys = true. With false the decoy proteins are kept, as mergeFileResults() does.

Existing callers are unchanged. They ignore the return value, and the default keeps today's behaviour.

Why

CodeRabbit found this on #10676. BasicProteinInferenceAlgorithm keeps only the best hit per spectrum, so a run can end up without decoy proteins, for example with top_hits 5 and FDR:PSM 0. The function then skipped the FDR silently, and a caller could not tell. #10676 needs the result to record protein_fdr_applied correctly in its QPX provenance.

Tests

ProSEAlgorithm_test covers the applied case, the case with no decoy left and the case with an empty marker, plus remove_decoys = false. The TOPP_ProSE tests are unchanged and pass.

Part of the split of #10676.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Protein FDR filtering can now retain decoy proteins and their passing peptide-spectrum matches instead of removing them. The default behavior continues to remove decoys.
    • The filtering operation now reports whether FDR was applied, including when it is skipped because decoy information is unavailable or no decoy proteins remain after inference.

timosachsenberg and others added 3 commits October 23, 2026 06:41
@timosachsenberg
timosachsenberg marked this pull request as ready for review October 23, 2026 06:29
@timosachsenberg timosachsenberg changed the title [FEATURE] ProSEAlgorithm: applyCompleteSetProteinFDR returns whether it applied the FDR; remove_decoys [FEATURE,API] ProSEAlgorithm: applyCompleteSetProteinFDR returns whether it applied the FDR; remove_decoys Oct 23, 2026
@OpenMS OpenMS deleted a comment from coderabbitai Bot Oct 23, 2026
@timosachsenberg
timosachsenberg merged commit 6238033 into develop Oct 23, 2026
32 checks passed
@timosachsenberg
timosachsenberg deleted the claude/prose-protein-fdr-applied branch October 23, 2026 08:15
timosachsenberg pushed a commit that referenced this pull request Oct 23, 2026
PR #10704, on which this branch was based, was squash-merged into develop; the conflicts
were the #10704 hunks next to this branch's changes (identical on both sides).

Co-Authored-By: Claude Opus 5.5 <[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