eduKateSG · Why Science?
Write the biological patterns first, then ask which model each feature supports—rather than letting a ranking invent the question
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 Dss.Html; Why Science Deseq2 Moderated Dispersion Fold Change Count Data; Why Science Edger Tmm Quasi Likelihood Replicated Counts; Why Science Limma Voom Precision Weights Linear Models Rna Seq; 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: baySeq primary study; Official Bioconductor baySeq package; Official baySeq vignette, 28 April 2026; 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.
baySeq is a Bioconductor framework for empirical-Bayesian analysis of differential patterns in high-throughput count data. Hardcastle and Kelly’s primary study and the current package vignette describe how users specify candidate models, estimate prior distributions from the data and obtain posterior likelihoods for each feature. A model can represent simple no-change versus two-group change or more complex biologically plausible patterns. That flexibility raises a responsibility: posterior support is conditional on the candidate models, replicate labels, distribution and prior estimation, so omitted or implausible patterns can shape the answer.
Inside this guide
1–12 · Foundations and models
- 1. Begin with competing models
- 2. Map rows and libraries
- 3. Separate replicates from models
- 4. Understand posterior comparison
- 5. Use empirical priors responsibly
- 6. Keep biological meaning attached
- 7. Read the 2010 study in scope
- 8. Construct the countData object
- 9. Inspect library sizes
- 10. Filter sparse rows deliberately
- 11. Encode no-difference explicitly
- 12. Encode a two-group difference
13–24 · Evidence, testing and applications
- 13. Design complex patterns sparingly
- 14. Estimate priors
- 15. Practise with a fictional baySeq table
- 16. Calculate model likelihoods
- 17. Interpret posterior likelihoods
- 18. Rank without hiding ambiguity
- 19. Connect posterior odds and priors
- 20. Control expected false discoveries
- 21. Plot sample support
- 22. Challenge the candidate set
- 23. Challenge prior estimation
- 24. Challenge normalisation
25–36 · Learning, decisions and pathways
- 25. Challenge the distribution
- 26. Challenge sample influence
- 27. Compare with coefficient models
- 28. Build a baySeq evidence card
- 29. Connect model choice to fair tests
- 30. Try a model-vector activity
- 31. Connect to mathematics
- 32. Connect to computing literacy
- 33. Connect to education pathways
- 34. Create a family model habit
- 35. Use precise baySeq language
- 36. Finish with a models-to-claim bundle
Section 1 of 36
1. Begin with competing models
baySeq requires a set of plausible expression patterns before it can allocate posterior support. Describe the conditions, biological replicates and questions in words before encoding any model vectors.
baySeq asks which user-specified model of shared or distinct underlying parameters best explains each row, after estimating prior structure from the dataset.
Archive sample metadata, raw-data accessions, annotation, software versions, commands, filters and random seeds so another analyst can reconstruct every decision.
Section 2 of 36
2. Map rows and libraries
Each matrix row represents a genomic event or feature and each column a sequencing library. Preserve feature identifiers, sample order and the counting procedure so the statistical object remains connected to measured biology.
Replicate labels help estimate within-condition variation, while model vectors encode which libraries are expected to share parameters for a particular biological pattern.
Treat independently sampled people, animals, cultures or specimens as the replicates; extra reads, bootstraps or transcript estimates do not create new biological units.
Section 3 of 36
3. Separate replicates from models
Replicate labels describe which libraries share a biological condition for estimating variation. Candidate models describe which libraries are expected to share underlying parameters for a particular feature pattern.
Posterior likelihoods are relative to the candidate model set. They do not measure truth outside that set or rescue a biologically incomplete set of hypotheses.
Pair any probability or adjusted value with effect direction, uncertainty, sample-level plots, diagnostics and a sensitivity analysis that could have contradicted the result.
Section 4 of 36
4. Understand posterior comparison
For each feature, baySeq compares the likelihood of the observed counts under candidate models and combines it with estimated prior probabilities. The result is relative support within that declared set.
Negative-binomial count modelling permits variance beyond a Poisson process. The chosen distribution must still be checked against observed sample behaviour.
State the testing family and all planned comparisons. Multiple testing is a property of the whole decision set, not merely one attractive row.
Section 5 of 36
5. Use empirical priors responsibly
The package estimates prior distributions using the full collection of rows or a sample of them. Feature filtering and prior-sampling choices can therefore influence every posterior result.
Empirical priors borrow information from many rows, improving stability while also making results dependent on the feature universe and prior-estimation procedure.
Create an evidence card naming the question, measured material, model, contrast or pattern, result, alternatives, validation status and narrowest defensible claim.
Section 6 of 36
6. Keep biological meaning attached
A model vector is only numbers until each group assignment is translated back into a biological statement. Save that translation beside the code and results.
Complex patterns can be powerful when prespecified, but an enormous catalogue of post-hoc models can diffuse evidence and invite storytelling after the results are seen.
Use differential expression or model support when that is what was estimated; reserve mechanism, cause, diagnosis and benefit for stronger designs and evidence.
Section 7 of 36
7. Read the 2010 study in scope
Hardcastle and Kelly introduced baySeq as an empirical-Bayes framework for identifying differential patterns in sequence count data. Its demonstrations establish a method, not a guarantee that every user-defined model is scientifically sensible.
baySeq asks which user-specified model of shared or distinct underlying parameters best explains each row, after estimating prior structure from the dataset.
Archive sample metadata, raw-data accessions, annotation, software versions, commands, filters and random seeds so another analyst can reconstruct every decision.
Section 8 of 36
8. Construct the countData object
Check integer counts, library names, replicate factors and group models before creating the object. A valid object can still contain a scientifically invalid sample mapping.
Replicate labels help estimate within-condition variation, while model vectors encode which libraries are expected to share parameters for a particular biological pattern.
Treat independently sampled people, animals, cultures or specimens as the replicates; extra reads, bootstraps or transcript estimates do not create new biological units.
Section 9 of 36
9. Inspect library sizes
Different totals affect expected counts and require appropriate scaling. Examine raw totals, effective library sizes and composition before estimating the priors.
Posterior likelihoods are relative to the candidate model set. They do not measure truth outside that set or rescue a biologically incomplete set of hypotheses.
Pair any probability or adjusted value with effect direction, uncertainty, sample-level plots, diagnostics and a sensitivity analysis that could have contradicted the result.
Section 10 of 36
10. Filter sparse rows deliberately
Features with too little information add computation and can distort the prior population. Use a rule tied to replicate structure and document the tested universe.
Negative-binomial count modelling permits variance beyond a Poisson process. The chosen distribution must still be checked against observed sample behaviour.
State the testing family and all planned comparisons. Multiple testing is a property of the whole decision set, not merely one attractive row.
Section 11 of 36
11. Encode no-difference explicitly
The no-differential-expression model usually assigns all libraries to one underlying group. Include it when scientifically plausible so changed models have a meaningful comparator.
Empirical priors borrow information from many rows, improving stability while also making results dependent on the feature universe and prior-estimation procedure.
Create an evidence card naming the question, measured material, model, contrast or pattern, result, alternatives, validation status and narrowest defensible claim.
Section 12 of 36
12. Encode a two-group difference
For a simple A-versus-B experiment, the alternative model groups replicates within A and within B while separating the conditions. Verify each vector position against the sample sheet.
Complex patterns can be powerful when prespecified, but an enormous catalogue of post-hoc models can diffuse evidence and invite storytelling after the results are seen.
Use differential expression or model support when that is what was estimated; reserve mechanism, cause, diagnosis and benefit for stronger designs and evidence.
Section 13 of 36
13. Design complex patterns sparingly
With several conditions, candidate vectors can represent ordered, shared or condition-specific patterns. Choose those motivated by design or prior biology instead of enumerating stories after viewing results.
baySeq asks which user-specified model of shared or distinct underlying parameters best explains each row, after estimating prior structure from the dataset.
Archive sample metadata, raw-data accessions, annotation, software versions, commands, filters and random seeds so another analyst can reconstruct every decision.
Section 14 of 36
14. Estimate priors
The getPriors workflow estimates distributions of underlying parameters from many features, optionally using parallel computation. Record sample size, randomisation and cluster settings because they affect reproducibility.
Replicate labels help estimate within-condition variation, while model vectors encode which libraries are expected to share parameters for a particular biological pattern.
Treat independently sampled people, animals, cultures or specimens as the replicates; extra reads, bootstraps or transcript estimates do not create new biological units.
Section 15 of 36
15. Practise with a fictional baySeq table
This classroom table is invented and is not a result from the baySeq study.
| Fictional feature | P(NDE) | P(A differs) | P(ordered rise) | Reading |
|---|---|---|---|---|
| FEATURE-B1 | 0.02 | 0.91 | 0.07 | Two-group candidate |
| FEATURE-B2 | 0.45 | 0.20 | 0.35 | Ambiguous |
| FEATURE-B3 | 0.03 | 0.12 | 0.85 | Ordered candidate |
Posterior likelihoods are relative to the candidate model set. They do not measure truth outside that set or rescue a biologically incomplete set of hypotheses.
Pair any probability or adjusted value with effect direction, uncertainty, sample-level plots, diagnostics and a sensitivity analysis that could have contradicted the result.
Section 16 of 36
16. Calculate model likelihoods
The getLikelihoods workflow evaluates each candidate model for each row using the fitted prior structure. Save the model names and ordering so posterior columns cannot be mislabelled later.
Negative-binomial count modelling permits variance beyond a Poisson process. The chosen distribution must still be checked against observed sample behaviour.
State the testing family and all planned comparisons. Multiple testing is a property of the whole decision set, not merely one attractive row.
Section 17 of 36
17. Interpret posterior likelihoods
A value near one means strong relative support among supplied models, not that a feature is certainly causal or that all alternative biological explanations were considered.
Empirical priors borrow information from many rows, improving stability while also making results dependent on the feature universe and prior-estimation procedure.
Create an evidence card naming the question, measured material, model, contrast or pattern, result, alternatives, validation status and narrowest defensible claim.
Section 18 of 36
18. Rank without hiding ambiguity
Report posterior support for multiple plausible models when they are close. A winner with 0.42 support in a four-model set is not equivalent to a winner with 0.99.
Complex patterns can be powerful when prespecified, but an enormous catalogue of post-hoc models can diffuse evidence and invite storytelling after the results are seen.
Use differential expression or model support when that is what was estimated; reserve mechanism, cause, diagnosis and benefit for stronger designs and evidence.
Section 19 of 36
19. Connect posterior odds and priors
Posterior evidence reflects both how well a model fits a feature and how common that model is estimated to be. Explain this before treating a ranking as purely feature-specific.
baySeq asks which user-specified model of shared or distinct underlying parameters best explains each row, after estimating prior structure from the dataset.
Archive sample metadata, raw-data accessions, annotation, software versions, commands, filters and random seeds so another analyst can reconstruct every decision.
Section 20 of 36
20. Control expected false discoveries
If selecting features by posterior probability, state how the threshold relates to the expected false-discovery measure and which model or combined models define discovery.
Replicate labels help estimate within-condition variation, while model vectors encode which libraries are expected to share parameters for a particular biological pattern.
Treat independently sampled people, animals, cultures or specimens as the replicates; extra reads, bootstraps or transcript estimates do not create new biological units.
Section 21 of 36
21. Plot sample support
Display counts or normalised summaries for every independent library. A posterior table cannot show whether one replicate drives the preferred pattern.
Posterior likelihoods are relative to the candidate model set. They do not measure truth outside that set or rescue a biologically incomplete set of hypotheses.
Pair any probability or adjusted value with effect direction, uncertainty, sample-level plots, diagnostics and a sensitivity analysis that could have contradicted the result.
Section 22 of 36
22. Challenge the candidate set
Ask which biologically plausible pattern is absent. Adding that pattern may redistribute posterior support even if the observed counts do not change.
Negative-binomial count modelling permits variance beyond a Poisson process. The chosen distribution must still be checked against observed sample behaviour.
State the testing family and all planned comparisons. Multiple testing is a property of the whole decision set, not merely one attractive row.
Section 23 of 36
23. Challenge prior estimation
Repeat key analyses with a documented alternative prior-sampling size or seed. Features whose classification changes substantially should be labelled sensitive.
Empirical priors borrow information from many rows, improving stability while also making results dependent on the feature universe and prior-estimation procedure.
Create an evidence card naming the question, measured material, model, contrast or pattern, result, alternatives, validation status and narrowest defensible claim.
Section 24 of 36
24. Challenge normalisation
Examine composition extremes and repeat important results under a defensible alternative scale. Relative count data can make one large feature influence many others.
Complex patterns can be powerful when prespecified, but an enormous catalogue of post-hoc models can diffuse evidence and invite storytelling after the results are seen.
Use differential expression or model support when that is what was estimated; reserve mechanism, cause, diagnosis and benefit for stronger designs and evidence.
Section 25 of 36
25. Challenge the distribution
Inspect mean–variance behaviour and extreme rows against the chosen negative-binomial assumptions. A completed fit is not evidence that the distribution was adequate.
baySeq asks which user-specified model of shared or distinct underlying parameters best explains each row, after estimating prior structure from the dataset.
Archive sample metadata, raw-data accessions, annotation, software versions, commands, filters and random seeds so another analyst can reconstruct every decision.
Section 26 of 36
26. Challenge sample influence
Use leave-one-library checks where the replicate count permits. Record posterior changes and model swaps rather than summarising robustness as yes or no.
Replicate labels help estimate within-condition variation, while model vectors encode which libraries are expected to share parameters for a particular biological pattern.
Treat independently sampled people, animals, cultures or specimens as the replicates; extra reads, bootstraps or transcript estimates do not create new biological units.
Section 27 of 36
27. Compare with coefficient models
edgeR and DESeq2 estimate explicit design coefficients, whereas baySeq scores complete patterns. Agreement matters only when those formulations represent the same biological comparison.
Posterior likelihoods are relative to the candidate model set. They do not measure truth outside that set or rescue a biologically incomplete set of hypotheses.
Pair any probability or adjusted value with effect direction, uncertainty, sample-level plots, diagnostics and a sensitivity analysis that could have contradicted the result.
Section 28 of 36
28. Build a baySeq evidence card
Record counts, replicate factor, scaling, candidate vectors, prior method, likelihood method, posterior columns, testing rule, plots, sensitivity, software version and validation.
Negative-binomial count modelling permits variance beyond a Poisson process. The chosen distribution must still be checked against observed sample behaviour.
State the testing family and all planned comparisons. Multiple testing is a property of the whole decision set, not merely one attractive row.
Section 29 of 36
29. Connect model choice to fair tests
A fair test states expected outcomes before data collection. baySeq extends that discipline by making alternative patterns explicit before deciding which one a feature resembles.
Empirical priors borrow information from many rows, improving stability while also making results dependent on the feature universe and prior-estimation procedure.
Create an evidence card naming the question, measured material, model, contrast or pattern, result, alternatives, validation status and narrowest defensible claim.
Section 30 of 36
30. Try a model-vector activity
Arrange cards for six libraries from three conditions. Build vectors for no change, one-condition change and an ordered pattern, then swap a sample label to see how the biological meaning collapses.
Complex patterns can be powerful when prespecified, but an enormous catalogue of post-hoc models can diffuse evidence and invite storytelling after the results are seen.
Use differential expression or model support when that is what was estimated; reserve mechanism, cause, diagnosis and benefit for stronger designs and evidence.
Section 31 of 36
31. Connect to mathematics
Bayes’ rule, probability distributions, likelihoods and partitions show how formal models compare explanations while retaining uncertainty.
baySeq asks which user-specified model of shared or distinct underlying parameters best explains each row, after estimating prior structure from the dataset.
Archive sample metadata, raw-data accessions, annotation, software versions, commands, filters and random seeds so another analyst can reconstruct every decision.
Section 32 of 36
32. Connect to computing literacy
Lists of model vectors, factor labels and parallel seeds are executable assumptions. Version-controlled code exposes them for review instead of burying them in a graphical interface.
Replicate labels help estimate within-condition variation, while model vectors encode which libraries are expected to share parameters for a particular biological pattern.
Treat independently sampled people, animals, cultures or specimens as the replicates; extra reads, bootstraps or transcript estimates do not create new biological units.
Section 33 of 36
33. Connect to education pathways
Model-based genomics combines biology, mathematics, computing and experimental design. Learners can approach it through science research, statistics, biotechnology or software development.
Posterior likelihoods are relative to the candidate model set. They do not measure truth outside that set or rescue a biologically incomplete set of hypotheses.
Pair any probability or adjusted value with effect direction, uncertainty, sample-level plots, diagnostics and a sensitivity analysis that could have contradicted the result.
Section 34 of 36
34. Create a family model habit
When a result names the best pattern, ask what other patterns were allowed, how much posterior support the runner-up received and whether the replicate plots agree.
Negative-binomial count modelling permits variance beyond a Poisson process. The chosen distribution must still be checked against observed sample behaviour.
State the testing family and all planned comparisons. Multiple testing is a property of the whole decision set, not merely one attractive row.
Section 35 of 36
35. Use precise baySeq language
Say that a feature received posterior support for a specified differential pattern among the candidate models. Avoid declaring an untested mechanism or universal expression law.
Empirical priors borrow information from many rows, improving stability while also making results dependent on the feature universe and prior-estimation procedure.
Create an evidence card naming the question, measured material, model, contrast or pattern, result, alternatives, validation status and narrowest defensible claim.
Section 36 of 36
36. Finish with a models-to-claim bundle
Deliver counts, metadata, replicate labels, model vectors with plain-language meanings, priors, likelihoods, full posterior tables, plots, sensitivity checks, versions and bounded claims.
Complex patterns can be powerful when prespecified, but an enormous catalogue of post-hoc models can diffuse evidence and invite storytelling after the results are seen.
Use differential expression or model support when that is what was estimated; reserve mechanism, cause, diagnosis and benefit for stronger designs and evidence.
## Source date and scope note Primary studies and current official software documentation were checked for this article on 11 October 2026. The sleuth documentation is retained as an official project record, while all software interfaces can change; readers should consult the linked repository, package pages and issues before reproduction.
## Final reader checklist Before accepting a claim, confirm the biological sample count, condition definition, measured material, annotation, preprocessing, statistical unit, model or candidate patterns, exact comparison, effect size, uncertainty, software versions, controls, sensitivity checks, independent validation and the boundary between association and causation.
Contents · Previous section · Continue to the Science Learning Hub
