Fixing what looks like a a bug in MendelianViolationEvaluator#9080
Open
lbergelson wants to merge 1 commit intomasterfrom
Open
Fixing what looks like a a bug in MendelianViolationEvaluator#9080lbergelson wants to merge 1 commit intomasterfrom
lbergelson wants to merge 1 commit intomasterfrom
Conversation
* there was a duplicated condition which looks like a typo and causes nNoCall to be undercounted
Contributor
|
@lbergelson, thanks for checking. We do run this with VariantQC, but I dont think people (at least not me) use this particular Evaluator much. Looking at the code, the intention seems to be to skip not-called sites. Therefore if the condition is changed to: then would that ever be false? It seems like the family either has a non-zero mv.getFamilyCalledCount() or a non-zero getFamilyNoCallCount(), doesnt it? If so, what's the point of even testing that condition? I dont know that I'm right about this, but if that is correct then the other route is to just drop the redundant "mv.getFamilyCalledCount()>0". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@bbimber
mv.getFamilyCalledCountwas used twice as the condition in this if statement, I'm pretty sure it was a typo. As far as I know you're the one using this code so I want to check with you before changing it.