Why Single-Cell ATAC-seq Needs Careful Inference
Single-cell ATAC-seq measures transposition-associated fragments across genomic regions in individual cells. Compared with an assay summarized over a bulk sample, it can reveal cell-to-cell variation and accessibility patterns within cell types. But a cell-by-region matrix is often mostly zero, cells can have very different numbers of usable fragments, and cells from the same donor are not independent biological replicates. Each feature affects differential accessibility testing.
The central inferential question is usually whether accessibility differs between conditions in a target cell population. The treatment or condition is assigned at the donor level in many studies, while thousands of cells may be measured per donor. Counting every cell as an independent replicate can therefore make uncertainty appear much smaller than it is. The analysis must reflect both the sequencing process and the study’s actual replication structure.
Sparsity and Unequal Fragment Depth
A zero count has several possible explanations: the region may be inaccessible in that cell, the region may be accessible but not sampled by any fragment, or technical features such as low library complexity may have limited detection. Thus, zero is an observed count, not direct proof of biological absence. This is particularly important when a region is weakly accessible or when a cell has few fragments overall.
Depth changes the chance of observing at least one fragment. As a simplified illustration, suppose fragments are sampled independently and a region contributes a small fraction \(q\) of a cell’s fragments. With \(L\) sampled fragments, the probability of observing no fragment from that region is approximately \((1-q)^L\), which is close to \(e^{-Lq}\) when \(q\) is small. The approximation shows why the same underlying accessibility can produce zeros more often in a low-depth cell. Real data also have biological and technical variation beyond this simple sampling model.
A common count-model formulation uses \(Y_{ir}\), the fragment count for region \(r\) in cell \(i\), and \(L_i\), that cell’s usable fragment depth. A log-depth offset accounts for the expected increase in counts with library size. For example, a negative-binomial model may specify
Here \(T_i\) indicates condition, \(\phi_r\) describes overdispersion under the chosen negative-binomial parameterization, and the omitted terms may represent covariates or donor effects. The offset treats depth as exposure: it adjusts the expected count for the number of fragments sampled, rather than claiming that depth differences are themselves biological effects. The model still needs a suitable mean-variance form, a design that separates condition from other covariates, and an account of dependence among cells from the same donor.
Worked Example: A Zero at Different Fragment Depths
Suppose, for illustration, that a region contributes \(q=0.001\) of fragments in cells with the same underlying accessibility. Under the simple independent-sampling approximation, compare the chance of seeing zero fragments at depths \(L=500\) and \(L=2{,}000\).
At depth 500, the approximate probability of zero is
At depth 2,000, it is
The same assumed fragment fraction yields a zero much more often at lower depth. These figures are not a model of all single-cell ATAC-seq variation; they demonstrate why a zero alone cannot distinguish biological inaccessibility from limited sampling.
Cells Are Nested Within Donors
Cells from one donor share genetic background, sample handling, and other donor-specific features. Their measurements can therefore be correlated. If a condition is applied to donors, the independent evidence for a condition effect comes primarily from the number of donors, not from the number of cells alone. When donors contribute cells to both conditions, the analysis should also preserve that pairing.
The consequence of ignoring within-donor correlation can be seen from a simple cluster-sampling calculation. Suppose each of \(D\) donors contributes \(m\) cells, each cell-level measurement has variance \(\sigma^2\), and two different cells from the same donor have correlation \(\rho\). The variance of the overall cell mean is
To obtain this expression, sum the variances of the \(Dm\) observations and their covariances. There are \(Dm\) variance terms, each \(\sigma^2\). Within each donor, there are \(m(m-1)\) ordered pairs of distinct cells, each with covariance \(\rho\sigma^2\); cells from different donors are assumed independent. Dividing the total variance by \((Dm)^2\) gives the formula. The factor \(1+(m-1)\rho\) is the design effect relative to treating all cells as independent.
This calculation assumes equal cluster sizes and a common within-donor correlation; real data can be more complicated. It nevertheless makes the basic issue clear: even modest correlation matters when many cells come from each donor. The formula does not make the cells equivalent to that many independent donors. It quantifies loss of information from clustering under its simplified assumptions.
Worked Example: The Cost of Treating Cells as Independent
Imagine 10 donors, each contributing 100 cells, with an illustrative within-donor correlation of \(\rho=0.10\) for a measured accessibility summary. There are \(Dm=1{,}000\) cells. The design effect is
The variance of the cell mean is therefore 10.9 times the variance calculated under an independence assumption, and its standard error is multiplied by \(\sqrt{10.9}\approx3.302\). The corresponding rough effective number of independent cell-level observations is \(1{,}000/10.9\approx91.74\), rather than 1,000. This effective-size calculation is only an illustration of the correlation penalty: for a condition effect assigned across donors, there are still just 10 independent donors, and the number of donor-level replicates governs the strength of that inference.
Cell-Level Models and Pseudobulk
A cell-level strategy models individual cell counts, often with a depth offset and donor represented through fixed effects, random effects, or a suitable correlation structure. It can use cell-level variation and accommodate covariates that vary across cells. Its validity depends on correct modeling of count variation and donor dependence. A model that includes thousands of cells but treats them as independent does not meet that requirement when cells are clustered by donor.
In a pseudobulk strategy, counts are summed across cells within each donor, condition, and cell type. The resulting donor-by-condition-by-region count is analyzed as a sample-level count, with an offset based on the aggregate library depth and a design that accounts for condition and any pairing or covariates. Summing counts avoids treating each cell as a separate replicate. It also means the analysis targets accessibility differences in the aggregated population; variation between cells is not separately modeled.
Neither strategy is automatically correct in every design. Cell-level models may be useful when cell-level covariates or distributions are of direct interest, provided dependence is modeled and there are enough independent donors to estimate the effect. Pseudobulk analyses are often easier to align with donor-level replication and count-based differential testing, but they require sufficient cells and fragments within each aggregate and can conceal cell-to-cell heterogeneity. In either approach, donor-level confounding between condition and batch cannot be repaired by simply adding more cells from the same donors.
| Feature | Cell-level analysis | Pseudobulk analysis |
|---|---|---|
| Rows used for modeling | Individual cells | Donor-condition aggregates within a cell type |
| Replication | Must explicitly represent donor dependence | Donors are the analysis replicates |
| Strength | Can retain cell-level covariates and heterogeneity | Respects donor-level replication in a simpler sample-level design |
| Risk | Underestimated uncertainty if within-donor dependence is ignored | Loss of cell-level detail; weak aggregates if too few cells or fragments |
Worked Example: A Paired Pseudobulk Contrast
Consider a hypothetical paired study with four donors, each sampled in control and treatment conditions within the same target cell type. The table gives each aggregate’s region count and total usable fragments, expressed in millions. For a compact illustration, compare region counts per million fragments, then calculate the paired donor differences on a log base-2 scale.
| Donor | Control count | Control depth (millions) | Treatment count | Treatment depth (millions) |
|---|---|---|---|---|
| 1 | 100 | 1.0 | 200 | 1.0 |
| 2 | 120 | 1.2 | 144 | 0.8 |
| 3 | 80 | 0.8 | 264 | 1.2 |
| 4 | 100 | 1.0 | 190 | 1.0 |
For donor 2, the control rate is \(120/1.2=100\) fragments per million, and the treatment rate is \(144/0.8=180\) per million. The treatment-to-control rate ratio is \(180/100=1.8\), so the log base-2 difference is \(\log_2(1.8)\approx0.8480\). Applying the same calculation to all donors gives paired differences of approximately \(1.000,\ 0.8480,\ 1.138,\ 0.9260\) log base-2 units.
The mean difference is \(\bar{x}=0.9779\). The sample standard deviation of the four differences is approximately \(s=0.1232\), so the standard error is \(SE=s/\sqrt{4}=0.06160\). Under the illustrative assumptions that donor differences are independent across donors and approximately normally distributed, a paired \(t\) statistic for a zero mean difference is
The two-sided \(p\)-value is approximately \(0.0005429\). Under the stated paired-\(t\) assumptions, this is evidence against a zero mean donor-level log-rate difference in this hypothetical sample. The estimated average difference corresponds to about \(2^{0.9779}\approx1.97\) times the rate, or roughly a 97% higher treatment rate. This hand calculation is a teaching illustration, not a recommendation to replace a count model: real analyses should model counts and depth using an appropriate sample-level count method, assess overdispersion, and use enough donors for reliable inference. Four donors provide very limited information about the distribution of donor effects.
Diagnostics, Failure Modes, and Limitations
Before interpreting differential accessibility results, check that the analysis reflects the experimental design. Useful checks include the following:
- Inspect depth and sparsity by donor and condition. Compare fragment-depth distributions, the fraction of zero entries, and cell numbers. A condition with systematically lower depth may have more zeros for sampling reasons.
- Check donor representation. Confirm that the condition effect is not inseparable from donor or batch. For paired designs, verify that the same donors contribute eligible cells to both conditions.
- Examine donor-level results. Look for a reported effect driven almost entirely by one donor. A large number of cells does not make that donor-specific pattern broadly replicated.
- Review model fit and uncertainty. Check whether residual variation or overdispersion is compatible with the fitted count model, and whether standard errors reflect clustering when cells are analyzed individually.
- Assess aggregate adequacy. Pseudobulk groups with very few cells or fragments may be unstable. Excluding groups must be justified and reported; selective removal can change which donors contribute to the comparison.
A common mistake is to reason, “There are 5,000 cells in each condition, so the test has thousands of independent replicates and very high precision.” If cells came from only a few donors, this treats subsamples as independent experimental units and can produce overly small standard errors and misleadingly small \(p\)-values. The correction is to model donor dependence at the cell level or aggregate to donor-level pseudobulks, then base condition inference on the independent donors. More cells can improve measurement of each donor’s profile, but they cannot replace additional donors.
Both strategies have limits. Sparse counts can make region-specific estimates unstable, particularly in low-depth aggregates. Pseudobulk sums can mask mixtures of cell states or opposing responses among cells. Cell-level methods can be sensitive to distributional assumptions and computational choices. In both cases, conclusions apply to the sampled donors, cell-type definition, regions tested, and experimental conditions; they do not by themselves establish a causal mechanism. The earlier material on differential chromatin accessibility provides the broader count-testing context, while the present choices concern how to preserve the single-cell sampling and donor structure.
Check Your Understanding
Try each question, then check the solutions below.
- Why can a zero count in a low-depth cell not be treated as conclusive evidence that a region is inaccessible?
- Eight donors each contribute 50 cells. What is the independent biological replicate count for a donor-level condition comparison?
- State one strength and one limitation of pseudobulk analysis relative to cell-level modeling.
- In a paired study, a donor’s control rate is 80 and treatment rate is 160 fragments per million. What is the paired log base-2 treatment-to-control difference?
- What is one warning sign that a reported condition effect may be driven by donor structure rather than a reproducible condition difference?
Solutions. (1) A region may have been accessible but missed during fragment sampling; lower depth increases the chance of observing zero. (2) There are eight independent donor replicates, not 400 independent donor replicates. (3) Pseudobulk aligns inference with donor replication, but aggregation loses cell-level heterogeneity; other valid answers include its need for adequate cells and fragments per aggregate. (4) The ratio is \(160/80=2\), so \(\log_2(2)=1\) log base-2 unit. (5) For example, the estimated effect disappears or reverses when one donor is omitted, or condition is confounded with donor or batch.