Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

Extracting ONLY heterozygous sites from vcf

I'm trying to extract only heterozygous sites from a file.
I see there is an option --genotypeFilterExpression and -select 'vc.getGenotype("SampleID").isHet()' but I'm confused about usage.

I tried
-select 'vc.getGenotype("mysample").isHet()' with the select variants, but nothing happened.
Is it a two step process?

Its noteworthy I'm working with a single sample vcf....


Sign In or Register to comment.