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

Simple way to have VariantsToTable output all fields. Just want the entire VCF as a table. #7677

Closed
abalter opened this issue Feb 16, 2022 · 4 comments · Fixed by #7911
Closed
Assignees
Labels

Comments

@abalter
Copy link

abalter commented Feb 16, 2022

I'm trying, for example,

gatk VariantsToTable -V clinvar.vcf -O clinvar.tsv

It goes through the motions and displays progress. The output file is created, and it has the right number of lines. But the lines are all empty!

Maybe add a default value to the -F switch?

@droazen
Copy link
Collaborator

droazen commented Feb 24, 2022

@abalter Having -F default to all the fields in the VCF is a good suggestion -- the current behavior is definitely not intuitive.

@abalter
Copy link
Author

abalter commented Mar 2, 2022

@droazen -- is there a way to simply list all the possible fields in the header? Then I could use that list to create an input for the -F flag.

@droazen
Copy link
Collaborator

droazen commented Mar 7, 2022

@abalter The complete list of fields should be present in the VCF header, but unfortunately I don't know of a convenient way to extract them apart from the manual method. It would be pretty simple to write a script or GATK tool to parse the VCF header and list all the fields, but the best solution would be to patch the VariantToTable to default -F to all the fields, as discussed above.

@slagelwa
Copy link

@abalter The complete list of fields should be present in the VCF header

Key word here is "should be", which isn't always the case.

droazen pushed a commit that referenced this issue Jun 30, 2022
VariantsToTable now outputs all fields declared in the VCF header when no fields are selected. 

Added integration tests to cover this new functionality

Fixes #7677
orlicohen added a commit that referenced this issue Jul 18, 2022
VariantsToTable now outputs all fields declared in the VCF header when no fields are selected. 

Added integration tests to cover this new functionality

Fixes #7677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants