If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

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.
We will be out of the office on October 14, 2019, due to the U.S. holiday. We will return to monitoring the forum on October 15.

Specify vcf fileformat

After running gatk, I further process the VCF file using pyvcf, which only supports VCFv4.1. With gatk3.6, it gets confused by the ##FORMAT, Number=R setting, which is new in VCFv4.2.

Is there a way to 'downgrade' a VCF file to an earlier format, or to instruct the GATK to output a certain version of the VCF file format?



  • Geraldine_VdAuweraGeraldine_VdAuwera admin Cambridge, MAMember, Administrator, Broadie admin
    No that's not possible, sorry. You should tell the pyvcf developers they need to upgrade to the 4.2 spec. It's already been out for quite awhile.

    What do you need to do with pyvcf? Maybe we can recommend a GATK way to do it, to keep you moving.
  • Redmar_van_den_BergRedmar_van_den_Berg ✭✭ Member ✭✭

    Thank you for your response. I can use variantsToTable as a work around, so I'm not stuck waiting for pyvcf to support 4.2

    I will also contact the developer of pyvcf about this issue. I know the specs are at, are there other resources that could come in handy for developers (such as an example 4.2 vcf file with all options enabled)?

  • Geraldine_VdAuweraGeraldine_VdAuwera admin Cambridge, MAMember, Administrator, Broadie admin

    OK, glad to hear you're not stuck. I'm not aware of anything intended for developers beyond the VCF spec itself, I'm afraid.

Sign In or Register to comment.