Repository navigation
[FEATURE,API] ProSEAlgorithm: applyCompleteSetProteinFDR returns whether it applied the FDR; remove_decoys - #10704
Merged
Conversation
…it applied the FDR; remove_decoys Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the ProSE tool Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
timosachsenberg
marked this pull request as ready for review
October 23, 2026 06:29
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]>
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ProSEAlgorithm::applyCompleteSetProteinFDRnow:bool: whether the picked-protein FDR was actually applied. It returnsfalsewhen the decoy marker is empty, or when no decoy protein is left after inference.bool remove_decoys = true. Withfalsethe decoy proteins are kept, asmergeFileResults()does.Existing callers are unchanged. They ignore the return value, and the default keeps today's behaviour.
Why
CodeRabbit found this on #10676.
BasicProteinInferenceAlgorithmkeeps only the best hit per spectrum, so a run can end up without decoy proteins, for example withtop_hits 5andFDR:PSM 0. The function then skipped the FDR silently, and a caller could not tell. #10676 needs the result to recordprotein_fdr_appliedcorrectly in its QPX provenance.Tests
ProSEAlgorithm_testcovers the applied case, the case with no decoy left and the case with an empty marker, plusremove_decoys = false. The TOPP_ProSE tests are unchanged and pass.Part of the split of #10676.
🤖 Generated with Claude Code
Summary by CodeRabbit