My Academic TutorLearn with understanding.
Menu
BIOINFORMATICS · LEARNING GUIDE

DESeq2 differential expression: from design formula to interpretable results

A reasoning-first overview of DESeq2 design, contrasts, shrinkage, multiple testing and result interpretation.

Start with the design formula

In DESeq2, the design formula specifies which sample-level variables explain systematic differences in counts. A design such as ~ batch + condition asks the model to account for batch while estimating condition differences.

The formula must match the experimental structure. Pairing, repeated samples or confounded designs cannot be repaired by copying a generic formula from a tutorial.

Quality control before testing

Inspect library sizes, sample distances, principal components and metadata consistency before gene-level inference. Unexpected clusters can indicate batch effects, sample swaps, biological heterogeneity or technical problems that need investigation.

Filtering very low-count features can reduce the multiple-testing burden and remove genes with little information, but filtering rules should be transparent and appropriate for the workflow.

Contrasts define the comparison

A contrast tells DESeq2 which condition difference you want to estimate and in which direction. Check factor reference levels so that a positive log2 fold change means what you think it means.

For complex designs with interactions, the coefficient or contrast can represent a difference in differences rather than a simple group comparison, so interpretation must follow the model specification.

Effect size, uncertainty and multiplicity

DESeq2 reports log2 fold changes and statistical evidence across many genes. Adjusted p-values account for multiple testing, while shrinkage methods can stabilise noisy fold-change estimates for ranking and visualisation.

A low adjusted p-value does not guarantee biological importance. Consider effect magnitude, expression level, consistency, pathway context and independent validation where relevant.

Use this actively

Close the guide and explain the main idea without looking back. Then work through a fresh example. The first step you cannot explain is usually the best place to focus your next revision session.

About this guide: Educational content from My Academic Tutor. It is intended to support understanding and independent study, not replace course-specific teaching, supervision or assessed work.

Read our Learning Hub editorial approach