DeepVariant
Overview
DeepVariant is a deep-learning variant caller developed by Google that reimagines variant calling as an image classification problem. It converts read pileups around candidate variant sites into tensor representations and uses a convolutional neural network to classify each site as homozygous reference, heterozygous, or homozygous alternate. DeepVariant supports whole-genome sequencing (WGS), whole-exome sequencing (WES), and PacBio HiFi data through dedicated model types. It consistently achieves top accuracy in benchmarking studies such as the PrecisionFDA Truth Challenges and requires no manual tuning of quality filters.
Installation
DeepVariant is best run via its official Docker image, which bundles all dependencies and pre-trained models:
docker pull google/deepvariant:1.6.0
Alternatively, a Singularity/Apptainer image can be used on HPC systems where Docker is not available.
Basic Usage
Run DeepVariant on whole-genome sequencing data using Docker.
docker run -v $(pwd):/input -v $(pwd)/output:/output \
google/deepvariant:1.6.0 \
/opt/deepvariant/bin/run_deepvariant \
--model_type=WGS \
--ref=/input/reference.fa \
--reads=/input/sample.sorted.bam \
--output_vcf=/output/sample.vcf.gz \
--num_shards=8
Ensure the reference FASTA has an accompanying .fai index and the BAM file
is sorted and indexed before running.
Key Parameters
Flag / option |
Description |
|---|---|
|
Sequencing type: |
|
Path to the reference genome FASTA file. |
|
Path to the sorted, indexed BAM or CRAM file. |
|
Path for the output VCF file. |
|
Path for an optional gVCF output with reference confidence blocks. |
|
Number of parallel shards for the make_examples step (controls parallelism). |
|
Restrict calling to specific genomic regions (BED file or region string). |
|
Directory for intermediate files; useful for debugging or re-running individual stages. |
Expected Output
sample.vcf.gz– a compressed VCF file containing SNP and indel calls with genotype quality (GQ), genotype likelihoods (GL/PL), and read depth (DP) annotations.sample.vcf.gz.tbi– tabix index for the output VCF.sample.g.vcf.gz– optional gVCF output (when--output_gvcfis specified) for downstream joint genotyping with GLnexus.sample.visual_report.html– an HTML quality report summarising variant statistics and model confidence.