Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FDR formula #1477

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix FDR formula #1477

wants to merge 1 commit into from

Conversation

Bisho2122
Copy link

Based on the current formulation of the FDR, datasets having high decoy scores can lead to FDR values > 1 leading to loss of some annotations when preparing results by applying a cutoff of FDR < 1 (

result_df = result_df[(result_df.msm > 0) & (result_df.fdr < 1)]
).

This fixes the FDR calculation by adding the weighted decoy term to the denominator as well to make sure that FDR is always [0-1].

Based on the current formulation of the FDR, datasets having high decoy scores can lead to FDR values > 1 leading to loss of some annotations when preparing results by applying a cutoff of FDR < 1 (https://github.com/metaspace2020/metaspace/blob/6661211be8c87c2ff617f2cb8716a128bdc3915d/metaspace/engine/sm/engine/annotation_lithops/prepare_results.py#L74). 

This fixes the FDR calculation by adding the weighted decoy term to the denominator as well to make sure that FDR is always [0-1].
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.

None yet

1 participant