Practical 18: Genomics, systems biology and multi-omics
Learning objectives
Inspect protein missingness; calculate a log2 abundance contrast with stated denominators; compare complete observations with an unjustified imputation.
Biological question and data
How does treating a missing protein measurement as zero change a group comparison?
The supplied values are fictional log2 protein abundances, not raw peptide spectra. Missingness was inserted into the fixture. The contrast is descriptive and does not implement peptide identification, protein inference or a calibrated differential-abundance pipeline.
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. Count observed measurements
Calculate group-specific observation counts before group means.
original <-2^ygeo <-tapply(original,diet,function(z) exp(mean(log(z),na.rm=TRUE)))stopifnot(abs(geo["supplement"]/geo["control"]-2^delta)<1e-10)
This is not the ratio of arithmetic mean abundance. The calculation concerns the observed values only.
3. Demonstrate an unjustified replacement
Replace NA by zero solely to expose the consequence, then compare the group differences.
Show R code
bad <- y;bad[is.na(bad)] <-0bad_means <-tapply(bad,diet,mean)c(observed_value_difference=delta,zero_imputed_difference=unname(bad_means["supplement"]-bad_means["control"]))
In an actual assay, missingness can also reflect interference, preparation or identification failure. This construction demonstrates one mechanism and does not justify applying a censoring model to all missing values.
For a protein comparison, report the observation count in each group, abundance scale, peptide-to-protein assignment and missingness policy. A protein group supported by shared peptides does not provide independent evidence for every member. Identification uncertainty and differential-abundance uncertainty are separate.
Interpretation challenge
Why can both complete-case means and low-value imputation be misleading?
Suggested reasoning
The observed subset can be selected by abundance, while imputation can manufacture group differences and understate uncertainty. Use assay evidence, a justified missingness model and sensitivity analysis.
Interpretation and limits
Different missing mechanisms require different strategies and sensitivity analyses. Selected complete observations may be biased if detection depends on abundance. Batch adjustment, identification uncertainty, multiple testing and validation are needed for real protein analyses.
Exercises
Why does replacing NA by zero change the contrast?
What if one group has no observed values?
Does a geometric-mean ratio imply a causal diet effect?
Suggested answers
It introduces low observed values where the assay supplied none, potentially unequally across groups.
The observed comparison is not estimable; report this instead of inventing a mean.
No; design, confounding, model uncertainty and sampling determine causal interpretation.