-
Notifications
You must be signed in to change notification settings - Fork 592
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
Filter M2 calls that are near other filtered calls on the same haplotype #5092
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidbenjamin Minor stuff. Feel free to merge after you address the comments.
* will not exceed the requested false positive rate | ||
* | ||
* @param posteriors A list of posterior probabilities, which gets sorted | ||
* @param requestedFPR We set the filtering threshold such that the FPR doesn't exceed this value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a public static method, please document and have checks for requestedFPR. For example, can it be negative?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
import java.io.IOException; | ||
import java.util.*; | ||
|
||
public class FilteringFirstPass { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some class javadoc? Would like to know how this fits in the grand scheme of things...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
c961829
to
30a4073
Compare
Codecov Report
@@ Coverage Diff @@
## master #5092 +/- ##
===============================================
+ Coverage 86.478% 86.485% +0.006%
- Complexity 29155 29168 +13
===============================================
Files 1813 1813
Lines 135228 135256 +28
Branches 15023 15027 +4
===============================================
+ Hits 116943 116976 +33
+ Misses 12825 12818 -7
- Partials 5460 5462 +2
|
@LeeTL1220 This gets rid of a bunch of false positives with no effect on sensitivity. It also does some useful refactoring of the filtering engine in order to exploit Takuto's two-pass formalism for more filters than just OB.