Experimental Design
Why design comes first
Section titled “Why design comes first”A germline study asks the same question of every position in the genome, which genotype this person carries, and how often you can answer it is settled before the first read exists. Depth decides how many observations each genotype rests on. Read length and insert size decide how much of the genome reads can be placed in at all. The library decides how many of those observations are copies of each other, and the choice between WGS and exome decides which part of the genome you look at. No caller recovers what the design left out, and a region with three reads stays a region with three reads whatever model you run on it.
Depth and coverage
Section titled “Depth and coverage”Depth at a position is the number of reads that cover it. Coverage, quoted as 30x, is the average depth across the genome, the total number of sequenced bases divided by the genome size. A human genome is about 3 billion bases, so 30x needs about 90 billion bases of sequence, or 300 million pairs of 150 base reads.
30x is the common target for germline WGS. The 1000 Genomes high coverage resequencing took its 3,202 samples to a target of 30x, and the laboratories of the Medical Genome Initiative use 30x or 40x mean coverage as the cutoff for clinical WGS.
Depth matters most at heterozygous sites. At 30x a heterozygous site has about 15 reads for each allele on average, and the random spread around that average still leaves plenty of both. At 10x the same spread can leave one or two reads for an allele, which is also what a sequencing error looks like, and the caller must choose a genotype on little evidence.
Why uniformity matters
Section titled “Why uniformity matters”A mean hides its spread. Two genomes sequenced to the same 30x can differ in how much of the genome reaches a usable depth, because some regions collect far more than their share of reads and others far less. Aird et al. 2011 traced a principal source of this bias to PCR during library preparation, which loses regions with extreme GC content first. Mapping removes coverage in repeats, as What is DNA-seq explains, and exome capture adds its own unevenness.
Report a coverage distribution rather than one number. The Medical Genome Initiative tracks the fraction of autosomal bases that reach at least 20x alongside the mean, and it recommends judging whether a region is callable from depth, base quality and mapping quality together. The Coverage & QC page reads the depth distribution of this section’s run from the sarek QC outputs.
Read length and insert size
Section titled “Read length and insert size”Paired 150 base reads are the usual choice for human WGS today, and the 1000 Genomes resequencing used 2 x 150 bp reads on the NovaSeq 6000. The GIAB data in this section are older, 2 x 148 bp from a HiSeq 2500 with a target insert size of 550 bases.
Longer reads place more of the genome. A read that is longer than a repeat can anchor in unique sequence beside it, and a pair adds a second anchor at the far end of the fragment. When one read of a pair falls inside a repeat, its mate often lands in unique sequence and fixes where the pair belongs.
The insert size sets how far apart those anchors are. A fragment shorter than twice the
read length makes the two reads overlap, and a fragment shorter than one read makes the
sequencer read into the adapter, which must then be trimmed. Sarek trims adapters only
when you ask for it with --trim_fastq.
PCR-free libraries and duplicates
Section titled “PCR-free libraries and duplicates”A duplicate is a read pair that comes from the same original fragment as another pair. PCR makes them during library preparation. The sequencer makes them too, when it reads one cluster as two, and the MarkDuplicates documentation calls these optical duplicates.
Duplicates are not independent evidence. A polymerase error copied into ten duplicates looks like ten reads supporting a variant, so the pipeline marks all but one copy of each fragment and the callers skip the rest, as BWA & GATK preprocessing shows.
A PCR-free library leaves out the amplification step, so it removes PCR duplicates and a principal source of GC bias. It needs more input DNA than an amplified library, which is why samples with little DNA still go through PCR. The GIAB libraries for HG002 are TruSeq PCR-free libraries, and so are the 1000 Genomes high coverage libraries.
PCR also causes indel errors in homopolymers and short tandem repeats, and HaplotypeCaller
models them. Its
documentation
says to set the PCR indel model to NONE when you work with PCR-free data. Sarek passes the
setting through --gatk_pcr_indel_model, whose default is CONSERVATIVE, so a PCR-free run
has to set it on purpose.
WGS or exome capture
Section titled “WGS or exome capture”The trade is cost per sample against what you can see. An exome is about 1.5 percent of the genome, so capture spends the reads on coding sequence, and the same budget covers more people. You give up everything outside the probes and some evenness inside them.
| If you need | Choose | Because |
|---|---|---|
| coding variants in many samples on a fixed budget | exome | the target is a small fraction of the genome, so each sample costs less |
| noncoding variants, structural variants or copy number | WGS | capture covers only the exons, and covers them unevenly |
| the most even coverage of the coding exons | WGS | depth and genotype quality are more uniform without capture |
| data you can reanalyze for questions you have not asked yet | WGS | a capture design fixes what you can see |
| a short list of known genes at high depth | panel | the reads go only where the question is |
The evenness row comes from
Belkadi et al. 2015, whose comparison
What is DNA-seq describes. For an exome or a panel in
sarek, you pass the target BED with --intervals and set --wes, and the
parameter documentation advises padding the
targets first.
Trios and family designs
Section titled “Trios and family designs”A single genome gives you genotypes. A trio, the child and both parents, gives you a way to check them. On the autosomes every genotype in the child must be explained by one allele from each parent, so a Mendelian violation is either a new mutation in the child or a genotyping error, and the violation rate is a useful measure of call quality. Transmission also shows which parent passed on which allele, which phases the child’s variants and lets a rare disease study check each candidate against both parents.
Call a family jointly. In the GATK route, HaplotypeCaller runs on each sample in GVCF mode
and GenotypeGVCFs genotypes the samples together, and sarek takes that route when you set
--joint_germline. DeepVariant has a trio model of its own,
DeepTrio.
GIAB sequenced HG002 with his father HG003 and his mother HG004, and NIST distributes the whole trio as Reference Material 8392. This section uses HG002 alone. The truth set takes the place the parents would take in a trio, as the independent evidence the calls are checked against.
Controls and reference materials
Section titled “Controls and reference materials”You cannot measure accuracy on your own samples, because you do not know their true genotypes. A reference material solves that. GIAB characterizes seven genomes, and the NIST FAQ recommends starting with HG002, though it adds that using all seven is often helpful. Sequence the reference DNA in the same batch as your samples, process it through the same pipeline, and compare its calls with the benchmark inside the benchmark regions, following the GA4GH best practices for germline benchmarking. Sarek itself runs a 30x GIAB genome of NA12878 as one of its full size tests on every release.
A benchmark speaks only for its regions. GIAB v4.2.1 covers 92 percent of the autosomal GRCh38 assembly for HG002, and its authors left out the rest because it is problematic to benchmark. A pipeline can score well on HG002 and still fail in that remainder, so quote the benchmark regions alongside the precision and recall.
Sample tracking
Section titled “Sample tracking”A sample swap ruins every downstream result, and no caller notices it. The defense is a record of where each read came from and a check that the genotypes agree with that record.
Read groups
carry the record into the alignment file. Each one names the sample, the library, the lane
and the platform, and sarek builds them from the samplesheet, so the samplesheet is where
tracking starts. With --tools ngscheckmate, sarek also runs NGSCheckMate, which uses a
set of commonly heterozygous SNPs to test whether two samples come from the same person,
as the output documentation describes. A sex
check compares the depth on chromosomes X and Y with the sex you recorded, and in a trio
a swapped parent shows up as a jump in Mendelian violations. Record the extraction batch,
the library, the lane and the date for every sample when the work happens, because they
are hard to reconstruct later from file names.
Common mistakes to avoid
Section titled “Common mistakes to avoid”- Reporting only the mean depth. A 30x mean says nothing about the fraction of the genome below 10x, and that fraction decides what you missed.
- Mixing reference builds. Reads aligned to GRCh38 need GRCh38 known sites and a GRCh38 truth set, and GIAB publishes its benchmarks for both GRCh37 and GRCh38 so you can match them.
- Counting calls outside the benchmark BED as false positives. Outside the BED the truth is unknown, so those calls are neither right nor wrong.
- Leaving the PCR indel model on for a PCR-free library. The model expects errors that the library does not have.
- Leaving sample identity unchecked. A swap is cheap to detect early and costly to find late.
Next steps
Section titled “Next steps”The next page, The workflow & the dataset, lays out the germline workflow end to end and loads the GIAB truth set for HG002.
Further reading
Section titled “Further reading”-
nf-core/sarek 3.11.0 usage guide
The versioned guide documents sample identities, reference inputs, and the supported germline callers. Read its input requirements before you choose a sequencing design or prepare a sample sheet.
-
GATK 4.7.0.0 HaplotypeCaller documentation
The source documentation explains local assembly and the PCR indel model, including its guidance for PCR-free data. It shows why library preparation metadata must accompany the reads into variant calling.