Skip to content

Commit

Permalink
Fall back to the linear FDR estimation approach when fuse_count < dec…
Browse files Browse the repository at this point in the history
…oy_count. This change will affect the results a lot in some cases.
  • Loading branch information
fcyu committed Jul 4, 2018
1 parent 555c635 commit 79b9123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/proteomics/Validation/CalFDR.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static Map<String, Entry> calFDR(String sqlPath, boolean cal_evalue, Stri
fdr = 0;
} else if (fuse_count < decoy_count) {
printWarning = true;
fdr = 0;
fdr = (double) (fuse_count + decoy_count) / (double) target_count;
} else {
fdr = (double) (fuse_count - decoy_count) / (double) target_count;
}
Expand Down

0 comments on commit 79b9123

Please sign in to comment.