Written and maintained by CASRAI Editorial Board
Published · Last updated
On this page
GATK (the Genome Analysis Toolkit) is an open-source, Apache 2.0 licensed toolkit from the Broad Institute for analysing high-throughput sequencing data, best known for calling germline SNPs and indels with its HaplotypeCaller tool. This guide is for lab and computational biology researchers who need to install it, run a first variant-calling job and interpret what comes out. Facts below were read from the project’s GitHub repository and tool documentation on 2026-11-12.
What GATK is used for in research
GATK began as a Java MapReduce-style framework for next-generation sequencing analysis tools (“walkers”), which separates the analysis logic from data handling (McKenna et al., Genome Research 2010;20(9):1297-1303, doi:10.1101/gr.107524.110). GATK4, the current major version, aims to bring together GATK and Picard tools in one command-line program.
Its most-used tool is HaplotypeCaller, which calls SNPs and indels by local de novo assembly of haplotypes in “active regions” of the genome. For each active region it assembles candidate haplotypes (using a De Bruijn-like graph and Smith-Waterman alignment), scores reads against each haplotype with a PairHMM, and assigns genotypes with Bayes’ rule.
| Task | Tool | Note from the tool documentation |
|---|---|---|
| Germline SNP and indel calling | HaplotypeCaller | Input is a BAM; output is a VCF or GVCF of raw, unfiltered calls. |
| Joint genotyping of per-sample GVCFs | GenotypeGVCFs | Takes a GVCF (or a GenomicsDB workspace) and writes a VCF. |
| Somatic variant calling | Mutect2 | HaplotypeCaller is not recommended for somatic calling; use Mutect2. |
For a comparison with a deep-learning caller, see DeepVariant vs GATK HaplotypeCaller.
How to install or access it
| Requirement | Detail (GATK README) |
|---|---|
| Java | Java 17 is needed to run or build GATK. |
| Python | The gatk wrapper script needs Python 3.9 or later. |
| Python environment | Create with Miniconda: conda env create -f gatkcondaenv.yml, then source activate gatk. |
| Download | Release zip files on the project’s GitHub releases page. The latest release tag when read was 4.7.0.0 (published 2026-08-18). |
| Container | Docker Hub image broadinstitute/gatk; GATK runs from /gatk. The image includes bedtools 2.30.0, samtools 1.13, bcftools 1.13, tabix, Python 3.10.13 and R 4.3.1. |
The source repository is github.com/broadinstitute/gatk. Always launch GATK through the gatk wrapper: running java -jar directly bypasses the wrapper and leaves some system properties unset.
Check the installation and explore tools with:
./gatk --help
./gatk --list
./gatk ToolName --help
Step-by-step: call germline variants from a BAM
Inputs are a reference FASTA (the documentation examples use Homo_sapiens_assembly38.fasta) and an aligned BAM file. See What is a BAM file and reference genome analysis sets for the inputs.
- Call per-sample variants as a GVCF. The HaplotypeCaller documentation example is:
gatk --java-options "-Xmx4g" HaplotypeCaller -R Homo_sapiens_assembly38.fasta -I input.bam -O output.g.vcf.gz -ERC GVCF - Joint-genotype the GVCF. The GenotypeGVCFs documentation example is:
gatk --java-options "-Xmx4g" GenotypeGVCFs -R Homo_sapiens_assembly38.fasta -V input.g.vcf.gz -O output.vcf.gzFor a GenomicsDBImport workspace, use
-V gendb://my_databasewith--tmp-dir /path/to/large/tmp. - Filter the calls. HaplotypeCaller output is raw and unfiltered. The documentation names variant recalibration as the Best Practice, with hard filtering as the alternative.
To call straight to a VCF instead of a GVCF, omit -ERC GVCF. Adding -bamout bamout.bam writes the reads as realigned by HaplotypeCaller, useful for inspecting a call. A recommended speed-up is to supply an interval list.
Output and how to read it
HaplotypeCaller writes a VCF, or a GVCF when run with -ERC GVCF or BP_RESOLUTION. In both cases the calls are raw and must be filtered before use. A GVCF must go through GenotypeGVCFs, then filtering, to give a final callset. When a GVCF mode is used, the confidence threshold is set automatically to 0 and applied later at GenotypeGVCFs. To read the records themselves, see Reading a VCF file, and for the difference between the two formats, gVCF vs VCF.
Troubleshooting
| Situation | What the documentation says |
|---|---|
| Memory errors or slow runs | Pass Java options through the wrapper, e.g. --java-options "-Xmx4G"; supply an interval list to HaplotypeCaller to speed it up. |
Odd behaviour when launched with java -jar |
Use the gatk wrapper; direct jar launch leaves some system properties unset. |
| PCR-free sequencing data | Use -pcr_indel_model NONE with HaplotypeCaller. |
| Non-diploid samples | Set -ploidy; for region-specific ploidy use --ploidy-regions with a BED or interval_list file. |
| Spark tools | Spark tool names end in Spark. Run locally with --spark-runner LOCAL --spark-master 'local[4]', with Spark arguments placed after --. |
Free alternatives
| Option | What it is | Where to read more |
|---|---|---|
| DeepVariant | Alternative germline variant caller | DeepVariant vs GATK HaplotypeCaller |
FAQ
What does GATK stand for?
Genome Analysis Toolkit. It is a Broad Institute toolkit for sequencing data analysis, released under the Apache 2.0 licence.
Is GATK free?
The source code is Apache 2.0 licensed and released on GitHub.
Which Java version does GATK need?
Java 17, per the project README (read 2026-11-12).
Can I use HaplotypeCaller for tumour samples?
The tool documentation does not recommend it for somatic calling; it points to Mutect2.
Are HaplotypeCaller calls ready to use?
No. Output is raw and unfiltered and needs variant recalibration or hard filtering.
Sources
- Broad Institute, GATK repository and README, github.com/broadinstitute/gatk, read 2026-11-12.
- HaplotypeCaller and GenotypeGVCFs tool documentation (source javadoc in the same repository), read 2026-11-12.
- McKenna A et al. The Genome Analysis Toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data. Genome Research 2010;20(9):1297-1303. doi:10.1101/gr.107524.110.







