Knowledge / Genetics / Bioinformatics / NGS data analysis pipelines

NGS data analysis pipelines

Genetics / Bioinformatics (B.Sc) · Bioinformatics · free study notes for exams, placements and interviews

In short

An NGS data analysis pipeline is the ordered chain of software steps that turns raw sequencer output (millions of short reads in FASTQ files) into biological answers: a list of variants, a gene expression table, an assembled genome or a microbial profile. Every modern genomics project — clinical diagnostics, crop breeding, pathogen surveillance — depends on it, because the sequencer itself produces only base calls with quality scores. In Indian university syllabi it sits in B.Sc/M.Sc Bioinformatics and Genetics papers and in CSIR-UGC NET Life Sciences (Unit XIII), GATE BT/XL and DBT-BET question papers, usually as file formats, quality scores, coverage calculations and the standard workflow order. Employers who hire on this skill include MedGenome, Strand Life Sciences, Eurofins, Neuberg, Mapmygenome, LifeCell, Syngene, Premas Life Sciences, and the services arms of TCS, Wipro and Persistent, plus CSIR-IGIB, NIBMG, BRIC institutes and the INSACOG network.

Explained

Sequencing platforms and what their reads look like

Stage 1 — Raw data, formats and quality control

Stage 2 — Alignment (mapping) and the alignment formats

Stage 3 — Variant calling, filtering and annotation (DNA-seq / WES / WGS)

  1. Germline calling: GATK HaplotypeCaller (local de novo haplotype assembly over active regions), bcftools mpileup/call, FreeBayes, DeepVariant (CNN on pileup images). GVCF mode allows joint genotyping of cohorts (GenomicsDBImport → GenotypeGVCFs).
  2. Somatic (tumour) calling: Mutect2, VarScan2, Strelka2 — tumour-vs-normal pairs, low VAF calls, needs higher depth (500–1,000× for panels).
  3. VCF format: header ## lines, then #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT sample; FORMAT keys GT (0/0, 0/1, 1/1), DP (depth), AD (allele depths), GQ (genotype quality). bgzip + tabix for indexed access; bcftools/vcftools for filtering and merging.
  4. Filtering: VQSR (machine-learning model on annotation profiles, needs large cohorts) or hard filters (QD, FS, MQ, SOR, depth, strand bias) for small sets.
  5. Structural and copy-number variants: Manta, DELLY, Lumpy (SV); CNVkit, GATK gCNV, ExomeDepth (CNV from read depth); long reads call SVs far better.
  6. Annotation: VEP, ANNOVAR, SnpEff add gene, transcript, consequence (missense, nonsense, frameshift, splice), population frequency (gnomAD; IndiGenomes for Indian allele frequencies), in-silico pathogenicity (SIFT, PolyPhen-2, CADD, REVEL) and clinical databases (ClinVar, OMIM, HGMD).
  7. Clinical interpretation follows the ACMG/AMP 2015 five-tier system — pathogenic, likely pathogenic, VUS, likely benign, benign — with evidence codes (PVS1, PS1–4, PM1–6, PP1–5, BA1, BS1–4, BP1–7).

Stage 4 — Pipelines for the other assay types

Reproducibility, infrastructure and Indian practice

Key points

Formulas and examples

Phred quality: Q = −10 log₁₀(P) ; P = 10−Q/10
Q = Phred score (dimensionless); P = probability the base call is wrong.
Expected errors in a read = Σ P over its bases ≈ L × 10−Q/10 for uniform Q (L = read length in bp).
Coverage (Lander–Waterman): C = N × L / G
C = mean depth (×); N = number of reads; L = read length (bp; use 2 × L for a read pair); G = genome/target size (bp).
Expected uncovered fraction (Poisson): P(depth = 0) = e−C → uncovered bases = G × e−C
Raw data needed: Required bases = (Target size × Desired depth) / (on-target fraction × (1 − duplicate rate) × mapped fraction)
RPKM/FPKM = (10⁹ × C) / (N × L_gene) ; TPM = (RPK_gene / Σ RPK_all) × 10⁶, where RPK = reads ÷ gene length in kb; C = reads on the gene, N = total mapped reads, L_gene in bp.
N50 = the contig length at which contigs of that size or longer cover ≥ 50% of the assembly; L50 = how many contigs that takes.
Variant allele frequency: VAF = alt reads / total reads at the site (≈0.5 for a germline heterozygote, ≈1.0 for homozygous alt).
Benjamini–Hochberg FDR: rank p-values ascending; significant if p(i) ≤ (i/m) × α, where i = rank, m = number of tests, α = chosen FDR.

Example 1 — Coverage of a human WGS run. 400 million 150 bp paired-end reads (i.e. 400 million read *pairs*? here take 400 million single reads of 150 bp), G = 3.1 × 10⁹ bp.

Example 2 — Data required for a clinical exome. Target 50 Mb, desired mean depth 100×, on-target 70%, duplicates 10%, mapped 98%.

Example 3 — Phred scores in practice.

Example 4 — TPM from counts.

GeneCountsLength (kb)RPK = counts/kbTPM
A1,0002.0500357,143
B3000.5600428,571
C1,5005.0300214,286
Total2,800—1,4001,000,000

Scaling factor = ΣRPK / 10⁶ = 1,400 / 10⁶ = 0.0014. TPM_A = 500 / 0.0014 = 357,142.9; TPM_B = 600 / 0.0014 = 428,571.4; TPM_C = 300 / 0.0014 = 214,285.7. Note gene B has the fewest reads but the highest expression per transcript — the point of length normalisation.

Example 5 — N50 and L50 of an assembly. Contigs: 500, 400, 300, 200, 100 kb. Total = 1,500 kb; half = 750 kb.

Example 6 — VAF interpretation at depth 100. AD = 72,28 → VAF = 28/100 = 0.28. Too low for a clean germline heterozygote (0.5): consistent with a somatic/subclonal variant, tumour admixture, a CNV, or allele dropout — flag for orthogonal confirmation.

AssayTypical depthAlignerCaller / quantifierOutput
WGS germline30×BWA-MEMHaplotypeCaller / DeepVariantVCF
WES100×BWA-MEMHaplotypeCaller + hard filtersVCF
Somatic panel500–1,000×BWA-MEM (+UMI)Mutect2 / VarDictVCF
Bulk RNA-seq20–30 M reads/sampleSTAR / HISAT2 (or salmon)featureCounts → DESeq2counts, TPM
ChIP-seq20–40 M readsBowtie2MACS2BED peaks
Bacterial de novo50–100×—SPAdes / FlyeFASTA contigs
16S metagenome10–50 k reads/sample—DADA2 in QIIME2ASV table

Where it is used

Interview questions

Common mistakes

Related topics

Sequence alignment: BLAST and multiple alignment · Genomics and proteomics · Biological databases: NCBI, UniProt and PDB · Bioinformatics basics · Phylogenetic analysis · Molecular biology techniques: PCR, cloning and sequencing

Open in the Knowledge reader →Find jobs →