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

fixed Mutect2 bug that overfiltered by one variant #6101

Merged
merged 2 commits into from
Aug 21, 2019
Merged

Conversation

davidbenjamin
Copy link
Contributor

@takutosato This fixes two sources of the bug:

  • Threshold was equal to the error probability of the worst unfiltered variant, but filtering was based on errorProbability > threshold - EPSILON, which ends up filtering this variant.
  • Threshold was adjusted and filtering parameters were changed on the last pass, which means that error probabilities could shift slightly relative to those used to set the threshold.

@@ -104,7 +104,7 @@
private static final int NUMBER_OF_LEARNING_PASSES = 2;

@Override
protected int numberOfPasses() { return NUMBER_OF_LEARNING_PASSES + 1; }
protected int numberOfPasses() { return NUMBER_OF_LEARNING_PASSES + 2; } // {@coode NUMBER_OF_LEARNING_PASSES} passes for learning, one for the threshold, and one for calling
Copy link
Contributor

Choose a reason for hiding this comment

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

coode -> code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants