Skip to content

DNA-seq

DNA sequencing reads the genome itself, and the analysis asks where one genome differs from the reference. This section covers the most common form of that question, a germline call set of single-nucleotide variants and small indels from one person’s short Illumina reads. The primary analysis, from FASTQ to an annotated VCF, is a pipeline job, and nf-core/sarek does it in the DNA-seq with nf-core/sarek guide. These pages start from what sarek writes and carry it through filtering, benchmarking, annotation and plots.

The germline example has a published benchmark that distinguishes matched and unmatched calls within declared regions. The advanced lessons extend the analysis to copy number, structural variants, and somatic variants. Each uses its own data: published C0902 coverage and an independent array, twelve HG002 structural variants with controlled comparison changes, or simulated tumor and normal reads with known mutations.

The Population genetics section extends genotype analysis to cohorts, relatives, and population structure. It uses real public genotypes and explicitly simulated phenotypes for its association examples.

What DNA sequencing measures, the design choices that decide which variants you can find, and the truth set the rest of the section scores against.

Page What it does
What is DNA-seq what DNA sequencing measures, the variant types, and where short reads fall short
Experimental design depth, read length, PCR-free libraries, WGS or exome, and family designs, settled before sequencing
The workflow & the dataset the germline workflow end to end, and the GIAB truth set for HG002 loaded into R and Python

From reads to recalibrated alignments, and the first check that those alignments are good enough to call from.

Page What it does
nf-core/sarek what the pipeline takes as input, the settings this section uses, and where it writes each result
BWA & GATK preprocessing alignment, duplicate marking, and base quality score recalibration, one command at a time
Coverage & QC depth, duplicates, and alignment statistics from the sarek QC outputs

From alignments to a filtered call set, with four callers that disagree in ways worth reading.

Page What it does
Variant calling the HaplotypeCaller VCF, read field by field
Comparing callers HaplotypeCaller, DeepVariant, FreeBayes, and bcftools on the same reads
Filtering hard filters on the caller annotations, and what each one removes

How many calls are right, what they do to genes, and the figures a results section expects.

Page What it does
Benchmarking precision and recall against the GIAB truth set, by position and by haplotype
Annotation the SnpEff consequences that sarek adds to each variant
Visualization Ti/Tv, allele balance, and variant density plots
Page What it does
Copy number Correct coverage, estimate copy ratio segments, and compare two assays of the C0902 cell line.
Structural variants Compare controlled changes to twelve HG002 variants with Truvari and measure how sequence thresholds change precision and recall.
Somatic variants Run Mutect2 on simulated tumor and normal reads, inspect allele evidence, and measure the effect of a minimum allele fraction filter.

HG002, also catalogued as NA24385, is the son in an Ashkenazi Jewish trio from the Personal Genome Project. Genome in a Bottle, the consortium hosted by NIST, builds its new benchmarks on HG002 first, and NIST distributes his DNA as Reference Material 8391, according to the GIAB FAQ. No genome you sequence yourself is known as well.

Input Source
Reads one region of chr20 from the GIAB Illumina 300x data set for HG002
Truth set the GIAB v4.2.1 GRCh38 benchmark VCF and its benchmark BED file
Reference chr20 of the GATK Homo_sapiens_assembly38.fasta
Known sites the region subsets of dbSNP and of the Mills and 1000G gold standard indels

The GIAB Illumina data come from PCR-free libraries read as 2 x 148 bp pairs on a HiSeq 2500. A fetch script cuts one region of chr20 from the aligned GRCh38 file and writes it back out as paired FASTQ, so sarek starts from reads. The truth set pairs a VCF of trusted calls with a BED file of the regions where those calls are complete. The v4.2.1 release covers 92 percent of the autosomal GRCh38 assembly. Calls outside the BED cannot be scored at all, so precision and recall are computed inside it, as the Benchmarking page shows.

One region keeps the run on one machine and the fixtures small, while the reads, their errors and the truth stay real. The price is that reads from similar sequence on other chromosomes have nowhere else to align, and the Benchmarking page explains that effect.

The downstream pages read the VCFs in both languages, in synced tabs. The R tabs use Bioconductor’s VariantAnnotation, and the Python tabs use cyvcf2, a VCF parser built on htslib. Where the two compute the same statistic, such as a variant count or the Ti/Tv ratio, the gate checks that they agree. The command line tools, bcftools, samtools and RTG Tools vcfeval, run in bash fences.

The companion repository is private. Its DNA-seq image instructions and overview runner require repository access. Build the image as documented, then run bash guides/dnaseq/overview/run.sh from the repository root. The runner reads the prepared HG002 files and writes its captures under guides/dnaseq/overview/outputs/. Paths beginning with /opt/data/ refer to files inside that image.

The public GIAB sources above describe the original reads and truth set. The sarek lesson explains the separate pipeline run. Before using another dataset, record its sample identity, reference assembly and benchmark region together. A benchmark on this chr20 subset cannot establish performance across the genome or outside the benchmark regions.

The Chromatin section uses ATAC-seq to compare accessible regions between paired samples. That measurement requires different peak, count, and control decisions from a germline variant analysis.

The Population genetics section extends genotype analysis to a cohort. It starts from archived human calls, checks relatives and population structure, and fits explicitly simulated quantitative traits. Those examples explain association methods without claims of biological discovery.