Workflows

Whole exome sequencing (WES) data analysis: a step-by-step workflow

How to analyse whole exome sequencing data: QC, alignment, coverage over capture targets, GATK or DeepVariant calling, annotation and variant prioritisation.

Whole exome sequencing (WES) reads only the protein-coding part of the genome, about 1 to 2 percent of it, where most known disease-causing variants sit. It costs a fraction of whole genome sequencing (WGS) and is the workhorse of rare-disease diagnosis, cancer panels and research on inherited conditions. This guide walks through how WES data is analysed, from raw reads to a short list of candidate variants, and the checks that separate a reliable result from a misleading one.

WES vs WGS: what changes in the analysis

Both start from the same short-read FASTQ files and use the same aligners and variant callers. The differences come from capture: WES uses probes to pull down exons before sequencing, so coverage is uneven and confined to the target regions.

WESWGS
What is sequencedExons and nearby splice sites (~30–60 Mb)The whole genome (~3.1 Gb)
Typical mean depth80–150× on target30–40×
Coverage uniformityUneven: GC-rich and poorly captured exons drop outMuch more even
Structural variants and CNVsHard; needs specialised callersDetected far more reliably
Data per sample~5–10 GB of FASTQ~80–100 GB of FASTQ

The practical consequence: in WES you must always supply the capture kit's target BED file to coverage and variant-calling steps, and you must report coverage over the targets, not over the genome.

Step 1: Quality control of raw reads

Run FastQC on every FASTQ file and summarise with MultiQC. Look at per-base quality, adapter content and duplication. Exome libraries often show higher duplication than genomes because the captured region is small, so a 15–25% duplicate rate is not unusual. Trim adapters and low-quality ends with fastp or Trimmomatic if the report shows them. If the quality encoding is new to you, read FASTQ format and Phred quality scores first.

Step 2: Alignment to the reference

Align with BWA-MEM (or BWA-MEM2, which is faster) to GRCh38, adding a read group that names the sample, library and sequencing platform. GATK refuses files without read groups, so set them here rather than later.

bash
bwa-mem2 mem -t 8 -R '@RG\tID:S1\tSM:S1\tPL:ILLUMINA\tLB:lib1' \
  GRCh38.fa S1_R1.fastq.gz S1_R2.fastq.gz | samtools sort -o S1.sorted.bam
samtools index S1.sorted.bam

Step 3: Mark duplicates and recalibrate

Mark PCR and optical duplicates with GATK MarkDuplicates (or samtools markdup) so the caller does not count the same molecule twice. Base quality score recalibration (BQSR) corrects systematic errors in the quality scores using known variant sites such as dbSNP and the Mills indel set. Both steps are in the GATK Best Practices; DeepVariant does not require BQSR.

Step 4: Check coverage over the targets

This is the step most often skipped, and the one reviewers and clinicians ask about first. Using the capture kit's BED file, calculate:

  • Mean depth on target, usually 80× or more.
  • Percentage of target bases at 20× or more, ideally above 95%.
  • Genes of interest with gaps: list exons below 20× so a negative result is not over-interpreted.

Tools such as mosdepth or GATK CollectHsMetrics produce these numbers. A variant cannot be called where there are no reads, so "no pathogenic variant found" only means something for well-covered regions.

Step 5: Variant calling

The two common choices:

  • GATK HaplotypeCaller in GVCF mode, per sample, followed by joint genotyping across a cohort. Pass the target BED with a small padding (-L targets.bed -ip 100) to include splice sites.
  • DeepVariant, a deep-learning caller from Google, run with its WES model. It is accurate out of the box and needs fewer filtering decisions.

For a family trio (child and both parents), call jointly so de novo variants and inheritance patterns can be checked directly.

Step 6: Filter the calls

Raw calls contain false positives. With GATK, use hard filters on QD, FS, MQ, SOR and ReadPosRankSum for small exome cohorts (VQSR needs more samples than most exome projects have). Then apply sample-level checks: a heterozygous call should have an allele balance near 0.5, and a call supported by 3 of 40 reads deserves suspicion. The VCF file format guide explains the fields these filters use.

Step 7: Annotate

Annotation adds what each variant does and how common it is. Use Ensembl VEP or ANNOVAR to add:

  • The gene, transcript and consequence (missense, stop-gained, splice region, frameshift).
  • Population frequency from gnomAD.
  • Clinical assertions from ClinVar.
  • Prediction scores such as CADD, REVEL and SpliceAI.

Step 8: Prioritise candidate variants

A typical exome yields 20,000 to 25,000 variants. Prioritisation narrows them to a handful:

  1. Keep variants that pass quality filters.
  2. Remove common variants (for a rare disease, gnomAD allele frequency below 0.1% or 1%, depending on the inheritance model).
  3. Keep protein-altering and splice variants.
  4. Apply the inheritance model: homozygous or compound heterozygous for recessive, de novo in a trio for many developmental disorders.
  5. Rank by gene–phenotype fit, using HPO terms and tools such as Exomiser.

The final candidates are then classified with the ACMG/AMP criteria as pathogenic, likely pathogenic, uncertain significance, likely benign or benign. Clinical reports also confirm key variants by Sanger sequencing.

Common mistakes

  1. Calculating coverage over the whole genome instead of the capture targets.
  2. Using the wrong genome build for the target BED file (GRCh37 targets on GRCh38 alignments).
  3. Treating "no variant found" as a negative result without checking coverage of the relevant genes.
  4. Filtering on allele frequency before checking the inheritance model.
  5. Not recording software and database versions, which makes the result impossible to reproduce.

How to learn WES data analysis

You can practise every step on public data: the Genome in a Bottle sample NA12878 (HG001) has exome data and a high-confidence truth set, so you can measure your own pipeline's precision and recall. Our NGS Data Analysis: WGS & WES course takes you through this full pipeline hands-on, ends with a certificate, and covers variant interpretation for clinical-style reports. For the interpretation side in more depth, see Clinical Genomics & Variant Interpretation.

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.