Blog

NGS Data Analysis Explained: From FASTQ Quality Control to Variant Calling

October 20, 2026

Learn how next-generation sequencing data is analyzed, from FASTQ quality assessment and read trimming to reference alignment, BAM processing, coverage analysis, variant calling, filtering and genomic interpretation.

BIOINFSURVEY / SCIENTIFIC KNOWLEDGE / 04

NGS Data Analysis Explained

From raw FASTQ sequencing reads to annotated genomic variants: explore the computational methods, quality metrics, file formats and interpretation principles behind a next-generation sequencing analysis pipeline.

FASTQ & Quality Control Read Alignment BAM & Coverage VCF & Variant Calling
REFERENCE GENOME MAPPED READS / CANDIDATE VARIANT
Quick answer: What is NGS data analysis?

NGS data analysis is the computational processing and interpretation of sequencing data. For reference-based DNA variant analysis, it typically involves sequencing-read quality assessment, alignment, alignment processing, variant detection, quality evaluation and functional annotation.

01 / FOUNDATIONS

What Is NGS Data Analysis?

Next-generation sequencing produces large collections of DNA or RNA sequence reads. Bioinformatics methods transform these measurements into structured genomic or transcriptomic results.

NGS data analysis is not a single fixed procedure. Whole-genome sequencing, whole-exome sequencing, targeted DNA sequencing, RNA-seq, metagenomics and single-cell sequencing require different analytical approaches.

This guide focuses primarily on reference-based short-read DNA sequencing and variant discovery. RNA expression, structural variant analysis, de novo assembly and long-read sequencing involve additional or alternative methods.

A typical DNA variant-analysis workflow

  1. Obtain raw sequencing reads and associated metadata.
  2. Review sequence quality and technical biases.
  3. Perform justified preprocessing.
  4. Align reads to a compatible reference genome.
  5. Assess alignment and coverage metrics.
  6. Identify candidate variants.
  7. Evaluate variant quality and apply filtering.
  8. Annotate findings and interpret the evidence.
Scientific principle

Every downstream conclusion depends on upstream sample quality, assay design and data processing. Computational variant detection should not be confused with biological or clinical validation.

02 / RAW SEQUENCING DATA

Understanding FASTQ Files and Sequencing Reads

FASTQ is a widely used text format that stores sequencing-read identifiers, nucleotide sequences and corresponding per-base quality scores.

A FASTQ record contains four lines: an identifier, the sequence, a separator and a quality string. For commonly used Phred+33 encodings, each quality character represents a numerical Phred quality score.

@example_read_001
ACGTTGCA
+
IIIIHHGF

This is an illustrative record, not experimental data. The sequence and quality string must have the same number of characters.

Phred quality scores

Phred scores are related to the estimated probability of a base-call error: Q = −10 log10(Perror).

Phred scoreEstimated error probabilityApproximate base-call accuracy
Q101 in 1090%
Q201 in 10099%
Q301 in 1,00099.9%
Q401 in 10,00099.99%

These probabilities describe base-call confidence under the quality-score model. They do not guarantee an equal empirical error rate across every experiment or genomic context.

Single-end vs. paired-end reads

Single-end sequencing reads one end of a fragment. Paired-end sequencing generates reads from both ends, providing additional information about their relative orientation and approximate separation. Properly maintained read pairing can improve some mapping and variant-analysis tasks.

03 / QUALITY CONTROL

FASTQ Quality Control with FastQC and MultiQC

Raw sequencing datasets should be inspected before downstream analysis. Quality-control reports help identify unexpected sequencing characteristics, technical artifacts and potential sample problems.

Common FASTQ quality metrics

MetricWhat it measuresWhy it matters
Per-base quality Quality-score distribution by read position Helps identify position-dependent quality changes
GC content Nucleotide composition May indicate sequence composition bias or unusual datasets
Adapter content Evidence of library adapter sequences Can guide adapter trimming
Sequence duplication Repeated read sequences Requires interpretation based on library type and depth
Overrepresented sequences Sequences occurring more often than expected May reveal technical or biological enrichment
Read-length distribution Variation in sequence length Important for mapping and assay expectations

FastQC produces individual quality assessments. MultiQC can aggregate reports from multiple tools and samples to help compare results across a project.

SEQUENCING QUALITY ACROSS READ POSITIONS High Low 5′ end 3′ end Read position
Figure 1. Original illustrative quality profile showing how base-call quality may vary across positions. The curves are not measured data. Select the figure to open the official FastQC resource maintained by Babraham Bioinformatics.
Quality reports require context

A warning flag is not automatically evidence of a failed experiment. Targeted libraries, amplicons, RNA-seq and other specialized assays can produce expected sequence-composition or duplication patterns.

04 / DATA PREPROCESSING

Read Trimming, Adapter Removal and Preprocessing

Sequencing-read preprocessing may involve removing library adapters, trimming low-quality regions or excluding reads that do not meet defined criteria.

Adapter sequences may be present when a sequenced fragment is shorter than the sequencing read length. If not handled appropriately, adapters can interfere with downstream alignment.

Common preprocessing operations

  • Identifying and removing sequencing adapters.
  • Trimming low-quality read ends where justified.
  • Filtering reads that fail predefined criteria.
  • Maintaining paired-read synchronization.
  • Checking quality metrics again after processing.

Excessive trimming can remove informative sequence and reduce the usable length of reads. Processing decisions should follow the data, assay design and requirements of downstream tools.

Tools used for such tasks include Cutadapt and fastp. Their parameters should be documented and selected for the relevant experiment.

TECHNICAL ISSUE

Adapter contamination

Non-biological library sequences may appear in reads and require removal.

TECHNICAL ISSUE

Low-quality ends

Read-end quality may decline and affect alignment performance.

PROCESSING RISK

Over-trimming

Aggressive filtering may discard useful biological information.

GOOD PRACTICE

QC reassessment

Compare relevant quality summaries before and after preprocessing.

05 / REFERENCE ALIGNMENT

Mapping NGS Reads to a Reference Genome

Reference alignment attempts to determine where individual sequencing reads originate within a selected reference genome.

Read mappers use algorithms and indexes designed to efficiently search large reference sequences. The resulting alignments include genomic coordinates, orientation and information about matching or nonmatching positions.

Why is reference selection important?

Read mapping depends on the chosen reference assembly. Different assembly versions can change coordinate systems and relevant reference sequences. Variant calling and annotation must use compatible reference resources.

REFERENCE-GENOME ALIGNMENT Reference Aligned reads provide evidence for genomic positions and possible differences.
Figure 2. Original BioInfSurvey schematic of reference read mapping. Linked peer-reviewed source: Li H. et al. (2009), “The Sequence Alignment/Map format and SAMtools,” Bioinformatics.

Mapping quality

Mapping quality is a Phred-scaled indicator of confidence in an alignment placement as reported by the mapper. The exact estimation procedure varies among alignment programs.

Reads from repetitive, duplicated or structurally complex regions may map ambiguously. Such regions require careful interpretation in variant analysis.

06 / ALIGNED DATA

SAM, BAM, CRAM and Sequencing Coverage Analysis

Aligned reads are commonly represented using SAM, BAM or CRAM formats. SAM is text-based, BAM is a compressed binary representation of alignment records, and CRAM uses reference-oriented compression techniques.

Common alignment metrics

MetricDescriptionWhy it matters
Mapped reads Reads assigned to reference positions Basic overview of usable alignments
Coverage depth Number of reads overlapping a position Influences confidence in observed sequence evidence
Coverage breadth Proportion of target bases meeting a depth criterion Indicates representation across a region
Duplicate reads Reads flagged as possible duplicates May affect independent evidence estimates
Insert-size distribution Estimated fragment length characteristics in paired-end data Can reveal library or alignment issues

Depth is not the same as breadth

A region may have high average read depth but contain poorly covered positions. For whole-exome or targeted sequencing, coverage breadth across intended targets may be more informative than a single mean-depth value.

Example

Reporting mean coverage of 100× does not imply that every genomic position has 100 supporting reads. Coverage distributions and assay-specific thresholds are necessary for meaningful quality assessment.

SAMtools supports operations including viewing, sorting, indexing and evaluating alignment data.

07 / VARIANT DISCOVERY

Variant Calling: SNPs, Indels and Genotypes

Variant calling identifies candidate differences between sequencing evidence and a reference genome. For short-read DNA analysis, common targets include single-nucleotide variants and short insertions or deletions.

Germline vs. somatic variant calling

AspectGermlineSomatic
Primary biological context Constitutional inherited or de novo variation Variation acquired in a cell lineage
Typical sample context Normal tissue or constitutional DNA Tumor or other relevant tissue
Analytical considerations Ploidy, genotypes, population frequencies Purity, subclonality, contamination, matched normal where available
Example framework GATK germline variant discovery GATK somatic short variant discovery

Different callers use different statistical models and representations of sequencing evidence. The biological context determines the appropriate analytical strategy.

GERMLINE SHORT-VARIANT DISCOVERY Processed alignments Candidate variant calls Quality assessment Filtered variants The details differ across callers, assays and study designs.
Figure 3. Original BioInfSurvey workflow illustration. Linked peer-reviewed publication: DePristo M.A. et al. (2011), “A framework for variation discovery and genotyping using next-generation DNA sequencing data,” Nature Genetics.

Short-variant calling does not automatically characterize copy-number changes, repeat expansions or the full range of structural variation. Dedicated methods may be required.

08 / VARIANT FILES

Understanding VCF Files and Variant Filtering

Variant Call Format (VCF) is a standardized format for representing sequence variants, genomic coordinates, alleles and associated metadata. It may also contain genotype and sample-level information.

Core VCF fields

FieldMeaning
CHROMReference chromosome or contig
POS1-based genomic position
IDVariant identifier, if provided
REFReference allele
ALTAlternative allele or alleles
QUALPhred-scaled quality associated with the record
FILTERFilter status
INFOAdditional site-level annotations
FORMATSample-level field definitions when genotype columns are present

Variant filtering

Not every candidate call has sufficient evidence to retain without qualification. Filtering strategies may evaluate multiple quality annotations, supporting reads, mapping characteristics and study-specific error patterns.

Fixed thresholds are not universally appropriate. Filtering should be calibrated to the calling model, assay characteristics and intended application.

Coordinate and allele consistency

Variant representation depends on the reference genome and normalization. Equivalent biological variants may have different representations unless conventions are applied consistently.

VCF specifications are maintained in the SAMtools/HTS specifications repository .

09 / BIOLOGICAL CONTEXT

Variant Annotation and Genomic Interpretation

Variant annotation connects computationally detected genomic changes to gene models, transcripts, sequence consequences, population information and available biological knowledge.

Common annotation categories

  • Genomic location: chromosome, position and associated gene features.
  • Transcript consequence: effects relative to specific transcripts.
  • Protein-level consequence: predicted amino acid changes, where applicable.
  • Population context: available frequency information.
  • Prior evidence: relevant literature and curated annotations.
  • Technical confidence: support from read and variant-quality metrics.

Tools such as Ensembl Variant Effect Predictor can annotate variants relative to selected reference resources. Interpretation requires attention to transcript selection, assembly versions and database releases.

ANNOTATION LEVEL

Genomic

Identifies position relative to genes, introns, exons and other regions.

ANNOTATION LEVEL

Transcript

Evaluates consequences for a specified transcript model.

ANNOTATION LEVEL

Protein

Describes predicted coding-sequence and amino acid changes.

ANNOTATION LEVEL

Evidence

Connects findings to relevant external biological knowledge.

A computational prediction of functional impact is not itself proof of biological effect or clinical significance. Validation and specialist interpretation are required where conclusions have important consequences.

10 / QUALITY AND REPRODUCIBILITY

NGS Pipeline Validation, Limitations and Frequently Asked Questions

Reliable NGS analysis requires traceable sample information, compatible reference resources, documented software parameters and suitable quality thresholds.

Important limitations include sequencing errors, coverage gaps, GC-related biases, ambiguous mapping, contamination, reference representation and caller-specific assumptions.

A reproducible analysis should record

  • Sample identifiers and sequencing assay characteristics.
  • Reference genome assembly and associated files.
  • Quality-control summaries and exclusions.
  • Software versions and processing parameters.
  • Alignment and coverage statistics.
  • Variant-calling and filtering methodology.
  • Database versions used for annotation.
  • Validation strategy and interpretation limits.
REPRODUCIBLE NGS ANALYSIS Sample provenance and raw data Reference genome and annotation versions Software, workflow and parameters Quality review, validation and reporting
Figure 4. Original BioInfSurvey quality-framework diagram. Linked to official GATK Best Practices documentation describing established genomic analysis workflows.

Frequently asked questions

What is the first step in NGS data analysis?

After obtaining the data and verifying sample metadata, a common first analytical step is assessing raw-read quality using suitable quality-control metrics.

What is the difference between FASTQ and BAM?

FASTQ generally stores raw sequencing reads and quality scores. BAM stores compressed binary alignment records containing information about how reads relate to a reference.

What is the purpose of variant calling?

Variant calling uses sequencing evidence to identify candidate differences from a selected reference genome.

Is 30× sequencing depth always sufficient?

No. Adequate depth depends on the assay, target regions, variant type, expected allele fraction and required sensitivity. Uniformity and other quality factors also matter.

Does a VCF file contain confirmed mutations?

A VCF contains reported variant records. Their reliability depends on the evidence, calling method, quality checks and any subsequent validation.

Can the same NGS pipeline be used for RNA-seq?

Not without adaptation. RNA-seq involves transcription-related characteristics, including splice junctions and transcript abundance, requiring assay-appropriate methods.

What causes false-positive variant calls?

Potential causes include sequencing errors, mismapping, contamination, repetitive sequence regions and limitations of the statistical model.

Scientific references and official resources

  1. DePristo M.A. et al. (2011). A framework for variation discovery and genotyping using next-generation DNA sequencing data. Nature Genetics. DOI.
  2. Li H. et al. (2009). The Sequence Alignment/Map format and SAMtools. Bioinformatics. DOI.
  3. Babraham Bioinformatics — FastQC .
  4. GATK — Germline Short Variant Discovery .
  5. GATK — Somatic Short Variant Discovery .
  6. HTS Specifications — SAM, BAM, CRAM and VCF .
Final perspective

NGS bioinformatics connects raw sequencing measurements with interpretable genomic evidence. A scientifically defensible pipeline requires careful quality assessment, suitable reference resources, validated computational methods and transparent reporting of uncertainty.