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

Enable SelectVariants to drop specific annotation fields when subsetting a callset #5235

Closed
vdauwera opened this issue Sep 28, 2018 · 0 comments
Assignees
Labels
Annotations enhancement learn GATK Suitable for GATK beginners

Comments

@vdauwera
Copy link
Contributor

Feature request

Tool involved: SelectVariants

Description

When subsetting a few samples from a large callset, many annotation fields become irrelevant clutter. These can be removed post-hoc but it would be great to be able to just remove them during the subsetting operation. The syntax for specifying what to drop could be similar to the syntax for selecting fields to extract using VariantsToTable. For example, I could do:

gatk SelectVariants -V my.vcf -O subset.vcf -sn MySampleName -DF some_info_annot -DGF some_genotype_annot 

Where -DF / --drop-field and -DGF / --drop-genotype-field lead to the resulting VCFs not having those annotation fields anymore (ie they are removed from all records and from the header).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Annotations enhancement learn GATK Suitable for GATK beginners
Projects
None yet
Development

No branches or pull requests

2 participants