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

make-gnotate, gnomAD filter field. #135

Open
Elliott77 opened this issue Jul 6, 2022 · 9 comments
Open

make-gnotate, gnomAD filter field. #135

Elliott77 opened this issue Jul 6, 2022 · 9 comments

Comments

@Elliott77
Copy link

Can I use slivar make-gnotate to get the gnomAD (v3.1) FILTER field e.g. "##FILTER=<ID=PASS" Description="All filters passed"?
Thanks!

@brentp
Copy link
Owner

brentp commented Jul 6, 2022

Hi Elliot, the FILTER field is automatically encoded into the variant, but only as a PASS or not. So if you create a gnotate file (or use the ones provided) you will get a flag that indicates if the variant was PASS or not.
If you need the actual flag that's a lot more difficult with slivar.

@Elliott77
Copy link
Author

Thanks Brent!

@Elliott77
Copy link
Author

In my "slivar expr" command I include:
--info (variant.FILTER == 'PASS')
Does that refer to the PASS field in my VCF of the the one in the gnomad.zip file?
Thanks!

@brentp
Copy link
Owner

brentp commented Jul 6, 2022

If you annotate, you'll see an extra slivar field for every field in that gnotate file, so e.g. gnomad_popmax_af_filter. (This is wasteful because you get a _filter field for every field in the gnotate file, but that's how it is for now).

You can use that as:

--info '("gnomad_popmax_af_filter" in INFO) && otherstuff'

@brentp
Copy link
Owner

brentp commented Jul 6, 2022

... and variant.FILTER always refers to the FILTER in your VCF.

@Elliott77
Copy link
Author

Thanks Brent. So, in making the gnotate file with make-gnotate, can I only include INFO fields? Can I not get the "##FILTER=<ID=PASS" Description="All filters passed" field from the gnomAD VCF? Thanks!

@brentp
Copy link
Owner

brentp commented Jul 7, 2022

not explicitly. only via the mechanism I described that stored a boolean for the variant indicating PASS or not.
If you want the filter, you'd have to do something to get the filter into the INFO as an integer field (presumably a lookup into the possible FILTER fields).

@Elliott77
Copy link
Author

Thanks Brent,
It's still not clear to me how to make use of the 'PASS' field from the gnomAD VCF (v3.1) with make-gnotate and then in a subsequent Slivar search. How do I store a boolean indicating gnomAD PASS or not and how will I access that boolean from the gnomad.zip file in a Slivar search?

@brentp
Copy link
Owner

brentp commented Jul 13, 2022

Hi Elliot, you don't need to do anything, it will be encoded (and annotated) automatically.

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