Summary Statistics for Genomic Data
A single RNA-sequencing experiment can measure the expression of 20,000 human genes across hundreds of samples. This produces millions of numbers before anyone has asked a biological question. The challenge is not collecting the data — modern sequencers do that in days. The real task is compressing it honestly, gene by gene and sample by sample, into numbers a scientist can reason with. Which genes are reliably "on," which are noise? Which few outliers are driving an apparent difference between a tumor and healthy tissue? Every one of these questions is answered with the same basic tools used to summarize an exam-score distribution: means, medians, variances, and coefficients of variation. What changes at genomic scale is not the arithmetic but the statistical environment. There are thousands of simultaneous distributions, most of them lopsided. Many are contaminated by technical noise that mimics biology. This article is about applying descriptive statistics correctly under specific conditions. This matters when the number of variables (genes) vastly exceeds the number of observations (samples). It also matters when the underlying data are counts spanning many orders of magnitude. Expression values are not bell-shaped by nature. A gene's transcript count can be zero in one sample and ten thousand in another. This asymmetry, if handled naively, wrecks any summary statistic that assumes symmetry. Genomic data analysis is therefore a case study. It takes the general principles of Displaying Data Honestly and Outliers in Biological Data and confronts them with real data. That dataset is built almost entirely from skew, zero-inflation, and multiplicative — not additive — biological variation. The big picture is this: gene expression is generated by a fundamentally multiplicative process. Transcription rates, RNA degradation rates, and cellular copy numbers all combine as products, not sums, across the regulatory cascade. A statistic built for additive, symmetric data (the ordinary arithmetic mean and standard deviation) misrepresents a multiplicative process. The fix, used almost universally in genomics, is the logarithm. It converts multiplicative variation into additive variation. It turns skewed distributions into roughly symmetric ones. It turns fold-changes into simple differences. Understanding why this transformation works — and where it can mislead — is the conceptual core of applying descriptive statistics to genomic data. By the end of this article you will be able to do several things. You will compute and interpret per-gene means, variances, and coefficients of variation. This applies to both raw and log-transformed expression data. You will explain why raw counts violate the assumptions behind ordinary summary statistics. You will recognize the specific outlier structures that arise in sequencing data (low-count noise, PCR duplication, sample swaps). You will also reason through worked numerical examples. These show how a transformation changes — or rescues — a biological conclusion.
- Gene expression data are counts spanning orders of magnitude, right-skewed, and often zero-inflated — raw means and SDs are usually misleading.
- Biological expression variation is approximately multiplicative (fold-changes), so a log transform converts it into additive, roughly symmetric variation that ordinary statistics handle correctly.
- The coefficient of variation (CV) is used gene-by-gene to separate reliably expressed genes from noisy, low-count genes before any further analysis.
- Outliers in genomic data are structural, not just statistical — arising from PCR duplication, low sequencing depth, contamination, or genuine bimodal cell subpopulations.
- Log₂ fold-change is the standard summary of a two-condition comparison; it equals log₂(mean B) − log₂(mean A) only when computed correctly.
- Every genomic summary statistic must be paired with a visualization (MA-plot, boxplot, or violin plot) because thousands of genes hide the very asymmetries these statistics are meant to reveal.
Because gene expression varies multiplicatively across orders of magnitude, its distributions must be summarized on a logarithmic scale — not the raw scale — for means, variances, and coefficients of variation to mean what we think they mean.
The core idea
A genomic summary statistic is any descriptive quantity — mean, median, variance, standard deviation, coefficient of variation — computed per gene (or per genomic feature) across a set of samples, rather than computed once across an entire dataset. In a typical RNA-seq experiment, the raw data table has one row per gene and one column per sample, with entries representing the number of sequencing reads mapped to that gene (a read count), or a normalized version of that count such as TPM (transcripts per million) or CPM (counts per million), which correct for differences in sequencing depth and gene length between samples. Because there are thousands of genes, genomic analysis means computing thousands of parallel univariate summaries, not one. The statistical difficulty is that raw counts are almost never symmetric. A gene expressed at low, noisy levels might read 0, 1, 3, 0, 2 across five replicate samples; a highly expressed housekeeping gene might read 8,500, 9,200, 7,800, 11,000, 9,600. Both distributions are right-skewed to different degrees, and their variances scale with their means — a property called mean-variance dependence, formalized in RNA-seq statistics by the observation that count variance is approximately proportional to the mean plus a term proportional to the mean squared (the negative binomial variance structure used by tools such as edgeR and DESeq2). This is the opposite of the constant-variance assumption behind classical statistics such as the ordinary -test, and it means a raw arithmetic mean and standard deviation, computed without correction, systematically misrepresent low-count genes as "more variable" purely because they are lowly expressed, not because they are biologically unstable. The standard remedy is the logarithmic transformation: replacing each expression value with , where is a small constant (often 1) added to avoid taking the log of zero. On the log scale, a two-fold increase in expression — from 100 to 200, or from 10,000 to 20,000 — becomes the same additive step (an increase of exactly 1, since ), regardless of the gene's baseline expression level. This is the key property that justifies the transform: biological regulation acts multiplicatively (a transcription factor doubling a promoter's activity doubles expression whether the gene starts at 10 copies or 10,000), and the log transform converts this multiplicative structure into an additive one that the mean, variance, and coefficient of variation were built to describe.
Mechanism — how genomic summary statistics are actually computed
Step 1 — Raw counts and normalization. Sequencing produces integer read counts per gene per sample. These counts depend not only on true expression but on total sequencing depth (a sample sequenced twice as deeply gets roughly twice the counts for every gene) and on transcript length (longer transcripts capture more reads). Before any descriptive statistic is meaningful, counts must be normalized — commonly to CPM (dividing by total library size and multiplying by ) or TPM (which also corrects for gene length). Skipping this step confounds technical sequencing depth with biological expression differences, the single most common error in early genomic pipelines.
Step 2 — Per-gene distributions across samples. For each gene , collect its normalized expression value across all samples: . This is the raw material for a per-gene mean , variance , and coefficient of variation . Because a typical dataset has 20,000+ genes, this produces 20,000+ parallel distributions rather than one.
Step 3 — Log transformation. Apply to every value. The pseudocount of 1 is a pragmatic compromise: it makes so zero counts do not produce undefined values, but it also compresses the extreme low end nonlinearly, a distortion analysts must keep in mind for very lowly expressed genes.
Step 4 — Summary statistics on the log scale. Compute and on the transformed data. Because addition on the log scale corresponds to multiplication on the raw scale, differences in between two conditions are directly interpretable as log fold-changes:
A of means a doubling; means a halving; means a ten-fold increase ().
Step 5 — The coefficient of variation as a filtering tool. Before testing thousands of genes for differential expression, analysts often rank genes by (on the log scale, or equivalently by variance since means are more comparable after log transform) to identify genes with real, biologically meaningful variability across samples versus genes that are flat and uninformative — a step central to selecting "highly variable genes" in single-cell RNA-seq analysis, where thousands of genes are essentially noise around zero. A gene with near the noise floor is unlikely to be a useful marker regardless of its mean.
Step 6 — Outlier detection at scale. With thousands of parallel distributions, a small fraction of genes will show extreme values by pure sampling variation (multiple-comparison logic exactly analogous to running thousands of simultaneous hypothesis tests). Genomic pipelines flag both sample-level outliers (an entire sample deviates from all others, often signaling technical failure — degraded RNA, contamination, sample swap) and gene-level outliers (a single measurement within a gene's distribution is implausibly extreme, often a PCR duplication artifact or a sequencing alignment error), and treat them differently: sample-level outliers are usually excluded entirely; gene-level single-point outliers are handled with robust statistics (median, trimmed mean) or explicit outlier-aware count models.
The evidence
The case for logging expression data, and for treating gene-by-gene descriptive statistics carefully, rests on both a theoretical result and repeated empirical demonstrations from the early microarray era through modern RNA-seq.
The theoretical foundation: variance-stabilizing transformations. The statistical logic was formalized well before genomics existed — the delta method shows that if a variable's variance is proportional to the square of its mean (as is approximately true for expression counts, a consequence of multiplicative noise sources like PCR amplification efficiency and cell-to-cell variability), then the log transform makes the variance approximately constant across the range of the mean. This is not a genomics-specific trick; it is the same reasoning behind logging income data in economics or logging population sizes in ecology, wherever a quantity grows multiplicatively.
Microarray-era validation (Affymetrix and cDNA array studies, late 1990s–2000s). Early microarray analyses of thousands of genes simultaneously showed directly what happens without a log transform: housekeeping and highly expressed genes dominated variance rankings purely due to scale, while biologically dynamic but modestly expressed genes were statistically invisible. Studies comparing raw versus log-transformed intensities (for example, in analyses underlying the MIAME standards and early limma/Bioconductor methodology developed by Gordon Smyth and colleagues in the early 2000s) demonstrated that the log-scale residual variance was far more homogeneous across the expression range, and that statistical tests performed on log ratios gave far fewer spurious "differentially expressed" calls driven purely by scale-dependent noise.
RNA-seq count modeling (Anders & Huber, 2010; Love, Huber & Anders, 2014). The development of DESeq and later DESeq2 directly measured the mean–variance relationship across thousands of real RNA-seq genes from replicate samples and confirmed the negative binomial pattern: variance rises with the mean faster than a Poisson (purely counting) process would predict, due to extra biological variability between replicates. This empirical mean-variance curve is precisely why these tools use a variance-stabilizing transformation (closely related to ) before clustering samples or computing per-gene summary statistics such as means used in quality-control plots, and precisely why raw-count PCA plots look qualitatively different — and less biologically interpretable — from log-transformed PCA plots on the same data.
The MAQC (MicroArray Quality Control) Consortium, 2006. This multi-lab study, published in Nature Biotechnology, compared expression measurements for the same RNA samples across multiple microarray platforms and RT-PCR benchmarks. A central finding was that agreement between platforms, and between technical replicates, was dramatically higher when comparisons were made on log-ratio (fold-change) scales rather than raw intensity scales — direct empirical evidence that the log transform captures the reproducible biological signal while raw-scale summary statistics amplify platform-specific technical noise. The MAQC results became a founding argument for standardizing log fold-change as the default unit of differential expression reporting across the field.
What these lines of evidence jointly established: (1) expression variance genuinely scales with the mean, confirmed empirically across microarray and RNA-seq platforms; (2) log transformation measurably stabilizes this variance and improves reproducibility across labs and platforms; (3) descriptive statistics computed on raw counts systematically misrepresent both variability and outlier status for lowly expressed genes. None of this is an assumption imported wholesale from other fields — it is a repeatedly re-verified empirical property of gene expression data itself.
Worked examples
Example 1 — Comparing two genes' variability using the CV, on the correct scale. Suppose two genes are measured across five tumor samples (normalized counts, CPM):
| Sample | Gene A | Gene B |
|---|---|---|
| 1 | 20 | 800 |
| 2 | 35 | 1400 |
| 3 | 15 | 700 |
| 4 | 50 | 2100 |
| 5 | 10 | 500 |
Raw means: , . Raw standard deviations: , . Raw CVs:
The two genes have identical raw coefficients of variation — a coincidence chosen here to make a point: their raw scales differ 40-fold, but their relative variability, as measured by CV, is the same, exactly the situation where the CV is doing its job correctly by making magnitude-independent variability comparable. Now log-transform ():
| Sample | log₂ Gene A | log₂ Gene B |
|---|---|---|
| 1 | 4.39 | 9.65 |
| 2 | 5.17 | 10.45 |
| 3 | 4.00 | 9.45 |
| 4 | 5.67 | 11.04 |
| 5 | 3.46 | 8.97 |
Log-scale means: , . Log-scale SDs: , . The log-scale spreads (0.82 vs 0.75) are close but not identical to the raw CVs (0.60 and 0.60) — this is expected, because for CV 0.3–0.5 the two measures are approximately equal, but they diverge as the CV grows, since only in the small-CV limit (a first-order Taylor approximation). Here both genes show fold-change-type spread of roughly -fold around their means — a genuinely comparable, scale-free statement that the raw means and SDs alone could not make transparent without first computing the CV.
Example 2 — A single outlier sample distorting a fold-change calculation. A researcher compares expression of a stress-response gene between four control and four treated samples (normalized counts): Control: 102, 98, 110, 95 Treated: 205, 215, 198, 9800 Naively computed raw means:
This looks like a dramatic, headline-worthy induction. But inspecting the treated group (a step this article insists must accompany any summary statistic, following the logic of Displaying Data Honestly) shows three values tightly clustered near 200 and one wildly discrepant value of 9800 — almost certainly a technical artifact (e.g., a PCR jackpot event, a contaminating sample, or an alignment error placing reads from a different gene into this one). Recomputing with the median, or with the outlier flagged and excluded per the diagnostic principles in Outliers in Biological Data (e.g., studentized residual far beyond expected range, or a value more than 5 median absolute deviations from the other three):
The true effect is a modest, biologically plausible two-fold induction, not a 25-fold outlier-driven artifact. On the log scale the distortion is naturally suppressed even before exclusion: versus , so the log-scale mean of the treated group is pulled toward the outlier far less severely than the raw mean is, though careful practice still flags and investigates the point rather than relying on the transform alone to fix it.
Common misconceptions & traps
| Misconception | Why it's wrong |
|---|---|
| "The mean expression value on the raw count scale tells you the typical expression level." | With right-skewed counts, the raw mean is pulled upward by a few high values and does not represent a "typical" sample; the median or geometric mean is usually more representative. |
| "Adding a pseudocount of 1 before logging has no real effect on the analysis." | It disproportionately compresses very low counts (going from 0 to 1 read looks huge on the log scale) and can distort fold-change estimates for lowly expressed genes; the choice of pseudocount is a real analytical decision, not a neutral formality. |
| "A gene with high raw variance is more biologically variable than one with low raw variance." | Raw variance scales with the mean in count data; a highly expressed gene will show large raw variance from technical/Poisson noise alone. Coefficient of variation or log-scale variance is needed for a fair comparison. |
| "An extreme value in an RNA-seq dataset must be biologically real signal (a discovery)." | Sequencing data are prone to specific artifacts — PCR duplication, low-depth sampling noise, index hopping, alignment misassignment — that produce implausible outliers indistinguishable in form from real signal without follow-up (qPCR validation, replicate agreement). |
| "Once you log-transform, you no longer need to check for outliers or visualize the data." | Log transformation reduces but does not eliminate the influence of extreme values or the risk of misleading summaries; it must still be paired with visualization such as boxplots or MA-plots. |
| "Fold-change and statistical significance measure the same thing." | Fold-change (a descriptive summary of effect size) and a -value (a measure of how surprising the data would be under a null hypothesis) answer different questions; a small, precisely measured fold-change can be significant, and a huge fold-change from noisy low-count genes can be non-significant. |
The scientist behind it
The modern practice of log-transforming and rigorously summarizing genomic data does not trace to a single discoverer in the way Mendelian ratios trace to Mendel; it emerged from statisticians and computational biologists who adapted classical descriptive statistics to the specific pathologies of high-throughput count data. The figure most closely associated with formalizing variance-stabilization and moderated statistics for genomic data is Gordon K. Smyth, whose limma framework (Bioconductor, first released 2004, with the foundational empirical Bayes moderated statistics paper published in 2004–2005) built the standard statistical machinery — including log-ratio summaries and per-gene variance moderation — used across essentially all microarray and much RNA-seq differential expression analysis since. Smyth, a statistician at the Walter and Eliza Hall Institute of Medical Research in Melbourne, Australia, worked at the interface of classical linear-model theory and the specific small-sample, many-variable structure of genomic experiments — often only 3–6 replicate arrays per condition, but tens of thousands of genes. His key methodological insight, building on empirical Bayes shrinkage ideas, was that per-gene variance estimates from so few replicates are themselves unreliable, and can be improved by "borrowing strength" across all genes simultaneously — a genomics-scale extension of the same logic that motivates using pooled, robust, and shrinkage-based summary statistics rather than naive per-gene numbers taken at face value.
Origins · 1 minGordon K. Smyth and how this was discovered
Where this matters today
Cancer genomics and precision oncology. Tumor expression profiling (e.g., in breast cancer subtyping via the PAM50 classifier) depends on correctly summarized, log-scale expression signatures to assign patients to molecular subtypes that guide chemotherapy versus targeted therapy decisions; a raw-scale summary would misclassify tumors due to scale artifacts unrelated to biology.
Single-cell RNA-seq and cell-type discovery. Modern single-cell atlases (e.g., the Human Cell Atlas) rely on per-gene coefficient of variation and log-normalized variance to select "highly variable genes" before clustering cells into types — a direct, large-scale descendant of the CV-based filtering described here, now applied across tens of thousands of individual cells rather than bulk tissue samples.
Diagnostic gene expression panels. Clinical assays such as Oncotype DX (breast cancer recurrence risk) and similar multi-gene panels report results as normalized, log-scale expression scores precisely because raw fluorescence or count units are not portable or reproducible across laboratories and instruments — the same reproducibility argument the MAQC study established at genome scale.
Agricultural and crop genomics. Expression profiling of stress-response genes in crop breeding programs (drought or pathogen resistance in maize, rice, wheat) uses the same log-fold-change framework to compare resistant versus susceptible cultivars, guiding marker-assisted selection.
Conservation genomics. Transcriptomic monitoring of wildlife populations (e.g., coral bleaching stress-response studies, salmon thermal-tolerance studies) applies identical per-gene summary statistics to identify biomarkers of environmental stress, where sample sizes are often even smaller than in clinical studies, making robust, correctly-scaled summary statistics especially critical.
Public health and infectious disease. Host transcriptomic signatures distinguishing bacterial from viral infection (used in some point-of-care diagnostic development) are built from log-scale differential expression summaries across curated gene panels, directly applying the descriptive statistics machinery described above to a clinical decision problem.
Ask the tutor: How would you decide whether to filter a low-count gene out of an analysis versus keep it and just interpret its statistics cautiously?
Why not just use the median instead of dealing with logs at all?
The median is a useful, robust alternative to the mean for a single skewed distribution, and it is indeed less sensitive to outliers than the raw mean. But it does not solve the deeper problem: it still describes expression on the raw, multiplicative scale, so comparing medians across genes of very different expression levels, or comparing variability across genes, still runs into the mean-variance dependence problem. The log transform and the median-based robust statistic solve different problems and are often used together — for example, computing the median of log-transformed values gives both robustness to outliers and a scale on which fold-changes are additive and comparable.
Does log-transforming expression data destroy any real biological information?
Not in principle — the log transform is a monotonic, invertible function, so the ordering of samples and the identity of which sample is higher or lower is fully preserved, and one can always convert back to the raw scale. What changes is which differences are emphasized: on the raw scale, a change from 10,000 to 10,100 counts (1% change) looks numerically similar to a change from 10 to 110 counts (a ten-fold change), even though the latter is a far larger biological effect. The log transform corrects this by making equal fold-changes correspond to equal distances on the scale, which is arguably a truer representation of the underlying biology, since gene regulation operates multiplicatively.
Why use log₂ specifically rather than natural log or log₁₀?
The base is a matter of interpretive convenience, not statistical necessity — all logarithm bases are related by a constant multiplicative factor and give mathematically equivalent results. Log₂ is preferred in genomics because a fold-change of exactly 2 (doubling) corresponds to exactly 1 unit on the log₂ scale, and a halving corresponds to exactly −1, making the numbers directly interpretable as "number of doublings," which matches how biologists intuitively think about expression changes (two-fold, four-fold, eight-fold induction). Natural log is common in statistical modeling contexts (e.g., inside DESeq2's internal calculations) because it simplifies certain derivative and likelihood expressions, but results are typically reported back in log₂ terms for interpretability.
How is the coefficient of variation used differently in single-cell RNA-seq compared to bulk RNA-seq?
In bulk RNA-seq, each sample already averages over thousands of cells, so technical noise is comparatively low and the CV mainly reflects true biological variability between samples or conditions. In single-cell RNA-seq, each "sample" is a single cell, and technical noise (capture efficiency, amplification bias, dropout — a cell's transcript failing to be detected at all) is much larger relative to the signal, so per-gene CV calculated across thousands of cells is used specifically to separate genuinely variable genes (useful for distinguishing cell types) from technical noise that inflates the apparent CV of lowly expressed genes uniformly. This is why single-cell pipelines apply additional variance-stabilizing and dropout-aware models beyond a simple log transform.
Can outliers in genomic data ever represent real, important biology rather than artifacts?
Yes, and this is precisely why an outlier should be investigated rather than automatically discarded, echoing the general principle from Outliers in Biological Data. A single sample with dramatically elevated expression of an oncogene might represent a genuine tumor subclone with amplification of that gene — a biologically important and clinically relevant finding, not noise. The distinguishing step is validation: checking whether the anomalous value is reproducible (a second measurement, an independent assay like qPCR or fluorescence in situ hybridization for gene copy number), consistent with other markers of the same biological state, and not explainable by a known technical failure mode such as low read depth or index misassignment.
What role does the coefficient of variation play before running a differential expression test?
CV-based filtering is typically used as a pre-processing step, not as the final analysis. Genes with extremely low mean expression and CVs that reflect noise rather than signal (often below a depth-dependent threshold) are filtered out before statistical testing, because including them wastes statistical power correcting for multiple comparisons on genes that could never show a detectable, reproducible effect. This filtering step, grounded in the same logic as The Coefficient of Variation applied to a single distribution, substantially improves the sensitivity of downstream differential expression tests by reducing the number of genes tested to those with plausible, informative variability.
Is it ever appropriate to skip the log transform and analyze raw counts directly?
Yes — modern RNA-seq differential expression tools such as DESeq2 and edgeR model raw counts directly using a negative binomial distribution rather than transforming to logs first, because this preserves the discrete, count-based statistical structure and its known mean-variance relationship more precisely than an ad hoc log transform does. However, these tools still apply an internal variance-stabilizing or log-linked model in their statistical machinery, and analysts still routinely log-transform (or use the tool's built-in variance-stabilizing transform) for visualization, clustering, and descriptive summary purposes such as PCA plots and heatmaps, even when the primary hypothesis test is performed on the raw count scale.