Research guide / File formats

VCF files,
field by field.

The Variant Call Format stores variant calls as text: header lines, then one record per site. Reading it correctly depends on its coordinates, its representation of alleles and the versions behind any annotation.

A format guide for research teams.

This guide explains the file format. This website does not accept VCF uploads or run analyses, and a variant record is not a clinical conclusion.

1. Read the header, then the fields.

Lines starting with ## are metadata and define the keys used later. A single #CHROM line names the columns. Every record then has eight fixed fields, optionally followed by per-sample data.

CHROM
The chromosome or contig, named as in the reference used.
POS
The reference position. The first base of a contig has position 1.
ID
Semicolon-separated identifiers such as rs numbers, or a missing value.
REF / ALT
The reference allele and the alternate allele or alleles.
QUAL
A Phred-scaled quality score for the assertion made in ALT.
FILTER
PASS, or the names of the filters the record failed.
INFO
Site-level annotations, defined by INFO lines in the header.
FORMAT + samples
Optional per-sample columns. FORMAT names the keys, such as GT for genotype, and each sample column holds the values.

A synthetic example

##fileformat=VCFv4.5
##contig=<ID=chr1>
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
#CHROM	POS	ID	REF	ALT	QUAL	FILTER	INFO	FORMAT	SAMPLE1
chr1	101	.	A	G	50	PASS	.	GT	0/1

Synthetic text only. This record does not describe a real variant, reference base or sample.

2. Keep VCF and BED coordinates apart.

VCF positions are 1-based. BED intervals are zero-based with an exclusive end. The BED line chr1 100 200 therefore covers VCF positions 101 to 200.

Off-by-one errors here can silently drop or add variants at target boundaries when a call set is intersected with a capture BED by hand. Interval tools handle the conversion, so check that yours reads each format as its own.

3. Normalize before comparing call sets.

One variant can be written several valid ways in a VCF. Tan and colleagues showed that inconsistent representation between callers magnifies discrepancies and complicates filtering and duplicate removal. They define normalization as representing a variant consistently, in an unambiguous and concise way.

Normalizing against the same reference used for calling, and splitting multiallelic records where your downstream tools expect it, makes records comparable. BCFtools provides this:

bcftools norm -f reference.fa -m -any input.vcf.gz -Oz -o normalized.vcf.gz

File names are placeholders. Record the BCFtools version and the exact reference used.

4. Confirm the reference build.

Coordinates only have meaning against a specific reference. Header lines may declare a reference and its contigs, but a declared label is not proof of the build behind the data. Check contig names and lengths against the reference you intend to use, and treat liftover as a separate, recorded step.

5. Keep annotation provenance with the result.

Annotation adds context that changes over time, so an annotated VCF is only reproducible alongside the versions that produced it. Record at least the following:

  • Consequence predictions: the tool, version, cache and transcript set, for example the Ensembl Variant Effect Predictor.
  • Clinical assertions: the release date of any ClinVar data. ClinVar is a public archive of submitted interpretations from laboratories, expert panels and other groups, which remain submissions rather than a conclusion about your sample.
  • Population frequencies: the resource and version, for example gnomAD, along with the population used for any threshold.

How this maps to Phegenix.

In development

The VCF annotation and evidence workbench is in development. External VCF upload/import, durable review and report workflows remain unfinished. This page describes research interest and development scope; it does not provide a public file-upload service.

Sources

  1. SAMtools/hts-specs. Variant Call Format specification, v4.5. The Variant Call Format specification
  2. Danecek P, et al. Bioinformatics 2011;27:2156-8. The variant call format and VCFtools
  3. Tan A, et al. Bioinformatics 2015;31:2202-4. Unified representation of genetic variants
  4. Danecek P, et al. GigaScience 2021;10:giab008. Twelve years of SAMtools and BCFtools
  5. McLaren W, et al. Genome Biol 2016;17:122. The Ensembl Variant Effect Predictor
  6. Landrum MJ, et al. Nucleic Acids Res 2018;46:D1062-7. ClinVar: improving access to variant interpretations and supporting evidence
  7. Karczewski KJ, et al. Nature 2020;581:434-43. The mutational constraint spectrum quantified from variation in 141,456 humans

Last updated 31 October 2026.