We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
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 for a Broad Institute event from Dec 10th to Dec 11th 2019. We will be back to monitor the GATK forum on Dec 12th 2019. In the meantime we encourage you to help out other community members with their queries.
Thank you for your patience!
'CombineVariants' is not a valid command

Hi there,
First post, apologies for any social faux pas.
I'm working towards a BSc(Hons) in genetics, and working with RNA-seq data for CRC and liver metastastic tumours. No normal tissue samples, I'm afraid.
I'm currently just trying to merge VCF files (one from BCFTools, the other from Freebayes) of the same sample using gatk3's "CombineVariants", when I get the above error. I'm using Snakemake to help automate this process, and my current command for the merging rule is as follows:
rule merge_vcf:
Merge VCF files and uniquify novel calls via GATK3
input: bvcf = join(VARDIR, "{SAMPLE}.bcf.vcf"), fvcf = join(VARDIR, "{SAMPLE}.free.vcf") output: mvcf = temp(join(VARDIR, "{SAMPLE}.merged.vcf")) log: log1 = join(LOGDIR, "merged/{SAMPLE}.stdout"), log2 = join(LOGDIR, "merged/{SAMPLE}.stderr") benchmark: join(BENCHDIR, "merged/{SAMPLE}.txt") conda: "envs/gatk.yaml" shell: """ nice gatk \ CombineVariants \ -R {GENOME} \ --variant {input.bvcf} \ --variant {input.fvcf} \ -o {output.mvcf} \ -genotypeMergeOptions UNIQUIFY \ > {log.log1} \ 2> {log.log2} """
I'm not sure what I've done wrong, as I based the command line from the GATK website (https://software.broadinstitute.org/gatk/documentation/tooldocs/3.8-0/org_broadinstitute_gatk_tools_walkers_variantutils_CombineVariants.php), with some tweaks to get it working on Snakemake.
Any help would be appreciated, and hopefully aid with the addition of other GATK tools in the future (such as those suggested in the RNA-seq GATK best practises).
Thanks in advance!
Best Answers
-
dbecker Munich ✭✭✭
Hi,
in GATK3 you have to specify the tool you use with '-T'. So you have to do:
gatk \ -T CombineVariants \ -R {GENOME} \ [...]
Best,
Daniel -
dbecker Munich ✭✭✭
Hi,
the tool you are looking for is either CombineGVCFs https://software.broadinstitute.org/gatk/documentation/tooldocs/current/org_broadinstitute_hellbender_tools_walkers_CombineGVCFs.php or GatherVcfs https://software.broadinstitute.org/gatk/documentation/tooldocs/current/picard_vcf_GatherVcfs.php
Best,
Daniel
Answers
Hi,
in GATK3 you have to specify the tool you use with '-T'. So you have to do:
Best,
Daniel
Hi @TomWillDo
As @dbecker mentioned you have to use tools with
-T
option.Regards
Bhanu
Sorry for not getting back to you before now, I only just saw the notification.
Thanks for your help regardless!
EDIT: As an aside, it doesn't look like there's a CombineVariants for GATK4. Has this been replaced by another tool? I'm basically now trying to produce a simple ensemble variant calling pipeline and then filter out variants not called by X number of callers. I think CombineVariant's UNIQUIFY option would allow me to do this, but if GATK3 is no longer being supported maybe I should consider a change to GATK4's tools?
Hi,
the tool you are looking for is either CombineGVCFs https://software.broadinstitute.org/gatk/documentation/tooldocs/current/org_broadinstitute_hellbender_tools_walkers_CombineGVCFs.php or GatherVcfs https://software.broadinstitute.org/gatk/documentation/tooldocs/current/picard_vcf_GatherVcfs.php
Best,
Daniel