Scientific reporting and reproducible analysis records
Practical 13: Genomics, systems biology and multi-omics
Learning objectives
Connect a question, sample definition, analysis and result; document provenance and exclusions; distinguish a numerical association from a biological conclusion.
Biological question and data
What evidence and processing record should accompany a computational result?
The example fits a simple animal-level response model to fictional data. Diet allocation, independence and the chosen covariates are assumptions of this teaching design. The report records a conditional estimate, not a livestock recommendation.
No biological download is required. Numerical inputs are hypothetical, not observed animal data. The runnable examples use base R. Count and abundance units are specified where used.
1. Define and fit the analysis
Write down the target contrast before fitting. Include batch and genotype1 because the supplied model contains these patterns or sources of variation.
The diet coefficient adjusts for the supplied batch and genotype columns. The model still summarizes a particular hypothetical sample under its assumptions.
2. Create a compact evidence record
Preserve the contrast, analysis population, estimate, interval and exclusions beside the input-generation record.
Show R code
record <-data.frame(question="Diet contrast in fictional animals",unit="animal",n=nobs(fit),exclusions=0,estimate=unname(coef(fit)["dietsupplement"]),lower=interval[1],upper=interval[2],units="arbitrary response units",input_code_checksum=unname(tools::md5sum(file.path(helper_dir,"teaching_data.R"))))record
question unit n exclusions estimate lower
2.5 % Diet contrast in fictional animals animal 48 0 1.915633 1.302532
upper units input_code_checksum
2.5 % 2.528734 arbitrary response units b721054312060f42bed87443b20e6931
The checksum identifies the local input-generating source. It is not a biological validity check.
3. Write the interpretation at the level supported
Separate result, limitation and follow-up. The generated sentence deliberately avoids a causal-mechanism claim.
Show R code
cat(sprintf("Among %d fictional animals, the adjusted diet contrast is %.2f arbitrary units (95%% model interval %.2f to %.2f).\n",nobs(fit),coef(fit)["dietsupplement"],interval[1],interval[2]))
Among 48 fictional animals, the adjusted diet contrast is 1.92 arbitrary units (95% model interval 1.30 to 2.53).
Add the allocation, covariates, model assumptions and absence of external validation. An interval alone is not a complete report.
4. Separate fitted evidence from the claim
A results table needs direction, units, uncertainty and adjustment factors. A generic statement that a treatment is significant omits most of that information. Use an explicit contrast label and distinguish pointwise confidence intervals from multiplicity-adjusted inference.
Show R code
claim_record <-data.frame(field=c('comparison','unit','model','interpretation'),value=c('supplement minus control','independent animal','specified response model with batch','conditional group contrast; mechanism not established'))claim_record
field value
1 comparison supplement minus control
2 unit independent animal
3 model specified response model with batch
4 interpretation conditional group contrast; mechanism not established
5. Record deviations and provenance
List exclusion reasons and counts by group. Preserve a clean-session command, input/version information and the processing steps. The fixture checksum can identify the generator source; the seed identifies a realization. Neither verifies real-world performance.
Write limitations close to the result they qualify. A biological conclusion should say which tissue, period and population were measured. A proposed follow-up should resolve an identified uncertainty, such as replication across farms or a targeted mechanistic perturbation. A polished report cannot compensate for missing replication or confounded allocation.
Interpretation challenge
How should a report handle a null result with a wide interval?
Suggested reasoning
State the estimate and interval, explain the imprecision and avoid claiming equivalence. A meaningful absence claim needs an appropriately defined equivalence target and analysis.
Interpretation and limits
A real report needs species/population, measurement units, design, permissions, assay processing, software, missingness, diagnostics, validation and uncertainty. Tables and plots should allow readers to assess the conclusion without relying on an unexplained significant/not-significant label.
Exercises
Name one claim the result cannot support.
What changes if ten animals are excluded after looking at their outcomes?
Which parts of a report remain useful when data cannot be public?
Suggested answers
A specific molecular mechanism or a dependable effect in another farm/population.
Selection may bias the estimate; document and justify exclusions and assess sensitivity.
Methods, variable definitions, provenance, permissions/access process and a non-sensitive reproducible demonstration.