Practical 8: Genomics, systems biology and multi-omics
Learning objectives
Decode Phred+33 qualities; calculate per-read expected errors; distinguish read, library and biological replication; apply an explicit QC rule.
Biological question and data
How do low-quality positions influence a small read-quality summary?
The fictional FASTQ records use ASCII Phred+33 encoding. The error probabilities are interpreted as calibrated per-base probabilities solely for this example. The practical does not assess mapping or a real sequencing run.
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. Decode quality strings
Confirm the sequence and quality strings have matching lengths.
The low-quality base contributes most of the expected errors. Expected error sums use linearity of expectation and do not require independent errors; the probability of no errors would require additional dependence assumptions.
5. Evaluate consequences of filtering
A stricter threshold can improve retained-read summaries while discarding evidence unevenly between samples. Report retained counts and proportions per library, not only the pooled fraction. Quality filtering is one part of a workflow: mapping, duplicate evidence, contamination and biological sample integrity still need checks.
The small quality strings demonstrate encoding and decisions. They do not characterize an instrument run or establish the best threshold for real sequencing data. Choose a rule based on the intended downstream use and inspect its effect on group balance.
Interpretation challenge
Two libraries retain 90% of reads overall, but one treatment group loses twice as many reads. What should be inspected?
Suggested reasoning
Group-specific quality and processing, library sizes, acquisition/batch structure and downstream exposure. The pooled retention fraction can hide an imbalanced measurement process.
Interpretation and limits
Quality encoding, adapter content, length distributions, contaminants, mapping, coverage and sample identity matter in a complete sequencing workflow. A threshold chosen after looking at a desired result can bias downstream analysis. More retained reads do not create more biological replicates.
Exercises
Why can mean Q hide a problematic read?
Does summing error probabilities require independent errors?
What information would mapping QC add?
Suggested answers
A few extremely low-quality positions can be diluted in the average.
No; expectation is additive. Independence matters for some probability calculations, not this sum.
Reference alignment, multimapping, coverage and mapping-rate patterns, each requiring interpretation.