recall (Calibrated Clustering with Artificial Variables) is a statistical framework designed to address the fundamental problem of over-clustering in single-cell RNA-sequencing (scRNA-seq) data analysis.
In standard scRNA-seq analysis pipelines:
This creates a statistical problem known as double-dipping: the same data is used both to define groups and to test for differences between them. This leads to:
The knockoff filter (Barber & Candès, 2015) is a powerful method for variable selection with FDR control. Given original features \(X_1, \ldots, X_p\), we construct knockoff features \(\tilde{X}_1, \ldots, \tilde{X}_p\) that:
For each gene \(j\), we compute the knockoff W statistic:
\[W_j = -\log_{10}(p_j^{\text{original}}) - (-\log_{10}(p_j^{\text{knockoff}}))\]
Where: - \(p_j^{\text{original}}\) is the p-value for gene \(j\) in differential expression testing - \(p_j^{\text{knockoff}}\) is the p-value for the corresponding knockoff gene
The knockoff filter selects genes where \(W_j \geq T\), where the threshold \(T\) is chosen to control FDR at level \(q\):
\[T = \min\left\{t > 0: \frac{1 + \#\{j: W_j \leq -t\}}{\#\{j: W_j \geq t\}} \leq q\right\}\]
This provides rigorous FDR control without distributional assumptions.
Given the expression matrix \(X \in \mathbb{R}^{n \times p}\) (cells × genes), we generate synthetic “knockoff” genes \(\tilde{X} \in \mathbb{R}^{n \times p}\) by:
| Method | Description | Use Case |
|---|---|---|
ZIP |
Zero-Inflated Poisson | Fast, default for most data |
NB |
Negative Binomial | Overdispersed count data |
ZIP-copula |
ZIP with Gaussian copula | Captures gene-gene correlations |
NB-copula |
NB with Gaussian copula | Overdispersed with correlations |
The augmented matrix \([X, \tilde{X}] \in \mathbb{R}^{n \times 2p}\) undergoes:
Algorithm: FindClustersRecall
─────────────────────────────────────────
Input: Seurat object, resolution_start, q (target FDR)
Output: Calibrated cluster assignments
1. Generate knockoff features
2. resolution ← resolution_start
3. REPEAT:
a. Cluster augmented data at current resolution
b. FOR each cluster pair (i, j):
- Compute differential expression (original vs knockoff)
- Apply knockoff filter at FDR = q
- IF no genes selected:
Mark pair as "not significantly different"
BREAK
c. IF all pairs significantly different:
RETURN cluster assignments
d. resolution ← resolution × (1 - reduction_percentage)
4. RETURN cluster assignments
For count data \(x_1, \ldots, x_n\) following ZIP(\(\lambda\), \(\pi\)):
\[P(X = k) = \begin{cases} \pi + (1-\pi)e^{-\lambda} & k = 0 \\ (1-\pi)\frac{\lambda^k e^{-\lambda}}{k!} & k > 0 \end{cases}\]
The MLE has a closed-form solution using the Lambert W function:
\[\hat{\lambda} = W_0(-\gamma e^{-\gamma}) + \gamma\]
where \(\gamma = \bar{x}/(1-r_0)\) and \(r_0\) is the observed zero proportion.
For overdispersed count data, the negative binomial distribution is parameterized as:
\[\text{Var}(X) = \mu + \frac{\mu^2}{\text{size}}\]
The estimate_negative_binomial() function uses a cascade
of estimation methods:
When gene-gene correlations are important, copula models preserve the dependency structure:
Under the knockoff framework, recall provides finite-sample FDR control:
\[\text{FDR} = \mathbb{E}\left[\frac{V}{R \vee 1}\right] \leq q\]
where \(V\) is the number of false discoveries and \(R\) is the total number of discoveries.
| Method | Mechanism | Advantages | Disadvantages |
|---|---|---|---|
| recall | Knockoff filter | FDR control, uses full data | Requires distribution assumptions |
| Count Splitting | Data splitting | Distribution-free | Loses statistical power |
Barber, R. F., & Candès, E. J. (2015). Controlling the false discovery rate via knockoffs. The Annals of Statistics, 43(5), 2055-2085.
DenAdel, A., et al. (2025). A knockoff calibration method to avoid over-clustering in single-cell RNA-sequencing. American Journal of Human Genetics.
Neufeld, A., et al. (2022). Inference after latent variable estimation for single-cell RNA sequencing data. Biostatistics.
Lambert, D. (1992). Zero-inflated Poisson regression, with an application to defects in manufacturing. Technometrics, 34(1), 1-14.