Quality assessment and preprocessing across omics layers
Practical 16: Genomics, systems biology and multi-omics
Learning objectives
Compare assay-specific scales; audit sample and feature missingness; define transparent exclusions and preprocessing choices.
Biological question and data
Can the same quality rule and transformation be applied indiscriminately to counts, protein abundances and metabolites?
Counts are nonnegative integer measurements; protein and metabolite matrices are supplied log2 abundances. Missing proteins are deliberately inserted. All samples are fictional animals with explicit metadata.
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. Audit each assay separately
Check IDs, dimensions, missingness and the supplied measurement scale.
The missingness total is not interchangeable with a count of missing animals. Different assays have different physical and statistical meanings.
2. Inspect missingness by feature and group
Quantify before choosing a policy. Missingness may depend on the measurement process.
Show R code
P <- d$protein_missingmissing_feature <-rowMeans(is.na(P))missing_animal <-colSums(is.na(P))data.frame(feature=rownames(P),fraction_missing=missing_feature)
Nine animals have at least one missing protein value, totaling eleven feature-level NAs. The mechanism is supplied insertion here; real missingness needs investigation.
3. Define a stated feature policy and transform correctly
The example retains features with no missing measurements for descriptive PCA. The threshold is a teaching choice.
Protein values are already log2; logging them again would change their interpretation. The count transformation is descriptive, not a differential-expression model.
4. Expose selection by completeness
Complete-case integration can exclude a disproportionate part of one group. In this hypothetical example, only the treated group loses assay observations.
A sample-level exclusion changes the subject set; feature filtering changes the measurement universe. An RNA count filter, protein observation-rate filter and metabolite blank threshold address different processes. Keep the rule and its justification tied to the assay rather than forcing all layers through one numerical threshold.
Report before/after counts, group balance, units and transformations. For prediction, estimate imputation and scaling within training splits. For descriptive integration, explain the subset represented and investigate whether missingness depends on health, treatment or processing.
Interpretation challenge
Does complete-case analysis guarantee an unbiased integrated dataset?
Suggested reasoning
No. Completeness can depend on the phenotype or treatment. The retained subset may differ systematically from the original population, even if the resulting matrix contains no missing values.
Interpretation and limits
Complete-feature selection excludes signals with missingness and can change the biological question. Imputation and filtering should be justified and fitted within training splits for prediction. Panel counts are not true total sequencing depth, and an abundance profile cannot replace identification/platform QC.
Exercises
Why is a universal log transformation unsafe?
Is deleting every animal with any NA unbiased?
Which preprocessing decisions must stay within training data?
Suggested answers
Measurements may already be logged, include legitimate zeros, or have different scales.
Not necessarily; excluded animals can differ systematically.
Data-derived filtering, scaling, imputation, feature selection and model tuning.