Variant Call Format Explained

Variant Call Format
Extension:.vcf
Developer:1000 Genomes Project
Type:Bioinformatics
Latest Release Version:4.5
Genre:Genomic sequence format
Extended From:Tab-separated values
Extended To:gVCF
Open:Yes

The Variant Call Format or VCF is a standard text file format used in bioinformatics for storing gene sequence variations. The format was developed in 2010 for the 1000 Genomes Project and has since been used by other large-scale genotyping and DNA sequencing projects.[1] [2] VCF is a common output format for variant calling programs due to its relative simplicity and scalability.[3] [4] Many tools have been developed for editing and manipulating VCF files, including VCFtools, which was released in conjunction with the VCF format in 2011, and BCFtools, which was included as part of SAMtools until being split into an independent package in 2014.[5]

The standard is currently in version 4.5,[6] [7] although the 1000 Genomes Project has developed its own specification for structural variations such as duplications, which are not easily accommodated into the existing schema.[8]

Additional file formats have been developed based on VCF, including genomic VCF (gVCF). gVCF is an extended format which includes additional information about "blocks" that match the reference and their qualities.[9] [10]

Example

##fileformat=VCFv4.3 ##fileDate=20090805 ##source=myImputationProgramV3.1 ##reference=file:///seq/references/1000GenomesPilot-NCBI36.fasta ##contig= ##phasing=partial ##INFO= ##INFO= ##INFO= ##INFO= ##INFO= ##INFO= ##FILTER= ##FILTER= ##FORMAT= ##FORMAT= ##FORMAT= ##FORMAT= #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA00001 NA00002 NA00003 20 14370 rs6054257 G A 29 PASS NS=3;DP=14;AF=0.5;DB;H2 GT:GQ:DP:HQ 0|0:48:1:51,51 1|0:48:8:51,51 1/1:43:5:.,. 20 17330 . T A 3 q10 NS=3;DP=11;AF=0.017 GT:GQ:DP:HQ 0|0:49:3:58,50 0|1:3:5:65,3 0/0:41:3 20 1110696 rs6040355 A G,T 67 PASS NS=2;DP=10;AF=0.333,0.667;AA=T;DB GT:GQ:DP:HQ 1|2:21:6:23,27 2|1:2:0:18,2 2/2:35:4 20 1230237 . T . 47 PASS NS=3;DP=13;AA=T GT:GQ:DP:HQ 0|0:54:7:56,60 0|0:48:4:51,51 0/0:61:2 20 1234567 microsat1 GTC G,GTCT 50 PASS NS=3;DP=9;AA=G GT:GQ:DP 0/1:35:4 0/2:17:2 1/1:40:3

The VCF header

The header begins the file and provides metadata describing the body of the file. Header lines are denoted as starting with . Special keywords in the header are denoted with . Recommended keywords include, and .

The header contains keywords that optionally semantically and syntactically describe the fields used in the body of the file, notably INFO, FILTER, and FORMAT (see below).

The columns of a VCF

The body of VCF follows the header, and is tab separated into 8 mandatory columns and an unlimited number of optional columns that may be used to record other information about the sample(s). When additional columns are used, the first optional column is used to describe the format of the data in the columns that follow.

Name Brief description (see the specification for details).
1 CHROM The name of the sequence (typically a chromosome) on which the variation is being called. This sequence is usually known as 'the reference sequence', i.e. the sequence against which the given sample varies.
2 POS The 1-based position of the variation on the given sequence.
3 ID The identifier of the variation, e.g. a dbSNP rs identifier, or if unknown a ".". Multiple identifiers should be separated by semi-colons without white-space.
4 REF The reference base (or bases in the case of an indel) at the given position on the given reference sequence.
5 ALT The list of alternative alleles at this position.
6 QUAL A quality score associated with the inference of the given alleles.
7 FILTER A flag indicating which of a given set of filters the variation has failed or PASS if all the filters were passed successfully.
8 INFO    An extensible list of key-value pairs (fields) describing the variation. See below for some common fields. Multiple fields are separated by semicolons with optional values in the format: <key>=<data>[,data].
9 FORMAT An (optional) extensible list of fields for describing the samples. See below for some common fields.
+ SAMPLEs For each (optional) sample described in the file, values are given for the fields listed in FORMAT

Common INFO fields

Arbitrary keys are permitted, although the following sub-fields are reserved (albeit optional):[6]

Name Brief description
AA ancestral allele
AC allele count in genotypes, for each ALT allele, in the same order as listed
AF allele frequency for each ALT allele in the same order as listed (use this when estimated from primary data, not called genotypes)
AN total number of alleles in called genotypes
BQ RMS base quality at this position
CIGAR cigar string describing how to align an alternate allele to the reference allele
DB dbSNP membership
DP combined depth across samples, e.g. DP=154
END end position of the variant described in this record (for use with symbolic alleles)
H2 membership in hapmap2
H3 membership in hapmap3
MQ RMS mapping quality, e.g. MQ=52
MQ0 Number of MAPQ

0 reads covering this record

NS Number of samples with data
SB strand bias at this position
SOMATIC indicates that the record is a somatic mutation, for cancer genomics
VALIDATED validated by follow-up experiment
1000G membership in 1000 Genomes
Any other info fields are defined in the .vcf header.

Common FORMAT fields

Name Brief description
AD Read depth for each allele
ADF Read depth for each allele on the forward strand
ADR Read depth for each allele on the reverse strand
DP Read depth
EC Expected alternate allele counts
FT Filter indicating if this genotype was “called”
GL Genotype likelihoods
GP Genotype posterior probabilities
GQ Conditional genotype quality
GT Genotype
HQ Haplotype quality
MQ RMS mapping quality
PL Phred-scaled genotype likelihoods rounded to the closest integer
PQ Phasing quality
PS Phase set
Any other format fields are defined in the .vcf header.

See also

External links

Notes and References

  1. Danecek . Petr . Auton . Adam . Abecasis . Goncalo . Albers . Cornelis A. . Banks . Eric . DePristo . Mark A. . Handsaker . Robert E. . Lunter . Gerton . Marth . Gabor T. . Sherry . Stephen T. . McVean . Gilean . Durbin . Richard . 2011-08-01 . The variant call format and VCFtools . Bioinformatics . 27 . 15 . 2156–2158 . 10.1093/bioinformatics/btr330 . 1367-4803 . 3137218 . 21653522.
  2. News: Ossola . Alexandra . 20 March 2015 . The Race to Build a Search Engine for Your DNA . . 22 March 2015.
  3. Web site: Understanding VCF format Human genetic variation . live . https://web.archive.org/web/20230420092756/https://www.ebi.ac.uk/training/online/courses/human-genetic-variation-introduction/variant-identification-and-analysis/understanding-vcf-format/ . 2023-04-20 . 2023-11-10 . . en.
  4. Garrison . Erik . Kronenberg . Zev N. . Dawson . Eric T. . Pedersen . Brent S. . Prins . Pjotr . 2022-05-31 . A spectrum of free software tools for processing the VCF variant call format: vcflib, bio-vcf, cyvcf2, hts-nim and slivar . PLOS Computational Biology . 18 . 5 . e1009123 . 10.1371/journal.pcbi.1009123 . 1553-734X . 9286226 . 35639788 . 2022PLSCB..18E9123G . free .
  5. Danecek . Petr . Bonfield . James K . Liddle . Jennifer . Marshall . John . Ohan . Valeriu . Pollard . Martin O . Whitwham . Andrew . Keane . Thomas . McCarthy . Shane A . Davies . Robert M . Li . Heng . 2021-01-29 . Twelve years of SAMtools and BCFtools . GigaScience . 10 . 2 . 10.1093/gigascience/giab008 . 2047-217X . 7931819 . 33590861.
  6. Web site: VCF Specification . 30 July 2024.
  7. Web site: Specifications of SAM/BAM and related high-throughput sequencing file formats. . 24 June 2014.
  8. Web site: Encoding Structural Variants in VCF (Variant Call Format) version 4.0 | 1000 Genomes. 20 October 2016.
  9. Web site: GVCF - Genomic Variant Call Format . GATK . Broad Institute.
  10. Web site: gVCF Files . 2023-11-10 . Illumina, Inc..
  11. Web site: HTS format specifications. 2022-02-22. samtools.github.io.
  12. Web site: Bio-IT World. www.bio-itworld.com. en-us. 2018-10-26.