Experimental design & replication
Define independent units, preserve pairing, balance batches, and plan replication around the comparison you want to make.
Design the comparison before collecting spectra
A larger data matrix does not necessarily contain more independent evidence. Experimental design connects the scientific question, the units being compared, and the observations the mass spectrometer records. Start with a sentence such as: “Estimate the average treatment-associated change in compound X across independently sampled donors.” That sentence identifies a target population, a contrast, and a biological level. Replacing “donors” with “injections” changes the question.
Write down the endpoint, sample denominator, planned contrasts, and relevant covariates before examining group differences. Separate an observational association from an intervention effect: randomizing injection order does not randomize a person's exposure or disease status. Reporting standards for metabolomics explicitly include sample collection, matching, acquisition scheduling, and the model-validation scheme. [1]
Identify the units in the hierarchy
A biological unit is the entity about which a conclusion is intended. An experimental unit is independently assigned to an intervention. An observational unit is what is measured. These can coincide, but they need not. Several measurements from one experimental unit do not become independent treatment assignments. Lazic and colleagues show why this distinction is more informative than simply labelling everything “biological” or “technical.” [2]
For example, individually treated cultures can be experimental units; cultures treated together through one shared vessel may not be. Repeated sampling from a donor adds information about that donor over time, not new donors. Record the hierarchy explicitly: donor, culture, aliquot, preparation, and injection, as applicable. A biological replicate label should explain which level was independently sampled or generated and how treatment was assigned.
Constructed counting example: eight independently sampled donors each provide one sample. Two aliquots from each sample are prepared separately, and each preparation is injected three times. There are 8 × 2 × 3 = 48 injections, 8 × 2 = 16 preparations, and 8 donors. For a comparison across donors, the independent donor count is eight, not 48. The extra measurements help investigate lower-level variation.
Balance conditions across nuisance factors
A batch effect is systematic measurement variation associated with processing or acquisition groups. If every control is in one batch and every treated sample in another, their difference cannot by itself distinguish biology from batch. Prevention is therefore part of the experiment, not merely a later normalization choice.
When a nuisance factor can be controlled, blocking places the conditions of interest within comparable groups; randomization distributes remaining uncontrolled influences rather than deliberately aligning them with condition. NIST describes the randomized-block principle and its analysis. [3] Randomization does not guarantee perfect balance in a small experiment. Check the generated allocation and document any restrictions without rearranging it to favor a desired result.
| Processing batch | Control units | Treated units | Total |
|---|---|---|---|
| A | 2 | 2 | 4 |
| B | 2 | 2 | 4 |
| C | 2 | 2 | 4 |
Here each batch contains both conditions and the study has six units per condition. Randomize the feasible processing or acquisition order within the plan. With an additive model containing an intercept, condition, and two indicators for the three batches, the design has four independent columns. A different allocation with controls only in A and treated units only in B makes condition and batch identical columns: no arithmetic can estimate their separate effects from those observations alone. The balanced design helps identifiability; it does not guarantee sufficient precision or eliminate interactions.
Preserve pairing and repeated measurements
If the same donor is measured before and after an intervention, the relevant contrast may be a within-donor change. Keep the donor identifier in the analysis rather than treating all measurements as unrelated. More complex hierarchies may require mixed-effects or other design-appropriate models. NIST's treatment of nested variation illustrates why observations at different levels have different sources of variation. [4]
Constructed paired example: three donors have before values [10, 100, 1000] and after values [20, 200, 2000] in the same arbitrary units. Every donor doubles, so every within-donor log2 ratio equals 1. Their absolute changes are [10, 100, 1000], with mean 1110 / 3 = 370. Mean log ratio and mean absolute change are different estimands. Neither is universally preferable; choose the one that answers the scientific question. The three donors do not become six independent biological units.
Choose replication for the intended inference
There is no universally sufficient number of replicates. Planning depends on the effect worth detecting or the precision needed, expected between-unit variation, the design, and the tolerated decision errors. NIST's sample-size examples make these dependencies explicit. [5] A pilot can inform variation estimates, but a small pilot estimate is uncertain. Explore plausible ranges and include expected attrition or unusable measurements.
Use technical repetition where it diagnoses an important part of the measurement process. If between-donor variability dominates the question, many more injections of the same donors may give little additional information about the wider population. If the measurement is unstable, additional donors alone will not repair it. Budget controls, calibration, and independent units together; distinguish discovery work from a separately designed confirmation study.
Make the analysis respect the design
- Prespecify exclusions. Define failed-run and unusable-sample criteria without consulting the desired group effect; document deviations.
- Preserve identifiers. Link every injection to its preparation and biological origin. Do not average away pairing or silently count technical repeats as new units.
- Keep evaluation independent. For donor-level prediction, keep all observations from a donor together when splitting training and test sets. Learned preprocessing belongs inside the training procedure.
- Define the testing family. Thousands of feature-wise comparisons require an appropriate multiple-testing strategy. FDR control does not fix confounding or pseudoreplication.
- Retain missingness information. Record why observations are unavailable when known; see missing values before choosing a handling strategy.
These are design-aware consequences of defining units and a validation scheme, not a universal statistical recipe. Publish the allocation and metadata needed to reconstruct the comparison, together with effect estimates and their uncertainty.
Check your understanding
Can six reinjections rescue a study with one independent unit per condition?
They can reveal injection repeatability for those units. They cannot estimate biological variation across independently replicated units, so they do not rescue that population-level comparison.
Does random injection order remove all batch effects?
No. It reduces systematic alignment with order but does not stop drift or processing differences. Controls and suitable modelling remain necessary.
References & further reading
- Goodacre et al. (2007). Proposed minimum reporting standards for data analysis in metabolomics. Metabolomics 3, 231–241.
MSI reporting recommendations. Publisher text supports recording design, acquisition scheduling, preprocessing, algorithms, validation splits, and blind testing. The batch-confounding example and modern audit checklist are explicitly pedagogical reasoning built on those principles.
- Lazic, Clarke-Williams & Munafò (2018). What exactly is N in cell culture and animal experiments? PLOS Biology 16, e2005282.
Original methodological study defining biological, experimental, and observational units and conditions for genuine replication. DOI: 10.1371/journal.pbio.2005282. Unit hierarchy is applied to independently constructed MS examples; study prevalence figures are not generalized.
- NIST/SEMATECH e-Handbook of Statistical Methods, section 5.3.3.2: Randomized block designs.
Official statistical guidance supporting blocking of nuisance factors and randomization within blocks. The 12-unit allocation and rank calculation are independently constructed, not sample-size advice.
- NIST/SEMATECH e-Handbook of Statistical Methods, section 5.5.5: How can I account for nested variation (restricted randomization)?
Official guidance distinguishing hierarchical variation and experimental-unit levels. Does not prescribe one statistical model for all biological studies.
- NIST/SEMATECH e-Handbook of Statistical Methods, section 7.2.2.2: Sample sizes required.
Official examples show dependence of sample-size planning on variability, detectable difference, and decision-error probabilities. No universal replicate count or source formula is imposed on MS experiments.