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

Variant filter representation #194

nealsid opened this issue Mar 28, 2014 · 4 comments

Variant filter representation #194

nealsid opened this issue Mar 28, 2014 · 4 comments


Copy link

@nealsid nealsid commented Mar 28, 2014

VCF format specifies that the FILT column can take on the following values:

"PASS" - variant passed all filters
Comma-separated list of failing filters - filters that the variant call failed
"." - no filter applied

(see for a discussion on the output of the haplotype caller)

Right now, we have two fields in VariantCallingAnnotations:

boolean variantIsPassing
array<string> variantFilters

This table indicates the value of each variable for the different scenarios:

Scenario variantIsPassing variantFilters
Variant Passed true empty
Variant failed filter false failing filter list
No filters applied true empty

@mlinderm brought up that there is some ambiguity - we don't know the difference between variant passing and no filters applied without checking another field (the list of filters applied), and also people doing analysis were only likely to check the boolean, since that's what is done with the VCF field. The proposal is to go back to the original way, which was:

union { null, boolean }  variantIsFiltered = null;
array<string> failingFilters = null;

New table:

Scenario variantIsFiltered failingFilters
Variant Passed false empty
Variant failed filter true failing filter list
No filters applied null empty

Note that in the case where the variant passed, the passing filters should still be available from the VCF header.


@tdanford tdanford added the discussion label Jun 10, 2014
Copy link

@tdanford tdanford commented Jun 10, 2014

Neal, I presume you're still waiting for comments on this one?

Copy link

@heuermh heuermh commented Oct 7, 2015

See also:
Adding quality, filtersFailed, and filtersPassed to Variant ga4gh/ga4gh-schemas#304

Copy link

@fnothaft fnothaft commented Jul 6, 2016

Shall we close this?

Copy link

@heuermh heuermh commented Nov 15, 2016

Fixed by #1250

@heuermh heuermh closed this Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.