Motivation
I decided to write up this mistake because it is invisible. No number was miscomputed, and every line of code did exactly what it said. Even so, the analysis produced a list of “disease genes” that were nothing but the noise floor of single-cell RNA-seq, presented with confidence by a statistic that had been asked to measure something it could not see.
The specific blunder is not exotic. It was a skipped detection filter and a per-gene statistic run on three donors, the kind of thing a checklist catches, and I would rather say that plainly than dramatise it. What I think is worth your time is the mechanism, because it is subtle enough to fool careful people and it generalises well beyond this dataset. A statistic will place whatever boundary you ask for, whether or not it has the data to place it. Undersampling reads as absence, absence reads as departure, and a departure reads as a discovery. In this post I walk through each link of that chain on real numbers, ending with what the analysis looks like once it is done correctly.
The data come from human multiple sclerosis brain tissue profiled by single-nucleus RNA-seq (GSE180759 and GSE301908), and the analysis focused on two compartments, microglia and astrocytes.
The idea
The premise is genuinely good. Instead of comparing diseased tissue to adjacent diseased tissue, you build a healthy envelope, the normal range of expression for each gene within each cell type, and then flag where the diseased cells fall outside it. Disease becomes a departure from the normal cloud. This is exactly how a clinical reference range works, and it is the correct mental model, because “normal” expression is a distribution and never a single point.
The healthy envelope here came from the 3 control-donor brains already inside the discovery dataset. They were non-diseased and processed on the identical platform as the lesion tissue. That platform matching is the smart part, because it removes the batch and cell-type-matching confounds that would sink an external atlas. Everything about the design was defensible, and the failure was entirely in the execution.
A result that looked right
Scored against that healthy envelope, the rim (the chronic-active lesion edge) lit up. In astrocytes, 238 genes fell outside the normal range. In microglia there was a tighter 18-gene rim-specific set. It had been confound-subtracted against non-lesion tissue, filtered for stress-response artifacts, and seemingly reproduced in an independent cohort at 17 of 18.
That last check deserves a closer look, because it is a trap inside a trap. It only confirmed that the genes were low in healthy tissue, which is trivially true of almost any rare gene. It did not show that they were elevated in disease, so it was a weak test that looked like a strong one. On the surface, though, the result had everything: a plausible cell-type story, a specificity filter and an independent-dataset check. It survived a first round of controls, and had the pipeline stopped there, those genes would have gone into a figure.
This is what makes a methods error harder to catch than an arithmetic one. A wrong number usually looks wrong, while a wrong method can hand you exactly the kind of answer you were hoping for.
Most of the transcriptome is noise floor
Before getting to the evidence, there is one fact about single-cell data that the whole mistake rests on. In this discovery matrix of 25,476 genes across 66,432 nuclei, detection is astonishingly sparse:
Seven in ten genes live at the noise floor. They are detected in a handful of cells, at one count each, and are indistinguishable from dropout. This is the normal condition of the technology rather than a quality problem, and it is driven by roughly 10–30% capture efficiency stacked on genuinely low transcript counts. It is also the reason every standard pipeline filters genes by detection rate before testing them. The envelope metric did not.
The boundary was drawn on data that didn’t exist
Take CDK4, one of the flagged microglial genes. Here is the raw material the envelope was built from, per-donor pseudobulk expression (log-CPM) for control versus rim:
| Group | donor 1 | donor 2 | donor 3 | donor 4 | mean | sd |
|---|---|---|---|---|---|---|
| Control “normal” | 0.00 | 0.00 | 1.29 | – | 0.43 | 0.74 |
| Rim (lesion) | 1.93 | 4.14 | 2.37 | 2.22 | 2.66 | – |
Look at the control row: [0.00, 0.00, 1.29]. That is two misses and a lucky hit, and it does not describe a distribution. When your three estimates of “normal” are two zeros and a 1.3, you do not know what normal is, because you have not measured it. The metric, however, read mean = 0.43 and treated it as a confident “normal ≈ 0”. It mistook undersampling for absence.
Three execution choices turned that mistake into a large, significant-looking departure:
- “Normal” was never measured. A gene detected in ~3% of cells lands in a 137-cell control donor in ~4 cells, or in none. The control envelope for such genes is pure sampling luck, biased toward zero.
- The two sides weren’t on equal footing. Rim had 2,873 cells and control had 289 (one donor had only 10 cells). Ten times the cells means ten times the chances to catch a rare transcript, so rim reads ~2.7 and control reads ~0.4 for the same gene at the same per-cell rate. The gap is a cell-count artifact rather than biology.
- A variance floor amplified it. Because the control sd was tiny and unstable, a moderated-sd floor shrank the z-score’s denominator and inflated a sampling-noise gap into
|z| > 2, “outside the envelope”.
The proof that the gene is normal is in the cells themselves. CDK4 is detected in 1.9% of rim microglia and 4.5% of healthy microglia, so if anything it is lower at the lesion. The departure was in the boundary all along, and never in the biology.
Separating signal from noise
The clean way to tell a genuine cell-type gene from noise-floor debris is to ask a single question: does its detection rate jump when you switch the denominator from “all cells” to “its own cell type”? A real microglial gene is globally sparse but locally dense, while noise is sparse everywhere.
This concentration test is not ad hoc, because it is what the established specificity metrics all encode. The τ (tau) index (≥ 0.8 for “tissue-specific”), the Human Protein Atlas 4×-enrichment rule and Seurat’s marker defaults (min.pct = 0.25) are all asking the same thing: is the gene detected, and enriched, within the population that matters? CSF1R clears the min.pct floor at 48%, and APOL2 fails it at 2.8%. That one filter, which is standard, benchmarked and one line of code, would have excluded all 18.
What the controls caught
The saving grace was that the analysis kept going past the appealing result and into adversarial controls. We subtracted the general-disease effect (rim versus non-lesion tissue), tested the whole signature in an independent cohort, and stress-tested the flagged genes cell by cell. Here is what was left standing:
| Compartment | “outside” genes | also in non-lesion | indep. signature (aggregate) | status |
|---|---|---|---|---|
| Microglia | 18 | 1 | MS > ctrl, p=5e−39 | aggregate real, tiny |
| Astrocytes | 238 | 101 | MS = ctrl, p=1.00 | collapses |
One caveat about the last two columns: the independent test evaluates the whole signature as one aggregate score, not the 238 or 18 genes individually. It tells you whether the compartment’s overall program replicates, and the per-gene fate of the flagged lists is settled separately, in the next section.
The astrocyte result disappeared. Of 238 “outside” genes, 101 were already outside in non-lesion diseased tissue, which is a general disease-brain effect rather than a rim signal. The aggregate astrocyte program also failed to replicate, scoring lower in disease than in healthy tissue (p = 1.00). The biggest and most exciting number was also the most confounded.
The microglia result survived, but only in aggregate and only barely. The signature is genuinely elevated in independent disease microglia, yet only by a whisker, with medians of 0.150 versus 0.143. The p-value of 5×10−39 is real and also trivial, because it was bought entirely by 5,423 cells, and significance is not effect size. What replicates is the aggregate; as the next section shows, every individual per-gene call does not.
Doing it properly
Two fixes turn the method back into what it was meant to be. The first is trivial: add the missing detection floor. Apply min.pct ≥ 0.25 and the underpowered version’s lists nearly vanish, with 0 of 19 microglial phantoms and 236 of 238 astrocyte phantoms gone. That step is necessary, but it only removes noise and adds nothing.
The second fix is the one that matters, and it was the original design all along: draw “normal” from a well-powered healthy reference instead of three in-dataset donors. We scored the rim cells against an independent healthy cohort of 5,423 microglia (~19× the 289 we misused) and handled the cross-platform batch in two ways. One was a rank-based effect size, which is immune to scale differences. The other was a non-lesion subtraction: since the batch offset is shared by all cells from the source dataset, scoring rim and non-lesion tissue against the same reference and taking the difference cancels it. What survives is small, coherent and clearly real:
| Gene | in rim | AUC rim>healthy | rim-specific Δ | identity |
|---|---|---|---|---|
| FTL | 75% | 0.72 | 0.08 | ferritin, iron storage |
| FTH1 | 72% | 0.59 | 0.14 | ferritin, iron storage |
| SLC11A1 | 65% | 0.69 | 0.15 | NRAMP1, metal transport |
| SAT1 | 74% | 0.72 | 0.14 | activated microglia |
| CEBPD | 54% | 0.71 | 0.15 | inflammatory TF |
| TLR2 | 63% | 0.62 | 0.12 | innate immune |
| GFAP (astrocyte) | 84% | 0.66 | 0.21 | reactive astrocyte |
| VIM (astrocyte) | 49% | 0.70 | 0.10 | reactive astrocyte |
This is the signature that defines the chronic-active rim. Ferritin (FTL, FTH1) and metal transport (SLC11A1) are the molecular substrate of the iron-laden microglia that give the rim its paramagnetic MRI signal, and TLR2, CEBPD and SAT1 are their activation program. In astrocytes, GFAP and VIM are the textbook reactive pair. You can see the non-lesion subtraction working: ferritin is elevated in all disease microglia (AUC 0.64 in non-lesion tissue) but more at the rim (0.72), and only that rim-specific excess survives. Just 33 of 1,286 tested microglial genes pass, which shows the differencing is removing the common shift rather than manufacturing signal.
So the same idea gave opposite outcomes. With the underpowered reference (3 in-dataset controls) it produced APOL2, TEK and obscure ncRNA, all artifacts. With the well-powered reference (a 5,423-cell healthy cohort) it produced FTL, FTH1, SLC11A1, GFAP and VIM, which is canonical rim biology.
There are limits to this. The effect sizes are gradients rather than switches (AUC 0.6–0.72), and a rank-plus-subtraction scheme tames cross-platform batch without fully eliminating it, so it is the biological coherence, more than the statistics alone, that makes me trust the result. Still, the verdict is no longer “a defensible method we couldn’t run”. Run as designed, it works.
Lessons for your own pipeline
Three execution errors were avoidable:
- No detection floor. Testing genes at the noise floor guarantees noise-floor results. Require
pct ≥ 0.25within the target cell type before a gene is eligible. - A variance floor on n = 3. Moderating the standard deviation didn’t stabilise the estimate. It manufactured the false departures by shrinking the denominator.
- Asymmetric sampling. 2,873 and 289 cells were compared head-to-head. CPM normalisation does not rescue detection-rate asymmetry for rare genes, so either downsample or don’t make per-gene calls.
The checks that mattered were all ordinary ones:
- Run the negative control before interpreting. The rim-versus-non-lesion subtraction and the independent-cohort test are the real deliverable, more than the eye-catching positive result. If nothing has been run that could kill a finding, it is still a hypothesis.
- A boundary is only as real as its data. When a “normal” thing lands outside the envelope, suspect the envelope. Per-gene boundaries drawn from 3 donors cannot be drawn for 70% of the transcriptome.
- Guardrails belong in code. A caveat that is mentioned in a sentence but not enforced by the pipeline does nothing. The filter has to make the phantom impossible to draw.
- Trust the aggregate, distrust the list. What replicated was the whole-signature, well-powered, per-cell view, and every appealing per-gene call fell apart under scrutiny.
None of the checks that caught this were clever. The metric was the sophisticated part, and the metric was wrong. What separated a finding from an artifact was being willing to run the ordinary control that could kill it, and declining to ask a statistic for a boundary the data cannot support. A statistic will always place the boundary you request, whether or not it has the cells to place it, so the discipline lies in not asking when the cells aren’t there.
Data and reproducibility
Discovery data: GSE180759 (Absinta et al., Nature 2021). Independent healthy reference: GSE301908. Expression is log-CPM pseudobulk, and detection rates come from raw counts. All figures were computed directly from the count matrices, and the flagged gene lists and per-donor tables are reproduced verbatim from the analysis outputs.