From Omics Data to Biological Insight
A step-by-step path through high-dimensional omics data, from preprocessing to a result a biologist can interpret.
Omics datasets are wide and short: hundreds of thousands of measurements on a few hundred samples. Almost any pattern can be found in data shaped like that, so the craft is less about finding signal and more about not fooling yourself. This is the order I work in.
1. Quality control before anything else
Look at the samples before you look at the biology. Check detection rates, sex and genotype concordance where the platform allows it, and outliers on the first few principal components. A sample that fails here should be removed with a written reason, not quietly dropped later when it spoils a figure.
2. Preprocess each sample on its own where you can
Normalisation that pools information across the whole cohort couples your training and test samples together. For prediction work I prefer per-sample preprocessing, so that a new sample can be processed exactly as the training samples were, without the cohort it came from.
3. Treat batch as a first-class variable
Record array, plate, run date and site, then check whether the top components of variation line up with any of them. If batch is confounded with the outcome, no statistical correction will rescue the analysis. The fix belongs in the study design.
4. Reduce dimensions in stages
A sensible funnel is: drop probes that are unreliable on the platform, keep those that vary, then let a model choose among what remains. In my glioma methylation work the funnel ran from about 404,000 probes to 70. Every stage that looks at the outcome must be refitted inside the training folds.
5. Model with nested validation
When you tune and evaluate on the same folds, the reported performance is biased upward. Nested cross-validation separates the two: an inner loop chooses hyperparameters, and an outer loop estimates how the whole procedure performs on unseen data.
6. From features to biology
A list of CpG sites or genes is not yet an insight. Map features to their genomic context, such as promoter or gene body, and ask whether the direction of effect makes sense. Be careful with enrichment analysis after heavy feature selection: the background set matters, and a small selected list can look enriched for almost anything.
7. Make it reproducible
- Fix random seeds and record package versions.
- Keep raw data read-only and derive everything by script.
- Save the fitted pipeline, not only the final numbers.
The test of an omics analysis is simple to state: could someone else, with the raw files and your repository, arrive at the same table?