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

Fixing what looks like a a bug in MendelianViolationEvaluator #9080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lbergelson
Copy link
Member

  • there was a duplicated condition which looks like a typo and causes nNoCall to be undercounted

@bbimber
mv.getFamilyCalledCount was 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.

* there was a duplicated condition which looks like a typo and causes nNoCall to be undercounted
@bbimber
Copy link
Contributor

bbimber commented Jan 15, 2025

@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:

        if(mv.getFamilyCalledCount()>0 || mv.getFamilyLowQualsCount()>0 || mv.getFamilyNoCallCount())

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".

            if(mv.getFamilyCalledCount()>0 || mv.getFamilyLowQualsCount()>0 || mv.getFamilyCalledCount()>0){
                nVariants++;
                nFamCalled += mv.getFamilyCalledCount();
                nLowQual += mv.getFamilyLowQualsCount();
                nNoCall += mv.getFamilyNoCallCount();
                nVarFamCalled += mv.getVarFamilyCalledCount();
            }

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.

2 participants