eduKateSG · Why Science?
Compare replicated count libraries with a model that respects composition, biological variation and the uncertainty around each fitted gene
Reading routes
Science learning becomes useful when a familiar object or observation is turned into a system of quantities, mechanisms and claim limits. This guide owns one applied evidence-reading job inside eduKateSG’s wider Science estate. It connects naturally to Why Science Single Cell Rna Sequencing Barcodes Transcriptome Heterogeneity Evidence; Why Science Muscat Multi Sample Multi Group Differential State Analysis; Why Science Dreamlet Pseudobulk Mixed Models Complex Single Cell Cohorts; Why Science Nebula Subject Aware Count Models Scalable Single Cell Inference; Education Hub; Singapore Secondary School Directory; Career Adulthood Hub; Science Learning Hub. It also keeps current school and public claims traceable to visible primary sources: edgeR software paper; Official edgeR User's Guide; Official Bioconductor edgeR package; 2026 Singapore–Cambridge O-Level Biology syllabus; MOE G2/G3 Lower Secondary Science syllabus; 2026 MOE G2 Computing syllabus. The sources describe the scientific scope; this article translates that scope into a calm route for Primary Science, PSLE Science, Secondary Science, O-Level Science, STEM exploration, school choices and career pathways without inventing admission or employment outcomes.
edgeR is a Bioconductor framework for differential analysis of replicated read counts. Its methods combine effective library sizes, negative-binomial variation, empirical-Bayes information sharing and either exact tests or generalised linear models. The current user guide documents trimmed mean of M-values normalisation, complex design matrices, robust dispersion estimation, quasi-likelihood testing and pseudobulk workflows. Those tools are powerful because they make assumptions explicit; they do not replace independent samples, a valid contrast or biological validation.
Inside this guide
1–12 · Foundations and models
- 1. Begin with replicated libraries
- 2. Define a count feature
- 3. Understand overdispersed counts
- 4. Separate composition from depth
- 5. Choose exact or GLM reasoning
- 6. Protect the experimental unit
- 7. Read the edgeR evidence in scope
- 8. Create a DGEList deliberately
- 9. Filter with expression context
- 10. Calculate TMM factors
- 11. Explore samples with MDS
- 12. Construct a full-rank design
13–24 · Evidence, testing and applications
- 13. Estimate common and trended variation
- 14. Use robust empirical Bayes when justified
- 15. Practise with a fictional edgeR table
- 16. Fit quasi-likelihood models
- 17. Define contrasts algebraically
- 18. Run quasi-likelihood F-tests
- 19. Correct for multiplicity
- 20. Read effect and abundance together
- 21. Use smear and expression plots
- 22. Inspect fitted and residual patterns
- 23. Audit normalisation sensitivity
- 24. Audit filtering sensitivity
25–36 · Learning, decisions and pathways
- 25. Audit sample influence
- 26. Handle blocking and pairing
- 27. Compare with limma-voom
- 28. Build an edgeR evidence card
- 29. Connect edgeR to school science
- 30. Try a composition activity
- 31. Connect to mathematics
- 32. Connect to computing and AI literacy
- 33. Connect to school and career pathways
- 34. Create a family evidence habit
- 35. Use precise edgeR language
- 36. Finish with a libraries-to-claim bundle
Section 1 of 36
1. Begin with replicated libraries
edgeR is most useful when the analysis begins with independent libraries tied to a clear biological comparison. Write the sample structure and intended contrast before filtering or normalising.
edgeR models feature counts with negative-binomial distributions and uses empirical-Bayes strategies to stabilise dispersion estimates across genes.
Archive the sample manifest, count provenance, feature identifiers, formula, contrast, filters, package version, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 2 of 36
2. Define a count feature
Rows may represent genes, exons, transcripts, guide RNAs or other genomic features. The biological interpretation must match the counting rule and annotation.
TMM normalisation estimates relative composition factors; together with library sizes these form effective library sizes used by the model.
Keep the biological sample as the unit of replication. More reads or cells can improve measurement, but they do not create more independent people, animals or cultures.
Section 3 of 36
3. Understand overdispersed counts
Replicate counts usually vary more than a Poisson model predicts. Negative-binomial dispersion represents this additional variation rather than treating it as unexplained noise.
A multidimensional-scaling plot is a sample-level diagnostic, not a proof of group separation or the absence of confounding.
Pair adjusted evidence with effect direction, uncertainty, sample-level plots and sensitivity checks; a short ranked table is not a complete scientific result.
Section 4 of 36
4. Separate composition from depth
Two libraries can have the same total reads but different composition when a few features dominate one sample. Effective library sizes try to preserve fair relative comparisons.
The quasi-likelihood pipeline represents uncertainty about gene-wise variability and provides rigorous testing for complex replicated designs.
Use negative controls, simulated nulls or label permutations only when their assumptions match the design, and name the particular false signal each check could reveal.
Section 5 of 36
5. Choose exact or GLM reasoning
Exact tests address simple groups, while generalised linear models describe multifactor experiments. Current edgeR guidance gives quasi-likelihood methods a central role for rigorous complex comparisons.
Robust estimation can reduce the influence of hypervariable features, but it cannot rescue a design with no independent replication or perfect confounding.
Create an evidence card naming the question, measured material, statistical unit, model, comparison, result, validation status, alternatives and narrowest defensible claim.
Section 6 of 36
6. Protect the experimental unit
The column of a pseudobulk matrix should correspond to a biological sample within a cell type. Cells pooled from the same sample remain dependent.
An exact test suits simple two-group settings, while GLM and quasi-likelihood workflows make multifactor questions explicit through designs and contrasts.
Write association or differential expression when that is what was tested. Reserve cause, mechanism, diagnosis and benefit for designs with stronger supporting evidence.
Section 7 of 36
7. Read the edgeR evidence in scope
The software paper and subsequent methodological work describe empirical-Bayes count analysis, TMM normalisation, GLMs and quasi-likelihood tests. Use the current user guide because the workflow has developed beyond the original announcement.
edgeR models feature counts with negative-binomial distributions and uses empirical-Bayes strategies to stabilise dispersion estimates across genes.
Archive the sample manifest, count provenance, feature identifiers, formula, contrast, filters, package version, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 8 of 36
8. Create a DGEList deliberately
Align the count matrix, sample table and feature annotation before creating the analysis object. Verify unique names and intended group labels.
TMM normalisation estimates relative composition factors; together with library sizes these form effective library sizes used by the model.
Keep the biological sample as the unit of replication. More reads or cells can improve measurement, but they do not create more independent people, animals or cultures.
Section 9 of 36
9. Filter with expression context
Use expression-aware filtering that considers library sizes and the design. A fixed raw-count cutoff applied blindly across unequal libraries can retain or remove the wrong features.
A multidimensional-scaling plot is a sample-level diagnostic, not a proof of group separation or the absence of confounding.
Pair adjusted evidence with effect direction, uncertainty, sample-level plots and sensitivity checks; a short ranked table is not a complete scientific result.
Section 10 of 36
10. Calculate TMM factors
Trimmed mean of M-values normalisation estimates composition factors after excluding extreme log ratios and intensities. Inspect factors that differ greatly from one.
The quasi-likelihood pipeline represents uncertainty about gene-wise variability and provides rigorous testing for complex replicated designs.
Use negative controls, simulated nulls or label permutations only when their assumptions match the design, and name the particular false signal each check could reveal.
Section 11 of 36
11. Explore samples with MDS
Multidimensional-scaling plots reveal leading expression differences among libraries. Colour by condition, batch, subject and preparation variables to expose competing explanations.
Robust estimation can reduce the influence of hypervariable features, but it cannot rescue a design with no independent replication or perfect confounding.
Create an evidence card naming the question, measured material, statistical unit, model, comparison, result, validation status, alternatives and narrowest defensible claim.
Section 12 of 36
12. Construct a full-rank design
Choose intercept or no-intercept coding consciously. Check that every coefficient is estimable and that interactions have adequate observations in all required combinations.
An exact test suits simple two-group settings, while GLM and quasi-likelihood workflows make multifactor questions explicit through designs and contrasts.
Write association or differential expression when that is what was tested. Reserve cause, mechanism, diagnosis and benefit for designs with stronger supporting evidence.
Section 13 of 36
13. Estimate common and trended variation
Common and abundance-dependent patterns provide shared information about variability. They establish context for gene-wise or quasi-likelihood dispersion estimates.
edgeR models feature counts with negative-binomial distributions and uses empirical-Bayes strategies to stabilise dispersion estimates across genes.
Archive the sample manifest, count provenance, feature identifiers, formula, contrast, filters, package version, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 14 of 36
14. Use robust empirical Bayes when justified
Robust options can protect global trends from a minority of hypervariable genes. Document the choice and investigate which features receive unusual treatment.
TMM normalisation estimates relative composition factors; together with library sizes these form effective library sizes used by the model.
Keep the biological sample as the unit of replication. More reads or cells can improve measurement, but they do not create more independent people, animals or cultures.
Section 15 of 36
15. Practise with a fictional edgeR table
This classroom table is invented and is not a result from the edgeR paper.
| Fictional feature | logFC | FDR | Biological CV | Reading |
|---|---|---|---|---|
| FEATURE-A | 1.1 | 0.008 | 0.18 | Consistent |
| FEATURE-B | -1.7 | 0.040 | 0.62 | Variable |
| FEATURE-C | 0.3 | 0.700 | 0.20 | Little evidence |
A multidimensional-scaling plot is a sample-level diagnostic, not a proof of group separation or the absence of confounding.
Pair adjusted evidence with effect direction, uncertainty, sample-level plots and sensitivity checks; a short ranked table is not a complete scientific result.
Section 16 of 36
16. Fit quasi-likelihood models
glmQLFit estimates gene-wise quasi-likelihood variability after fitting the count mean model. Save prior degrees of freedom, robust settings and fit diagnostics.
The quasi-likelihood pipeline represents uncertainty about gene-wise variability and provides rigorous testing for complex replicated designs.
Use negative controls, simulated nulls or label permutations only when their assumptions match the design, and name the particular false signal each check could reveal.
Section 17 of 36
17. Define contrasts algebraically
A contrast is a weighted combination of design coefficients. Write it in words, verify the sign on a small example and then encode it.
Robust estimation can reduce the influence of hypervariable features, but it cannot rescue a design with no independent replication or perfect confounding.
Create an evidence card naming the question, measured material, statistical unit, model, comparison, result, validation status, alternatives and narrowest defensible claim.
Section 18 of 36
18. Run quasi-likelihood F-tests
glmQLFTest assesses the declared coefficient or contrast while representing uncertainty in dispersion. The test does not decide whether the effect is biologically important.
An exact test suits simple two-group settings, while GLM and quasi-likelihood workflows make multifactor questions explicit through designs and contrasts.
Write association or differential expression when that is what was tested. Reserve cause, mechanism, diagnosis and benefit for designs with stronger supporting evidence.
Section 19 of 36
19. Correct for multiplicity
Control false discoveries across the planned testing family. If many cell types and contrasts are analysed, explain whether adjustment is local or global.
edgeR models feature counts with negative-binomial distributions and uses empirical-Bayes strategies to stabilise dispersion estimates across genes.
Archive the sample manifest, count provenance, feature identifiers, formula, contrast, filters, package version, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 20 of 36
20. Read effect and abundance together
A large log fold change at extremely low abundance can be unstable or difficult to validate. Examine counts per million and sample support beside each effect.
TMM normalisation estimates relative composition factors; together with library sizes these form effective library sizes used by the model.
Keep the biological sample as the unit of replication. More reads or cells can improve measurement, but they do not create more independent people, animals or cultures.
Section 21 of 36
21. Use smear and expression plots
Visual summaries can reveal intensity trends and sample inconsistencies. Label a small set of prespecified or adjusted-evidence features, not only convenient examples.
A multidimensional-scaling plot is a sample-level diagnostic, not a proof of group separation or the absence of confounding.
Pair adjusted evidence with effect direction, uncertainty, sample-level plots and sensitivity checks; a short ranked table is not a complete scientific result.
Section 22 of 36
22. Inspect fitted and residual patterns
Examine deviance, quasi-likelihood dispersion and sample-level residual behaviour. A model may run successfully while fitting particular genes poorly.
The quasi-likelihood pipeline represents uncertainty about gene-wise variability and provides rigorous testing for complex replicated designs.
Use negative controls, simulated nulls or label permutations only when their assumptions match the design, and name the particular false signal each check could reveal.
Section 23 of 36
23. Audit normalisation sensitivity
Repeat key results using defensible alternative scaling or after examining composition-driving features. Large changes indicate dependence on normalisation assumptions.
Robust estimation can reduce the influence of hypervariable features, but it cannot rescue a design with no independent replication or perfect confounding.
Create an evidence card naming the question, measured material, statistical unit, model, comparison, result, validation status, alternatives and narrowest defensible claim.
Section 24 of 36
24. Audit filtering sensitivity
Vary the predeclared expression threshold within a reasonable range. Headline effects should not depend on one arbitrary boundary.
An exact test suits simple two-group settings, while GLM and quasi-likelihood workflows make multifactor questions explicit through designs and contrasts.
Write association or differential expression when that is what was tested. Reserve cause, mechanism, diagnosis and benefit for designs with stronger supporting evidence.
Section 25 of 36
25. Audit sample influence
Remove one library at a time or use robust diagnostics for important genes. A finding supported by one subject should be labelled exploratory.
edgeR models feature counts with negative-binomial distributions and uses empirical-Bayes strategies to stabilise dispersion estimates across genes.
Archive the sample manifest, count provenance, feature identifiers, formula, contrast, filters, package version, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 26 of 36
26. Handle blocking and pairing
Represent paired samples or donor effects in the design when the structure is estimable. Do not analyse paired observations as if they were independent groups.
TMM normalisation estimates relative composition factors; together with library sizes these form effective library sizes used by the model.
Keep the biological sample as the unit of replication. More reads or cells can improve measurement, but they do not create more independent people, animals or cultures.
Section 27 of 36
27. Compare with limma-voom
edgeR keeps negative-binomial count likelihoods; voom estimates precision weights for log-count linear models. Both can use the same design matrix, making question alignment visible.
A multidimensional-scaling plot is a sample-level diagnostic, not a proof of group separation or the absence of confounding.
Pair adjusted evidence with effect direction, uncertainty, sample-level plots and sensitivity checks; a short ranked table is not a complete scientific result.
Section 28 of 36
28. Build an edgeR evidence card
Record counting, libraries, filtering, TMM factors, design, dispersion path, robust settings, contrast, testing family, diagnostics, effect sizes and validation.
The quasi-likelihood pipeline represents uncertainty about gene-wise variability and provides rigorous testing for complex replicated designs.
Use negative controls, simulated nulls or label permutations only when their assumptions match the design, and name the particular false signal each check could reveal.
Section 29 of 36
29. Connect edgeR to school science
A fair test compares groups while recognising natural variation among replicates. Dispersion is a mathematical way to keep that variability inside the conclusion.
Robust estimation can reduce the influence of hypervariable features, but it cannot rescue a design with no independent replication or perfect confounding.
Create an evidence card naming the question, measured material, statistical unit, model, comparison, result, validation status, alternatives and narrowest defensible claim.
Section 30 of 36
30. Try a composition activity
Build counters representing two libraries, then let one feature expand dramatically in one library. Compare totals, proportions and trimmed ratios to see why composition matters.
An exact test suits simple two-group settings, while GLM and quasi-likelihood workflows make multifactor questions explicit through designs and contrasts.
Write association or differential expression when that is what was tested. Reserve cause, mechanism, diagnosis and benefit for designs with stronger supporting evidence.
Section 31 of 36
31. Connect to mathematics
Weighted averages, logarithms, variance, regression and F-tests show how models balance signal against replicate variation.
edgeR models feature counts with negative-binomial distributions and uses empirical-Bayes strategies to stabilise dispersion estimates across genes.
Archive the sample manifest, count provenance, feature identifiers, formula, contrast, filters, package version, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 32 of 36
32. Connect to computing and AI literacy
A software pipeline is a sequence of explicit transformations and tests. Auditing inputs and parameter choices is more informative than trusting a colourful output panel.
TMM normalisation estimates relative composition factors; together with library sizes these form effective library sizes used by the model.
Keep the biological sample as the unit of replication. More reads or cells can improve measurement, but they do not create more independent people, animals or cultures.
Section 33 of 36
33. Connect to school and career pathways
Count modelling connects laboratory biology with statistics, computing, genomics, medicine and biotechnology without prescribing one fixed route.
A multidimensional-scaling plot is a sample-level diagnostic, not a proof of group separation or the absence of confounding.
Pair adjusted evidence with effect direction, uncertainty, sample-level plots and sensitivity checks; a short ranked table is not a complete scientific result.
Section 34 of 36
34. Create a family evidence habit
When a result reports thousands of significant genes, ask about biological replicates, composition factors, effect sizes and the testing family.
The quasi-likelihood pipeline represents uncertainty about gene-wise variability and provides rigorous testing for complex replicated designs.
Use negative controls, simulated nulls or label permutations only when their assumptions match the design, and name the particular false signal each check could reveal.
Section 35 of 36
35. Use precise edgeR language
Say the feature showed differential abundance or expression under the stated edgeR model and contrast. Do not convert association into mechanism.
Robust estimation can reduce the influence of hypervariable features, but it cannot rescue a design with no independent replication or perfect confounding.
Create an evidence card naming the question, measured material, statistical unit, model, comparison, result, validation status, alternatives and narrowest defensible claim.
Section 36 of 36
36. Finish with a libraries-to-claim bundle
Deliver raw-count provenance, feature annotation, metadata, code, TMM factors, plots, design, dispersion diagnostics, complete tests, sensitivity checks and bounded conclusions.
An exact test suits simple two-group settings, while GLM and quasi-likelihood workflows make multifactor questions explicit through designs and contrasts.
Write association or differential expression when that is what was tested. Reserve cause, mechanism, diagnosis and benefit for designs with stronger supporting evidence.
## Source date and scope note Primary studies and current official software documentation were checked for this article on 11 October 2026. Software interfaces and recommendations can change, so readers should consult the linked current documentation before reproducing an analysis.
## Final reader checklist Before accepting a claim, confirm the biological sample count, condition definition, measured material, preprocessing, statistical unit, design matrix, exact contrast, effect size, uncertainty, software version, negative controls, sensitivity checks, independent validation and the boundary between association and causation.
Contents · Previous section · Continue to the Science Learning Hub
