Skip to content

DESeq2 Differential Expression Analysis

NotchBio runs DESeq2 on gene-level counts to test which genes change between experimental levels. The analysis stores the design formula, input quantification version, comparisons, significance threshold, result tables, and plots as one reproducible pipeline version.

Your project needs:

  • A completed Salmon or STAR quantification version for the samples in the analysis.
  • A primary variable—Group/Condition, Cell Line, or Batch—assigned to every included sample.
  • At least two levels in the primary variable so DESeq2 has a comparison to test.
  • At least two biological replicates in every primary-variable level. Three or more is a stronger practical minimum.
  • Values for every selected blocking variable on every included sample.

Technical replicates do not replace biological replication. If condition and batch are perfectly confounded—for example, all controls were sequenced in batch 1 and all treatments in batch 2—DESeq2 cannot separate the biological effect from the batch effect.

  1. Open the project and go to Run → DESeq2 design.
  2. Select the completed Salmon or STAR version that contains the counts you want to test.
  3. Choose the primary variable whose levels define the biological comparisons.
  4. Add optional blocking variables such as batch or cell line.
  5. Review the generated design formula and planned pairwise comparisons.
  6. Choose the independent-filtering alpha/FDR target (0.05 is the standard option).
  7. Resolve any missing metadata, replication, or design-capacity warnings.
  8. Start the run and select the completed version to review its results.

NotchBio generates pairwise comparisons between the levels of the selected primary variable. The comparison label tells you which level is measured relative to the other; always read it before interpreting the sign of log2FoldChange.

The primary variable is the factor you want to test. Blocking variables account for known nuisance variation without becoming the main comparison.

Design questionPrimary variableBlocking variable(s)Formula example
Treatment vs controlGroup/ConditionNone~ group
Treatment vs control across sequencing batchesGroup/ConditionBatch~ batch + group
Treatment effect across cell linesGroup/ConditionCell Line~ cell_line + group
Cell-line differences controlling for batchCell LineBatch~ batch + cell_line

Adding batch to the design models the batch effect during statistical inference; it does not rewrite the raw count matrix or guarantee that a PCA plot will stop clustering by batch. Do not use a visually corrected matrix as DESeq2 input unless your statistical method explicitly supports that workflow.

The downloadable result table contains the core DESeq2 statistics:

  • baseMean: mean normalized expression across the samples in the comparison.
  • log2FoldChange: effect size and direction. A value of 1 is a two-fold increase; -1 is a two-fold decrease relative to the comparison baseline.
  • lfcSE: uncertainty of the estimated log2 fold change.
  • stat: Wald test statistic used to test the coefficient.
  • pvalue: unadjusted probability from the statistical test.
  • padj: p-value corrected for testing thousands of genes. Use this for significance decisions.

An adjusted p-value below 0.05 is a common statistical threshold, but it is not a biological effect-size threshold. Report the FDR and the log2 fold-change rule you chose, and inspect expression levels and replicate consistency before promoting a gene as a result.

The volcano plot shows effect size on the x-axis and statistical evidence on the y-axis. Use it to find genes that are both well supported and meaningfully changed. A dramatic y-value with a tiny fold change may be statistically reliable without being biologically important.

The MA plot shows log2 fold change against average expression. Look for increased scatter among low-count genes, systematic asymmetry, and unstable large effects. Fold-change shrinkage is especially helpful for noisy low-count genes.

PCA summarizes the largest sources of variation across samples. Replicates should be biologically plausible, but separation is not a formal significance test. Clustering by batch, cell line, or another known factor can explain why that factor belongs in the design.

The heatmap helps identify sample clusters and outliers among variable or significant genes. The VST matrix is useful for visualization and clustering; it is not a replacement for raw integer counts in the DESeq2 model.

One or more levels has fewer than two independent samples. Add valid biological replicates or change the primary variable. Do not duplicate a sample or treat lanes from the same library as independent replicates.

Assign the selected variable to every included sample. A blocking variable with missing values makes the design incomplete.

The design has too many levels or covariates for the number of samples. Simplify the question, add samples, or remove a blocking variable only when the experimental design supports that decision.

No model can recover a treatment effect when treatment and batch always change together. The reliable fix is experimental: distribute conditions across batches or include shared anchor samples before sequencing.

Low-count independent filtering and outlier handling can produce missing adjusted p-values. Inspect baseMean, sample-level counts, and replicate behavior before changing filtering rules.

What to Report in an RNA-Seq Methods Section

Section titled “What to Report in an RNA-Seq Methods Section”

Record the count-generation method and version, DESeq2 version, input samples, design formula, primary and blocking variables, comparisons, alpha/FDR threshold, fold-change shrinkage method, independent filtering behavior, and any additional effect-size cutoff. NotchBio stores the input version and parameters with each run so the result can be traced back through preprocessing and quantification.

For the statistical model, read How DESeq2 Actually Works (Without the Math Overload). For complex designs, see DESeq2 Contrasts: Multiple Conditions and Multi-Factor Designs.