Conversation
mschwoer
commented
Mar 30, 2026
Comment on lines
+125
to
+132
| except TooFewPSMError: | ||
| logger.warning( | ||
| "Too few PSMs for FDR classification, assigning qval=1.0 and proba=1.0 to all PSMs." | ||
| ) | ||
| psm_df = pd.concat([df_target, df_decoy]) | ||
| psm_df["qval"] = 1.0 | ||
| psm_df["proba"] = 1.0 | ||
| return psm_df |
Collaborator
Author
There was a problem hiding this comment.
This I am not sure about: we catch the error where it occurs and put the output together such that downstream tasks continue. There's two views on this
a) why does this method know what the downstream code filters for? (qval)
b) this method does FDR and knows what to output in case it fails (qval)
alternatives could be that the downstream code handles the TooFewPSMError explicitly
what do you think @GeorgWa ?
451a312 to
ee111b0
Compare
ee111b0 to
08ff6c1
Compare
GeorgWa
approved these changes
Apr 13, 2026
Collaborator
GeorgWa
left a comment
There was a problem hiding this comment.
As discussed in person, accepted
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.
Related to #806 (comment)
We should not fail if one of the batches yields no results.
Not sure about this is the best implementation, though.