Tutorials › Statistical Methods for Single-Cell RNA Sequencing › When Total-Count Scaling Creates Compositional Bias

Normalization of Sparse Counts · Tutorial 81 of 700

When Total-Count Scaling Creates Compositional Bias

Learn why counts per million describe relative composition, how dominant genes can distort comparisons, and what summaries help reveal the distortion.

Intermediate 11 min read

What You'll Learn

  • Express total-count scaling as a comparison of each gene’s share of a cell’s total counts.
  • Calculate how a highly expressed gene changes the scaled value of an unchanged gene.
  • Distinguish a change in relative composition from evidence of a change in absolute RNA abundance.
  • Use library totals, dominant-gene fractions, and sensitivity calculations to diagnose possible distortion.
  • Compare total-count scaling with raw counts and external or validated reference measurements.

Why a Larger Total Can Make an Unchanged Gene Look Smaller

Total-count scaling is useful for adjusting for differences in the number of counts recorded per cell. But its denominator is not an external measure of sequencing effort: it is the sum of the observed gene counts in that cell. A few highly expressed genes, or a broad change in the relative abundance of many genes, can therefore change the denominator enough to distort comparisons of other genes.

The key point is that counts per million (CPM) report a gene’s share of a cell’s total counts, multiplied by one million. They do not, by themselves, report the number of RNA molecules per cell. The distinction matters whenever the composition of the RNA pool differs across cells or conditions.

Definition: Let \(Y_{gc}\) be the observed count for gene \(g\) in cell \(c\), and let \(L_c=\sum_{h=1}^{G}Y_{hc}\) be the total count across the \(G\) genes included in the analysis. When \(L_c>0\), total-count scaling gives \(\operatorname{CPM}_{gc}=10^6Y_{gc}/L_c\). Thus a CPM value is the gene’s fraction of the observed total, expressed per million counts.

This scaling corrects a simple exposure difference under a useful model. Suppose counts are independent Poisson variables with expected counts \(s_c a_{gc}\), where \(s_c\) is a cell-specific capture or sequencing multiplier and \(a_{gc}\) represents the amount of gene \(g\) in the cell’s RNA composition. The expected total is \(s_c\sum_h a_{hc}\), and, conditional on the total, the counts follow a multinomial distribution with probabilities \(a_{gc}/\sum_h a_{hc}\). The multiplier \(s_c\) cancels from these probabilities.

That cancellation is helpful if differences in total counts mainly reflect differences in \(s_c\), while the composition \(a_{gc}/\sum_h a_{hc}\) is comparable. It does not mean that total-count scaling removes all technical and biological differences. In particular, the normalized value still depends on the relative abundance of every gene in the denominator.

The Denominator Determines the Comparison

For two cells, \(c=1\) and \(c=2\), the ratio of the CPM values for a gene is

$$ \frac{\operatorname{CPM}_{g2}}{\operatorname{CPM}_{g1}} = \frac{Y_{g2}}{Y_{g1}}\frac{L_1}{L_2}, $$

when both gene counts are nonzero. A change in the total \(L_c\) therefore affects the normalized comparison even if the gene’s observed count does not change. In a count model, the same issue appears through the expected proportion: if \(a_{gc}\) stays fixed while \(\sum_h a_{hc}\) rises, the gene’s expected share falls.

Worked Example: One Highly Expressed Gene Shrinks Other CPM Values

Consider hypothetical counts for three groups of genes in two cells. In cell 1, gene A has 100 counts, gene B has 100 counts, and all remaining genes together have 800 counts. In cell 2, gene A has 1,000 counts, gene B still has 100 counts, and the remaining genes still have 800 counts. The totals are \(L_1=100+100+800=1{,}000\) and \(L_2=1{,}000+100+800=1{,}900\).

For gene B, total-count scaling gives

$$ \operatorname{CPM}_{B1}=10^6\frac{100}{1{,}000}=100{,}000, \qquad \operatorname{CPM}_{B2}=10^6\frac{100}{1{,}900}\approx52{,}632. $$

Gene B has the same observed count in both cells, but its CPM in cell 2 is about \(52.6\%\) of its CPM in cell 1. This apparent relative decrease follows from the larger denominator, driven by gene A. It does not establish that the absolute amount of gene B decreased.

The scaled comparison for gene A moves in the opposite direction: \(10^6(100/1{,}000)=100{,}000\) CPM in cell 1 and \(10^6(1{,}000/1{,}900)\approx526{,}316\) CPM in cell 2. Both results are internally consistent: CPM describes shares of each total, so increasing one gene’s share necessarily changes the shares available to others.

Broad Composition Shifts Have the Same Consequence

Compositional bias need not be caused by one exceptional gene. If a large group of genes becomes more abundant relative to the rest, genes outside that group can lose a share of the total even when their own absolute abundance is unchanged. Total-count scaling cannot tell whether that share changed because one gene rose, many genes rose, or the rest of the RNA pool fell.

Worked Example: Many Genes Rise While One Gene Stays Constant

Suppose a hypothetical control cell has 100 units of gene X and 300 units in each of three other gene groups. Its total is \(100+300+300+300=1{,}000\) units. In a hypothetical second condition, gene X remains at 100 units, but each other group rises to about 633.3 units, giving a total of approximately 2,000 units.

Gene X’s share changes from \(100/1{,}000=0.10\) to \(100/2{,}000=0.05\). Its corresponding scaled values are \(100{,}000\) CPM and \(50{,}000\) CPM. Each other group has a share of \(0.30\) in the control and about \(633.3/2{,}000=0.3167\) in the second condition. The decline for X is a decline in relative share, not evidence from these totals alone that X lost absolute abundance.

The numbers describe hypothetical amounts to make the compositional arithmetic visible; real sequencing counts also involve sampling and capture. In a sequencing experiment, observed counts alone generally do not reveal the total number of RNA molecules in a cell. A separate measurement or a defensible assumption is needed to interpret a relative change as an absolute one.

What the Scaling Assumption Buys—and What It Does Not

The Poisson model provides a concise justification for the relative interpretation. If \(Y_{gc}\) are independent Poisson counts with means \(s_ca_{gc}\), then conditional on \(L_c=\sum_gY_{gc}\), the vector of counts has a multinomial distribution with total \(L_c\) and probabilities \(p_{gc}=a_{gc}/\sum_h a_{hc}\). Therefore,

$$ E\left[\frac{Y_{gc}}{L_c}\,\middle|\,L_c\right]=p_{gc}, \qquad E[\operatorname{CPM}_{gc}\mid L_c]=10^6p_{gc}, $$

for \(L_c>0\). The exposure multiplier \(s_c\) disappears, but so does any information about a common multiplier on all the \(a_{gc}\) values: multiplying every gene amount in a cell by the same positive constant leaves every \(p_{gc}\) unchanged. This is why CPM can adjust for a shared sampling-depth multiplier while being unable to identify absolute total RNA from the composition alone.

The model is a justification for understanding the denominator, not a guarantee that real single-cell counts are independent Poisson observations. Capture variation, overdispersion, and non-detection can complicate count behavior. Even if the count model is more elaborate, however, the arithmetic of CPM remains the same: each value is a fraction of the observed total.

Diagnostics for Potential Distortion

No single diagnostic proves that total-count scaling is biased. Instead, inspect whether the patterns needed for a simple exposure interpretation are plausible and whether conclusions depend heavily on the denominator.

  • Compare library totals. Summarize \(L_c\) across cells and groups. Large differences may reflect depth, composition, or both; the totals alone do not identify which explanation is correct.
  • Measure dominant-gene contributions. For each cell, calculate the largest gene’s fraction \(Y_{gc}/L_c\), or the fraction contributed by a selected set of highly expressed genes. A large or condition-dependent fraction signals that a small part of the transcriptome may strongly influence the denominator.
  • Compare a gene’s raw counts and scaled values. A stable count paired with a substantial CPM change is a direct indication that the denominator is contributing to the normalized change. Raw counts are not a complete solution because they can retain differences in sequencing depth.
  • Check sensitivity to dominant genes. Recalculate diagnostic fractions or gene-wise comparisons after excluding a suspected dominant gene from the denominator, for diagnostic purposes only. If conclusions change sharply, they depend on that gene’s contribution. Such an exclusion is not automatically a valid normalization method; it changes the reference composition and needs justification.
  • Look across genes and cells. If many genes shift in the same direction after scaling, consider whether a broad compositional change could explain the pattern. Do not infer a global absolute RNA increase or decrease from normalized values alone.

These checks are most informative when cells are compared within appropriate biological groups and when technical factors are considered alongside biological context. A difference in total counts could be due to sequencing depth, capture efficiency, composition, or a combination. A diagnostic flags a concern; it does not assign the cause by itself.

Worked Example: Quantifying a Dominant Gene’s Share

In the first example, gene A contributed 100 of 1,000 total counts in cell 1 and 1,000 of 1,900 in cell 2. Its total fractions were therefore

$$ \frac{100}{1{,}000}=0.10, \qquad \frac{1{,}000}{1{,}900}\approx0.5263. $$

So gene A accounted for \(10.0\%\) of cell 1’s counts and about \(52.6\%\) of cell 2’s counts. For gene B, the total-count-scaled ratio was \(52{,}632/100{,}000\approx0.5263\), exactly the inverse effect expected from the total ratio \(L_1/L_2=1{,}000/1{,}900\) because B’s raw count was unchanged.

This is a strong denominator warning: one gene supplies more than half the observed total in cell 2. It is not proof that CPM is unusable for every gene or every purpose. It shows that interpreting the scaled value of B as an absolute expression comparison would be unwarranted without additional information.

Alternatives and Their Trade-Offs

The appropriate response depends on the scientific target. Total-count scaling and CPM are simple, transparent summaries of relative composition. They can be useful when the aim is to compare relative abundance and when no few genes dominate the total. They become difficult to interpret when a small number of genes or broad shifts strongly alter the composition.

ApproachWhat it helps withImportant limitation
Raw countsPreserve the observed count scale.Can confound expression comparisons with differences in sequencing depth or capture.
Total-count scaling / CPMRemoves a shared multiplicative count exposure under suitable conditions and expresses relative shares.Uses the observed gene total as the denominator; compositional changes can alter every scaled value.
External spike-ins or independent absolute measurementsCan provide a reference not constructed from the endogenous gene total.Require appropriate experimental design, measurement quality, and assumptions about how the reference relates to the cells.
A validated stable reference setCan provide an endogenous comparison based on genes judged stable for the study’s target.Stability must be justified; an unsuitable reference can create its own distortion.

Alternative endogenous size-factor methods use different summaries of the count matrix rather than simply dividing each cell by its total. They can reduce sensitivity to some dominant genes when their assumptions are reasonable, but they do not automatically recover absolute RNA abundance or solve every global shift. Choosing and diagnosing those methods requires separate consideration.

Common Mistake and Practical Interpretation

Incorrect reasoning: “Gene B has half as many CPM in condition 2, so its expression per cell must have halved.” In the worked example, B had 100 counts in both cells; the CPM difference arose because gene A increased the total from 1,000 to 1,900.

Correction: CPM is a relative quantity. State that the gene’s share of the observed total decreased, then examine the raw counts, the total and its dominant contributors, and the experimental information available about capture or absolute RNA. Do not equate a compositional change with an absolute per-cell change without an appropriate reference.

A second mistake is to assume that equal totals guarantee comparable composition. Two cells can have identical total counts while the same gene occupies very different fractions of those totals. Conversely, different totals do not by themselves prove a compositional problem: they can arise from different sequencing exposures. The interpretation must consider both the denominator and the measurement process.

Key takeaway: Total-count scaling removes a common count multiplier only in the sense that it compares gene proportions. If a few genes or a broad group changes its contribution to the total, CPM for other genes can shift even when their absolute abundance does not. Diagnose denominator sensitivity before interpreting scaled differences as expression changes.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. A gene has 50 counts in each of two cells. Their total counts are 500 and 1,000. What are its CPM values, and what does the difference establish?
  2. Under independent Poisson counts with means \(s_ca_{gc}\), why does conditioning on the total remove \(s_c\) from the gene probabilities?
  3. Why can raw counts and CPM lead to different conclusions when one gene becomes highly abundant?
  4. Name two diagnostic summaries that could flag denominator sensitivity, and explain what they can and cannot show.

Solutions. (1) The values are \(10^6(50/500)=100{,}000\) CPM and \(10^6(50/1{,}000)=50{,}000\) CPM. The gene’s share is halved; this alone does not establish that its absolute abundance halved. (2) The conditional multinomial probability is \(s_ca_{gc}/\sum_hs_ca_{hc}=a_{gc}/\sum_ha_{hc}\), so the common multiplier cancels. (3) Raw counts describe observed counts, while CPM divides by the total; a highly abundant gene can increase that denominator and reduce other genes’ CPM without reducing their counts. Raw counts, in turn, may retain depth differences. (4) Compare total counts across cells and calculate the fraction contributed by the top gene or a selected gene set. These summaries can flag unequal totals or dominance, but they cannot alone determine whether the cause is technical or biological or establish absolute RNA changes.

Clinical Biostats