A guide to creating design matrices for gene expression experiments
Open accessAbstract
Differential expression analysis of genomic data types, such as RNA-sequencing experiments, use linear models to determine the size and direction of the changes in gene expression. For RNA-sequencing, there are several established software packages for this purpose accompanied with analysis pipelines that are well described. However, there are two crucial steps in the analysis process that can be a stumbling block for many -- the set up an appropriate model via design matrices and the set up of comparisons of interest via contrast matrices. These steps are particularly troublesome because an extensive catalogue for design and contrast matrices does not currently exist. One would usually search for example case studies across different platforms and mix and match the advice from those sources to suit the dataset they have at hand. This article guides the reader through the basics of how to set up design and contrast matrices. We take a practical approach by providing code and graphical representation of each case study, starting with simpler examples (e.g. models with a single explanatory variable) and move onto more complex ones (e.g. interaction models, mixed effects models, higher order time series and cyclical models). Although our work has been written specifically with a limma -style pipeline in mind, most of it is also applicable to other software packages for differential expression analysis, and the ideas covered can be adapted to data analysis of other high-throughput technologies. Where appropriate, we explain the interpretation and differences between models to aid readers in their own model choices. Unnecessary jargon and theory is omitted where possible so that our work is accessible to a wide audience of readers, from beginners to those with experience in genomics data analysis.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The validity of differential gene expression results strongly depends on capturing the major axis of variation in the statistical model.
“The validity of DGE results strongly depends on the capture of the major axis of variation in the statistical model.”
From Best practices for single-cell analysis across modalities (2023) · cites this paper as [89]
All regression analyses were set up as mixed effects models including age, sex, and cell type (microglia or CD45−ve bulk) as fixed effects and mouse ID as a random effect.
“All regression analyses were set up as mixed effects models including age, sex, and cell type (microglia or CD45−ve bulk) as fixed effects and mouse ID as a random effect73.”
From Mouse microglia express unique miRNA-mRNA networks to facilitate age-specific functions in the developing central nervous system (2023) · cites this paper as [73]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Robinson, M. D., McCarthy, D. J., & Smyth, G. K. (2010) · Bioinformatics · doi:10.1093/bioinformatics/btp616 · Cited by 41,364 · see citing works
Self-citationlimma powers differential expression analyses for RNA-sequencing and microarray studies
Ritchie, M. E., Phipson, B., Wu, D., Hu, Y., Law, C. W., Shi, W., & Smyth, G. K. (2015) · Nucleic Acids Research · doi:10.1093/nar/gkv007 · Cited by 40,458 · see citing works
Self-citationSmyth, G. K. (2004) · Statistical Applications in Genetics and Molecular Biology · doi:10.2202/1544-6115.1027 · Cited by 11,829 · see citing works
Self-citationMcCarthy, D. J., Chen, Y., & Smyth, G. K. (2012) · Nucleic Acids Research · doi:10.1093/nar/gks042 · Cited by 5,195 · see citing works
Self-citationOrchestrating high-throughput genomic analysis with Bioconductor
Huber, W. K., Carey, V. J., Gentleman, R. C., Anders, S., Carlson, M. R. J., Carvalho, B. S., Bravo, H. C., Davis, S. R., Gatto, L., Girke, T., et al. (2015) · Nature Methods · doi:10.1038/nmeth.3252 · Cited by 3,499 · see citing works
Self-citationRNA-seq analysis is easy as 1-2-3 with limma, Glimma and edgeR
Law, C. W., Alhamdoosh, M., Su, S., Dong, X., Tian, L., Smyth, G. K., & Ritchie, M. E. (2018) · F1000Research · doi:10.12688/f1000research.9005.3 · Cited by 616 · see citing works
Self-citationFactorial and time course designs for cDNA microarray experiments
Glonek, G. F. V., & Solomon, P. J. (2004) · Biostatistics · doi:10.1093/biostatistics/5.1.89 · Cited by 137 · see citing works
Soneson, C., Marini, F., Geier, F. M., et al. (2020) · F1000Research · doi:10.12688/f1000research.24187.1 · Cited by 2 · see citing works
Soneson, C., Marini, F., Geier, F. M., et al. (2020) · F1000Research · doi:10.12688/f1000research.24187.2 · Cited by 1 · see citing works
Flagged first, then by citations
Research works printed but not linked: 1
- [2]Smyth GK: Limma: linear models for microarray data.In: Gentleman R Carey V Dudoit S, editors. Bioinformatics and computational biology solutions using R and Bioconductor. New York: Springer; 2005 p. 397– 420.
Cited by
Sorted by citations
Best practices for single-cell analysis across modalities
Heumos, L., Schaar, A. C., Lance, C., Litinetskaya, A., Drost, F., Zappia, L., Lücken, M. D., Strobl, D. C., Henao, J., Curion, F., et al. (2023) · Nature Reviews Genetics · doi:10.1038/s41576-023-00586-w · Cited by 1,051 · see citing works
“3).”
Walsh, A. D., Stone, S., Freytag, S., Aprico, A., Kilpatrick, T. J., Ansell, B. R. E., & Binder, M. D. (2023) · Communications Biology · doi:10.1038/s42003-023-04926-8 · Cited by 9 · see citing works
A multiomics approach reveals RNA dynamics promote cellular sensitivity to DNA hypomethylation
Ge, A. Y., Arab, A., Dai, R., Navickas, A., Fish, L., Garcia, K., Asgharian, H., Goudreau, J., Lee, S., Keenan, K., et al. (2024) · Scientific Reports · doi:10.1038/s41598-024-77314-9 · Cited by 4 · see citing works
- Authors
- Law, C. W., Zeglinski, K., Dong, X., Alhamdoosh, M., Smyth, G. K., & Ritchie, M. E.
- Affiliations
- The University of Melbourne (AU)
- Walter and Eliza Hall Institute of Medical Research (AU)
- CSL (Australia) (AU)
- Corresponding author
- Law, Charity W.
- Smyth, Gordon K.
- Ritchie, Matthew E.
- ORCID
- Venue
- F1000Research
- Publisher
- F1000 Research Ltd
- Published
- 2020-12-10
- Volume
- 9
- Pages
- 1444
- ISSN
- 2046-1402 (ISSN-L)
- PMC
- PMC7873980
- OpenAlex
- W3111088326
- Cited by
- 69
- References
- 9
- Citations by year
- 2026: 10 · 2025: 20 · 2024: 23 · 2023: 11 · 2022: 5
- FWCI
- 1.30
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- Locations
- F1000Research (publishedVersion, cc-by)
- PubMed Central (publishedVersion, cc-by)
- PubMed (publishedVersion)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Minerva Access (University of Melbourne) (submittedVersion, cc-by)
- Funders
- Chan Zuckerberg Initiative
- National Health and Medical Research Council (1154970)
- Topics
- Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Gene expression and cancer classification
- Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Genomics and Phylogenetic Studies
- Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Bioinformatics and Genomic Networks
- Keywords
- design matrix, differential expression analysis, RNA sequencing, linear models, limma, mixed models, interaction model, time series models, cyclical model, model selection
- MeSH terms
- Gene Expression, Linear Models, Sequence Analysis, RNA, Genomics
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review