-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove check on PL values when computing local alleles #285
base: main
Are you sure you want to change the base?
Remove check on PL values when computing local alleles #285
Conversation
Just disabling the check on PL values doesn't seem to help, so I took out the check on AD also. We should just be getting back the GTs now. This does definitely help:
I don't think we've quite got it right though, because if we're just doing local alleles based on the genotypes, the local alleles should all be biallelic and therefore the LPL field should have dimension 3. So there's definitely problems, but we're on the right track. |
In the case where the LAA has two alternate alleles, vcztools outputs 6 LPL values because the reference allele is always "included". This is necessary because the LAA field does not indicate whether the reference allele is included or not. See LAA definition in VCF 4.5. |
Aha yes, that's true, good point. I don't know why the VCF standard decided to list just the non-ref alleles, that seems like an obvious waste here. Oh well, that's the standard, there's no point in thinking too hard about it.
If you could pick this up and fix the tests that would be super helpful, thanks @Will-Tyler ! |
WIP - hopefully closes #277