Skip to content

Fix FDR formula#1477

Open
Bisho2122 wants to merge 1 commit intometaspace2020:masterfrom
Bisho2122:FDR_fix
Open

Fix FDR formula#1477
Bisho2122 wants to merge 1 commit intometaspace2020:masterfrom
Bisho2122:FDR_fix

Conversation

@Bisho2122
Copy link
Copy Markdown
Collaborator

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.

1 participant