Historical Context & Motivation
For most of human history, DNA was invisible and mysterious. Scientists knew that traits were inherited from parents to children, but they had no way to read the actual code hidden inside cells. The breakthrough came when researchers figured out how to sequence DNA — that is, to determine the exact order of the chemical letters (A, T, C, and G) that make up our genetic instructions. Once scientists could read DNA, they needed tools and formats to organize, display, and interpret the massive amounts of data that sequencing produces.
Today, sequencing machines produce enormous files filled with letters and numbers. The central question this lesson addresses is: How do we read and make sense of sequencing and variant call outputs? Understanding these data formats is the first step toward using genetics to solve real-world problems in medicine, agriculture, and forensics.
Core Principles & Definitions
Before diving into data outputs, you need to understand a few foundational ideas. Sequencing data is built on a simple concept: your DNA is a long string of four chemical bases — adenine (A), thymine (T), cytosine (C), and guanine (G). A sequencing machine reads these bases and records them in order. But no machine reads the entire genome in one pass. Instead, the DNA is broken into short overlapping fragments called reads. Software then lines these reads up against a reference genome, like fitting puzzle pieces onto a picture on the box.
Read
Reference Genome
Alignment
Variant
Quality Score
Visual Explanation — From Reads to Variants
The diagram below shows how raw sequencing reads are aligned to a reference genome. Notice that several reads overlap the same region. Where all the reads agree with the reference, the bases are shown in their normal color. Where one or more reads show a different letter, a variant is flagged.
In the diagram above, you can see the power of having multiple reads covering the same region. If only one read showed the T, it might just be a machine error. But because three out of five reads agree on the change, the software calls it a real variant with much higher confidence. This concept — requiring multiple reads to confirm a finding — is called read depth or coverage. More coverage means more confidence.
How Variant Calling Works — The Pipeline
Sequencing data doesn't arrive ready to interpret. It goes through a series of processing steps, often called a bioinformatics pipeline. Think of it like an assembly line in a factory — raw materials go in one end, and a finished product comes out the other. Each step cleans, organizes, or analyzes the data a little further.
The Four Main Steps
Step 1 — Sequencing & Raw Data: The machine reads millions of short DNA fragments and outputs them in a file format called FASTQ. Each entry in a FASTQ file contains the sequence of bases and a quality score for each base. The quality score is a number that tells you how confident the machine is about each letter it read.
Step 2 — Alignment: Software takes each read and finds where it best fits on the reference genome, like matching puzzle pieces. The output is saved in a BAM file (Binary Alignment Map), which stores each read's position and how well it matched.
Step 3 — Variant Calling: Another program scans through all the aligned reads, compares them to the reference, and identifies positions where the sample differs. The output is stored in a VCF file (Variant Call Format) — a structured table listing every detected variant.
Step 4 — Annotation & Interpretation: Each variant is annotated with information like which gene it falls in, whether it changes a protein, and whether it has been seen before in databases. This is the step where data becomes meaningful biological information.
Key File Formats — FASTQ, BAM, and VCF
Understanding sequencing data means knowing the three main file formats you'll encounter. Each format serves a different purpose in the pipeline. The diagram below shows a simplified view of what each file looks like and what information it contains.
| File Format | Full Name | Contains | Typical Size |
|---|---|---|---|
| FASTQ | FASTQ (quality-scored FASTA) | Raw base sequences + quality scores for each base | 50–200 GB per whole genome |
| BAM | Binary Alignment Map | Reads mapped to reference positions with alignment details | 30–100 GB per whole genome |
| VCF | Variant Call Format | List of positions where the sample differs from reference | 50–500 MB (much smaller) |
Worked Example — Reading a VCF Entry
Let's walk through how to read a real variant call from a VCF file. Imagine you are a genetics researcher and you receive the following VCF entry for a patient. Your job is to figure out what it means.
chr7 117199646 rs113488022 G A 99 PASS DP=85;AF=0.47 GT 0/1rs113488022, is a known variant ID from the dbSNP database. The "rs" prefix means it has been seen and catalogued before. This is a well-studied variant in the CFTR gene, which is linked to cystic fibrosis.0/1. In VCF notation, 0 represents the reference allele and 1 represents the alternate allele. So 0/1 means this patient has one copy of the reference (G) and one copy of the alternate (A). This is a heterozygous variant — consistent with the ~47% VAF we calculated above.Types of Variants & Their Significance
Not all variants are created equal. Some are harmless differences that make each person unique, while others can cause serious diseases. Understanding the different types of variants and their potential effects is essential for interpreting sequencing data in a meaningful way.
| Variant Type | What It Looks Like | Example | Possible Effect |
|---|---|---|---|
| SNP (Single Nucleotide Polymorphism) | One base is swapped for another | Reference: A → Sample: G | May change a protein, be harmless, or cause disease |
| Insertion | Extra bases are added | Reference: ATG → Sample: ATCG | Can shift the reading frame, often disrupting a protein |
| Deletion | Bases are removed | Reference: ATGC → Sample: ATC | Can shift the reading frame or remove part of a gene |
| Indel | Insertion and deletion combined | Complex rearrangement at one location | Effects depend on size and location |
| Structural Variant | Large-scale rearrangement (>50 bases) | Large deletion, duplication, or inversion | Can remove or duplicate entire genes |
Impact Categories
Connection to Advanced Genomic Analysis
The basic interpretation skills you've learned in this lesson are the foundation for much more advanced analyses. As you progress in genetics, you'll encounter larger datasets, more complex variant types, and sophisticated tools for understanding what variants mean for human health and evolution.
| Introductory Concept (This Lesson) | Advanced Application |
|---|---|
| Reading a single VCF entry | Filtering thousands of variants to find disease-causing mutations using population databases like gnomAD |
| Understanding SNPs | Genome-wide association studies (GWAS) that link SNPs to complex traits like height or diabetes risk |
| Quality scores for individual bases | Machine learning algorithms that evaluate variant quality across millions of positions simultaneously |
| Heterozygous vs. homozygous genotypes | Inheritance pattern analysis for genetic counseling (autosomal dominant, recessive, X-linked) |
| Variant allele frequency in one sample | Tumor mutation analysis where mixed populations of normal and cancer cells create complex allele frequencies |
One exciting frontier is pharmacogenomics — using a patient's sequencing data to choose the best medication and dose. Some variants in drug-processing genes mean that a standard dose could be too strong or too weak for certain patients. By reading VCF data, doctors can personalize treatment plans. Another growing area is prenatal screening, where sequencing tiny amounts of fetal DNA floating in a pregnant person's blood can reveal chromosomal conditions early in pregnancy.
Practice Problems
chr17 7577121 . G GA 45 PASS DP=30;AF=0.50 GT 0/1 Identify: (a) the type of variant, (b) the genotype, (c) the read depth, and (d) one concern you might have about this variant call.Lesson Summary
DNA sequencing machines break genomes into millions of short reads and record them with quality scores in FASTQ files. Software then aligns these reads to a reference genome, producing BAM files. A variant caller compares the aligned reads to the reference and outputs a VCF file listing every position where the sample's DNA differs — these differences are called variants. Each VCF entry records the chromosome, position, reference base, alternate base, quality score, and genotype (0/0 for homozygous reference, 0/1 for heterozygous, 1/1 for homozygous alternate).
Key metrics for evaluating variant calls include read depth (DP) — the number of reads covering a position — and variant allele frequency (VAF), the fraction of reads showing the alternate base. Variants range from benign (harmless) to pathogenic (disease-causing), and include types like SNPs, insertions, deletions, and structural variants. These foundational skills in reading sequencing data connect directly to advanced applications in personalized medicine, cancer genomics, and genetic counseling.