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

Select inherited variants #160

Open
krukanna opened this issue Dec 5, 2023 · 1 comment
Open

Select inherited variants #160

krukanna opened this issue Dec 5, 2023 · 1 comment

Comments

@krukanna
Copy link

krukanna commented Dec 5, 2023

Hello,
Is it possible to select only variants that are definitely inherited from parents, also taking into account alleles?
I tried with function below to control genotypes. But that function don't care for alleles, only genotypes.
--trio "inherited:(mom.het && dad.het && kid.het) || (mom.hom_ref && dad.het && kid.het) || (mom.het && dad.hom_ref && kid.het) || (mom.het && dad.het && kid.hom_alt) || (mom.hom_alt && dad.hom_alt && kid.hom_alt) || (mom.hom_alt && dad.het && kid.hom_alt) || (mom.het && dad.hom_alt && kid.hom_alt)"

I found some cases with multialleles variants, for example:
ref: CA alt: C,CAA GT: mom: 0/1, dad: 0/1, kid: 0/2
So it should be classified as de novo deletion not inherited variant.

Do you have maybe better solution?
Thanks.

@brentp
Copy link
Owner

brentp commented Dec 5, 2023

Hi, slivar will give a warning about multiple alleles. You should decompose your VCF before using with slivar.

You expression otherwise is, I think fine, but it might be easier to enumerate the non-inherited variants and then negate that expression (with !)

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

No branches or pull requests

2 participants