RNA-Seq Analysis for Beginners: Step-by-Step Pipeline from FASTQ to DESeq2

Bulk RNA sequencing (RNA-seq) turns raw sequencer reads in FASTQ files into statistically ranked lists of differentially expressed genes through four sequential stages: read quality control, transcript quantification or genome alignment, count-matrix assembly, and negative-binomial modeling in DESeq2. Beginners can execute this entire workflow reproducibly using free command-line tools or browser-based Galaxy and RStudio environments when starting with raw integer counts and at least three biological replicates per condition.

Direct Answer

A standard beginner bulk RNA-seq pipeline runs FastQC and MultiQC on raw FASTQ reads, quantifies transcripts with Salmon or aligns with STAR or HISAT2 plus featureCounts, and models raw integer counts in DESeq2 using median-of-ratios normalization, design formulas, and Benjamini-Hochberg false discovery rate filtering across at least three biological replicates per group.

Last Reviewed: 1 December 2026  |  Scope Note: This educational bioinformatics guide covers standard bulk mRNA differential gene expression workflows for students and bench researchers. Always confirm reference genome build versions (such as GRCh38 or GRCm39), institutional high-performance computing memory allocations, and statistical power calculations before clinical or publication reporting.

RNA-seq differential expression volcano plot showing log2 fold change on the x-axis versus minus log10 adjusted p-value on the y-axis
Figure 1. Typical RNA-seq volcano plot visualizing gene-level statistical significance (y-axis) against log2 fold change magnitude (x-axis) after differential expression modeling. Source: Eugeniaprokhorova, Wikimedia Commons (CC BY-SA 4.0).

How Does the Bulk RNA-Seq Pipeline Transform Raw FASTQ Files into Gene Counts?

Every Illumina RNA-seq experiment begins with demultiplexed FASTQ files (.fastq.gz), where each sequenced read occupies four text lines: a sequence identifier header starting with @, the nucleotide base calls (A, C, G, T, N), a separator line beginning with +, and an ASCII-encoded Phred quality string representing base-calling error probability. As summarized in practical bulk transcriptomics training guides from the Frontiers in Genetics RNA-seq workflow primer (2025, PMC12599993), Harvard Chan Bioinformatics Core, and the NIH CCR Bioinformatics Training curriculum, understanding those four lines prevents the most common beginner mistakes before any downstream command executes.

Paired-end sequencing produces two synchronized files per sample—sample_R1.fastq.gz and sample_R2.fastq.gz—containing identical read orders from opposite ends of each cDNA fragment. Before aligning or quantifying reads, run FastQC across every raw FASTQ file and aggregate the individual HTML reports with MultiQC (Ewels et al., 2016). MultiQC places all samples side by side so you can immediately spot a failing lane, sequencing adapter contamination, ribosomal RNA (rRNA) carryover, or GC-content skew caused by sample degradation.

If MultiQC flags Illumina TruSeq adapter read-through or sharp 3-prime Phred quality drops below Q20, clean the reads with Trimmomatic (Bolger et al., 2014), fastp, or Cutadapt, always passing paired reads together so mate synchronization never breaks. Aggressive hard-trimming of 5-prime bases is usually unnecessary for modern aligners such as STAR and Salmon because soft-clipping and quasi-mapping natively ignore low-quality overhangs; however, removing true adapter sequences improves mapping percentages on short-insert libraries.

Just as important as software flags is experimental replication. Differential expression tools estimate per-gene dispersion (biological variance across samples) using negative binomial generalized linear models. Running two replicates per condition leaves almost zero degrees of freedom for reliable dispersion shrinkage, whereas running at least three biological replicates per group—and four to six replicates for heterogeneous human or clinical samples—gives DESeq2 sufficient statistical power while preventing single-outlier samples from dominating fold-change calls.

Should Beginners Choose STAR/HISAT2 Alignment or Salmon Pseudoalignment?

Once reads pass QC, beginners face their first major architectural choice: splice-aware genome alignment followed by read counting, or alignment-free transcript pseudoalignment directly against a reference transcriptome. Both paths yield accurate gene-level differential expression results for standard model organisms, yet their hardware requirements and intermediate files differ substantially.

Bulk RNA-Seq Pipeline: Raw FASTQ Reads to DESeq2 & Pathway Insights 1. Raw FASTQ R1 & R2 .fastq.gz >=3 Bio Replicates 2. Read QC & Trim FastQC + MultiQC Trimmomatic / fastp 3A. Genome Alignment STAR / HISAT2 -> BAM featureCounts (Counts) 3B. Pseudoalignment Salmon -> quant.sf tximport (R Matrix) 4. DESeq2 Size Factors Wald Test & FDR 5. Biology PCA / Volcano GO / KEGG Rule of Thumb: Never pass FPKM or TPM into DESeq2; supply raw integer counts or tximport estimates with tx2gene.
Figure 2. End-to-end bulk RNA-seq pipeline illustrating the two primary quantification branches (STAR/HISAT2 alignment vs. Salmon pseudoalignment) converging on DESeq2 modeling and biological pathway interpretation.

STAR (Dobin et al., 2013) is the gold-standard splice-aware aligner for human and mouse genomes, capable of discovering novel splice junctions and visualizing exact base-level read pileups in IGV via sorted BAM files. Its main barrier for laptops is RAM: indexing and aligning against human GRCh38 requires roughly 30–32 GB of RAM. HISAT2 (Kim et al., 2019) dramatically cuts graph-index memory usage to ~8 GB of RAM, enabling splice-aware genome alignment on modest workstations. Both STAR and HISAT2 generate BAM files that you summarize into a gene-by-sample integer matrix using featureCounts (Liao et al., 2014) with matching GTF gene annotations.

Salmon (Patro et al., 2017) takes a faster route: selective alignment against a known transcriptome index (ideally built with a whole-genome decoy using gentrome). Salmon corrects for sequence-specific, GC-content, and fragment-length biases, requires only 4–8 GB of RAM, finishes a typical sample in minutes, and imports directly into DESeq2 in R via the tximport package while accounting for average transcript length changes across conditions.

Table 1. Comparison of Beginner-Friendly Bulk RNA-Seq Alignment and Quantification Workflows
Pipeline Strategy Core Tools Typical RAM (Human) Outputs Produced Best Beginner Use Case
High-Memory Splice Alignment STAR + featureCounts 30–32 GB RAM Sorted BAM + Integer Count Matrix HPC clusters, IGV track inspection, novel splice discovery, fusion checks
Low-Memory Splice Alignment HISAT2 + featureCounts 6–8 GB RAM Sorted BAM + Integer Count Matrix Students running BAM-based workflows on 16 GB lab desktops or Galaxy
Bias-Aware Pseudoalignment Salmon + tximport 4–8 GB RAM quant.sf + Length-Offset Matrix Fastest laptop/cloud differential expression when novel exon discovery is unnecessary

Regardless of which branch you select, verify library strandedness (-s 0 unstranded, -s 1 forward-stranded, or -s 2 reverse-stranded in featureCounts, or -l A auto-detection in Salmon). Using the wrong strand setting on dUTP/stranded Illumina kits silently discards 80–95% of your mapped reads and collapses gene counts toward zero.

Why Must You Avoid FPKM and TPM in DESeq2 and How Does Normalization Work?

The single most frequent analytical error among new RNA-seq practitioners is feeding pre-normalized values—such as RPKM, FPKM, or TPM—into DESeq2 (Love et al., 2014). DESeq2's statistical engine models discrete count variance under a negative binomial distribution, where the variance of a gene depends directly on raw sequencing depth. Converting raw counts into fractional FPKM or TPM values erases library-size uncertainty and violates the mathematical assumptions of the Wald test and likelihood ratio test.

Instead, supply raw unnormalized integer counts from featureCounts (or raw Salmon estimates via DESeqDataSetFromTximport). Internally, DESeq2 executes a three-step workflow:

  1. Median-of-Ratios Size Factors: For every gene, DESeq2 computes the geometric mean across all samples, calculates each sample's ratio to that pseudo-reference, and takes the median ratio per sample as its size factor. Unlike total-read-count scaling, median-of-ratios stays robust even if a few ultra-abundant transcripts (such as hemoglobin or albumin) shift massively between conditions.
  2. Gene-Wise Dispersion Estimation and Shrinkage: Because three replicates per group provide noisy per-gene variance estimates, DESeq2 shares information across genes of similar mean expression by shrinking noisy raw dispersion estimates toward a fitted mean-dispersion curve.
  3. Negative Binomial GLM & Hypothesis Testing: Using a design formula such as design = ~ batch + condition, DESeq2 tests whether the log2 fold change differs significantly from zero via the Wald test, applies Cook's distance filtering to protect against extreme sample outliers, and corrects all p-values for multiple testing via the Benjamini-Hochberg false discovery rate (adjusted p-value / padj).

When ranking genes or generating MA and volcano plots, always apply log2 fold change shrinkage (lfcShrink(dds, coef=..., type="apeglm")) so lowly expressed genes with high sampling noise do not falsely dominate the top fold-change list. For a deeper mathematical walkthrough of positive vs. negative log2 fold change directionality and uncertainty intervals, see our companion guide on how to interpret log2 fold change in RNA-seq.

How Do Beginners Interpret PCA, Volcano Plots, QC Failures, and Pathway Enrichment?

Never jump straight from results(dds) to biological claims without inspecting sample-level quality plots. First, apply a variance-stabilizing transformation (vst(dds, blind=FALSE)) or regularized log transform (rlog) to stabilize variance across lowly and highly expressed genes, then generate a Principal Component Analysis (PCA) plot and a sample-to-sample Euclidean distance heatmap.

Comparison of PCA and t-SNE dimensionality reduction scatter plots illustrating sample clustering separation
Figure 3. Dimensionality reduction plots (PCA vs. t-SNE) illustrate how linear global variance separation in PCA reveals biological replicate clustering, outlier samples, or batch effects during RNA-seq quality control. Source: Serj.hop, Wikimedia Commons (CC BY-SA 4.0).

In a clean bulk RNA-seq experiment, biological replicates cluster tightly by experimental condition along PC1 or PC2. If samples separate instead by preparation date, technician, or sequencing flowcell, include that covariate ahead of your condition in the design formula (~ batch + condition) rather than stripping batch variation blindly before DESeq2. If one replicate sits far outside its group—or clusters with the opposite treatment—verify sample metadata for swapped labels before deciding whether to exclude it.

Table 2. Beginner Bulk RNA-Seq Troubleshooting: Common Pipeline Failure Modes and Verified Fixes
Pipeline Stage Observed Warning Sign Most Likely Root Cause Verified Corrective Action
FastQC / MultiQC High adapter content (>5–10%) or sharp 3' Phred drop Short cDNA inserts read into Illumina adapters or cycle decay Trim paired FASTQs with Trimmomatic or fastp and re-verify in MultiQC
STAR / featureCounts >70% genome mapping but <20% assigned to exons Incorrect strand parameter, genomic DNA contamination, or mismatched GTF build Test -s 0/1/2 in featureCounts, verify Ensembl/GENCODE build match, check intronic rate
DESeq2 Import Error: values in assay are not integers User passed FPKM, TPM, or normalized counts instead of raw counts Reload raw featureCounts integers or import Salmon via tximport
PCA QC Plot Samples cluster by prep date instead of treatment Unmodeled technical batch effect or sample swap Check sex-chromosome / marker gene expression for swaps; model ~ batch + condition
Differential Results Many genes show padj = NA DESeq2 independent filtering (low mean count) or Cook's distance outlier flag Normal behavior; filter low-count genes pre-test (rowSums(counts >= 10) >= minGroup)

Once QC passes and you extract statistically significant genes (commonly padj < 0.05 and shrunken |log2FoldChange| >= 1, though pathway rankers use the full ranked gene list), summarize biological themes with Over-Representation Analysis (ORA) or Gene Set Enrichment Analysis (GSEA) using clusterProfiler (Wu et al., 2021). Always specify the exact expressed background universe (all tested genes with non-zero counts, not the entire human genome) when running ORA so tissue-specific expression does not inflate false pathway significance.

When Should You Run Pipelines Yourself vs. Use Cloud Workflows or Outsourced Analysis?

Students and early-career researchers analyzing 6 to 24 samples can run the complete pipeline on an institutional Linux cluster, a 16 GB workstation using Salmon + RStudio, or free academic Galaxy servers without paying commercial cloud fees. Once cohorts scale past dozens of samples or require automated provenance tracking for multi-center publications, container-orchestrated workflows such as Nextflow (nf-core/rnaseq) keep software versions pinned via Docker or Singularity. To compare self-managed cluster architectures against cloud pipelines, read our enterprise bioinformatics pipeline architecture guide; if your lab is contracting external bioinformatics support, review our outsourced RNA-seq deliverables and QC checklist; or browse all student protocols inside our Biochemistry and Molecular Biology Study Hub.

Frequently Asked Questions About Beginner RNA-Seq Analysis

1. Can I run DESeq2 directly on TPM, FPKM, or RPKM matrices downloaded from a core facility?

No. DESeq2 requires raw unnormalized integer counts (or raw length-scaled counts via tximport from Salmon or kallisto) because its negative binomial variance model depends directly on sequencing depth. Passing TPM or FPKM distorts dispersion estimation and invalidates p-values.

2. How many biological replicates do I need per condition for bulk RNA-seq?

Use at least three independent biological replicates per experimental group as the practical minimum for cell-line or inbred-model studies, and four to six or more replicates when studying genetically diverse human tissues or subtle drug responses.

3. Should beginners learn STAR + featureCounts or Salmon + tximport first?

If you have access to an HPC cluster (>=32 GB RAM) and want BAM files to inspect exon coverage in IGV, start with STAR + featureCounts. If you are analyzing data on a laptop or standard workstation (8–16 GB RAM) and want rapid gene-level differential expression, start with Salmon + tximport.

4. Why does DESeq2 output NA in the padj column for some expressed genes?

DESeq2 sets padj to NA either because a gene had a very low mean normalized count and was removed by independent filtering to increase overall statistical power, or because a single extreme sample outlier triggered Cook's distance filtering.

5. Should I always trim reads before running STAR or Salmon?

Run FastQC and MultiQC first. Adapter trimming with Trimmomatic or fastp is recommended whenever MultiQC shows adapter read-through (>5%) or severely degraded 3-prime read tails, whereas aggressive fixed-length quality trimming is generally unnecessary because STAR soft-clips and Salmon tolerates low-quality ends.

6. How do I handle batch effects if control and treated samples were sequenced on different days?

Provided treatment groups are balanced across batches (not completely confounded), add batch as a covariate before condition in your DESeq2 formula (design = ~ batch + condition). Avoid inputting externally batch-corrected counts into DESeq2 because raw integer counts are required for dispersion modeling.

References and Further Reading

  1. From bench to bytes: a practical guide to RNA sequencing data analysis. Frontiers in Genetics (2025). PMID: 41220428; PMCID: PMC12599993; DOI: 10.3389/fgene.2025.1697922.
  2. Love MI, Huber W, Anders S. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biology (2014). PMID: 25516281; PMCID: PMC4302049; DOI: 10.1186/s13059-014-0550-8.
  3. Patro R, Duggal G, Love MI, Irizarry RA, Kingsford C. Salmon provides fast and bias-aware quantification of transcript expression. Nature Methods (2017). PMID: 28263959; PMCID: PMC5600148; DOI: 10.1038/nmeth.4197.
  4. Dobin A, Davis CA, Schlesinger F, et al. STAR: ultrafast universal RNA-seq aligner. Bioinformatics (2013). PMID: 23104886; PMCID: PMC3530905; DOI: 10.1093/bioinformatics/bts635.
  5. Kim D, Paggi JM, Park C, Bennett C, Salzberg SL. Graph-based genome alignment and genotyping with HISAT2 and HISAT-genotype. Nature Biotechnology (2019). PMID: 31375807; PMCID: PMC7605509; DOI: 10.1038/s41587-019-0201-4.
  6. Liao Y, Smyth GK, Shi W. featureCounts: an efficient general purpose program for assigning sequence reads to genomic features. Bioinformatics (2014). PMID: 24227677; DOI: 10.1093/bioinformatics/btt656.
  7. Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics (2016). PMID: 27312411; PMCID: PMC5039924; DOI: 10.1093/bioinformatics/btw354.
  8. Bolger AM, Lohse M, Usadel B. Trimmomatic: a flexible trimmer for Illumina sequence data. Bioinformatics (2014). PMID: 24695404; PMCID: PMC4103590; DOI: 10.1093/bioinformatics/btu170.
  9. Wu T, Hu E, Xu S, et al. clusterProfiler 4.0: A universal enrichment tool for interpreting omics data. The Innovation (2021). PMID: 34557778; PMCID: PMC8454663; DOI: 10.1016/j.xinn.2021.100141.
About the Author: Asad Raza

Asad Raza is a Biochemistry and Molecular Biology researcher and science educator at the University of Gujrat, authoring evidence-backed laboratory troubleshooting guides, bioinformatics pipeline walkthroughs, and international STEM scholarship roadmaps for students and wet-lab scientists.

Post a Comment

0 Comments