Skip to content

Continue on failed fdr#809

Merged
mschwoer merged 5 commits intomainfrom
continue-on-failed-FDR
Apr 13, 2026
Merged

Continue on failed fdr#809
mschwoer merged 5 commits intomainfrom
continue-on-failed-FDR

Conversation

@mschwoer
Copy link
Copy Markdown
Collaborator

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.

Comment thread alphadia/fdr/fdr.py
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
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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 ?

@mschwoer mschwoer force-pushed the continue-on-failed-FDR branch from 451a312 to ee111b0 Compare March 30, 2026 09:02
Base automatically changed from expand_paths to main April 2, 2026 08:49
@mschwoer mschwoer force-pushed the continue-on-failed-FDR branch from ee111b0 to 08ff6c1 Compare April 8, 2026 07:54
@mschwoer mschwoer added the test:e2e End to end tests will be run on PRs that carry this label. label Apr 8, 2026
@mschwoer mschwoer requested a review from GeorgWa April 10, 2026 14:18
Copy link
Copy Markdown
Collaborator

@GeorgWa GeorgWa left a comment

Choose a reason for hiding this comment

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

As discussed in person, accepted

@mschwoer mschwoer merged commit 9e66406 into main Apr 13, 2026
17 checks passed
@mschwoer mschwoer deleted the continue-on-failed-FDR branch April 13, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:e2e End to end tests will be run on PRs that carry this label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants