The current GATK version is 3.7-0
Examples: Monday, today, last week, Mar 26, 3/26/04

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Powered by Vanilla. Made with Bootstrap.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.
Register now for the upcoming GATK Best Practices workshop, Feb 20-22 in Leuven, Belgium. Open to all comers! More info and signup at

exclude uncalled variants using SelectVariants

blueskypyblueskypy Member Posts: 266 ✭✭

how to remove those variants with "./."?

Thanks a lot!



  • pdexheimerpdexheimer Member, Dev Posts: 543 ✭✭✭✭

    Sample level selection is troublesome - do you exclude if any are uncalled? If all? Something in between?

    You could probably filter on AN to get what you're looking for - AN should be equal to 2 * (number of called samples), so you could pick a threshold and select that way. Also, there's an excludeNonVariant option that will remove variants that are ./. or 0/0 in all selected samples

  • blueskypyblueskypy Member Posts: 266 ✭✭
    edited November 2013

    hi, Pdexheimer, thanks so much for your help!
    Just to confirm, the "-env" option will also remove "./."?

  • pdexheimerpdexheimer Member, Dev Posts: 543 ✭✭✭✭

    Hmm, perhaps not. It looks like all the relevant tests in VariantContext only make sure that the called alleles are invariant, they completely ignore uncalled alleles. You may have to work directly with AN after all.

    Of course, I could be wrong - this is just my interpretation of the code. If you've got a test case, try it and see!

Sign In or Register to comment.