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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- tabular-regression
|
| 5 |
+
tags:
|
| 6 |
+
- single-cell
|
| 7 |
+
- scRNA-seq
|
| 8 |
+
- gene-expression
|
| 9 |
+
- normalization
|
| 10 |
+
- benchmark
|
| 11 |
+
- coregulation
|
| 12 |
+
- coexpression
|
| 13 |
+
- anndata
|
| 14 |
+
size_categories:
|
| 15 |
+
- 100K<n<1M
|
| 16 |
+
pretty_name: scRNA-seq Coregulation Benchmark
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# scRNA-seq Coregulation Benchmark
|
| 20 |
+
|
| 21 |
+
A benchmark for evaluating whether single-cell RNA-seq normalization methods preserve known gene-gene correlation structure. It provides two complementary ground-truth catalogs:
|
| 22 |
+
|
| 23 |
+
1. **Promoter-reporter catalog** — Datasets where a fluorescent reporter (GFP/DsRed) is driven by a known gene's promoter. The reporter and its target gene should be *positively correlated*.
|
| 24 |
+
2. **Allelic exclusion catalog** — PBMC and B cell datasets where immunoglobulin light chain allelic exclusion (IGKC vs IGLC) provides an expected *negative correlation*.
|
| 25 |
+
|
| 26 |
+
Together, these test both directions of the correlation spectrum: a good normalization method should recover positive coregulation where it exists and preserve anti-correlation where biology demands it.
|
| 27 |
+
|
| 28 |
+
## Quick start
|
| 29 |
+
|
| 30 |
+
```python
|
| 31 |
+
from huggingface_hub import hf_hub_download
|
| 32 |
+
import anndata as ad
|
| 33 |
+
|
| 34 |
+
# Promoter-reporter example
|
| 35 |
+
path = hf_hub_download(
|
| 36 |
+
repo_id="valsv/scrna-coregulation-benchmark",
|
| 37 |
+
filename="promoter_reporter/GSE316394_BACHD_1.h5ad",
|
| 38 |
+
repo_type="dataset",
|
| 39 |
+
)
|
| 40 |
+
adata = ad.read_h5ad(path)
|
| 41 |
+
|
| 42 |
+
reporter = adata.uns["reporters"]["eGFP"]
|
| 43 |
+
reporter["target_gene_symbol"] # "Dlx1" — the gene whose promoter drives eGFP
|
| 44 |
+
|
| 45 |
+
# Allelic exclusion example
|
| 46 |
+
path = hf_hub_download(
|
| 47 |
+
repo_id="valsv/scrna-coregulation-benchmark",
|
| 48 |
+
filename="allelic_exclusion/GSE306378_N_rep1.h5ad",
|
| 49 |
+
repo_type="dataset",
|
| 50 |
+
)
|
| 51 |
+
adata = ad.read_h5ad(path)
|
| 52 |
+
|
| 53 |
+
pair = adata.uns["exclusion_pairs"]["IGKC_vs_IGLC2"]
|
| 54 |
+
pair["gene_a_symbol"] # "IGKC"
|
| 55 |
+
pair["gene_b_symbol"] # "IGLC2"
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Repository structure
|
| 59 |
+
|
| 60 |
+
```
|
| 61 |
+
promoter_reporter/
|
| 62 |
+
GSE160772.h5ad
|
| 63 |
+
GSE181864.h5ad
|
| 64 |
+
GSE198556_*.h5ad (4 files)
|
| 65 |
+
GSE229976_*.h5ad (2 files)
|
| 66 |
+
GSE295703_*.h5ad (3 files)
|
| 67 |
+
GSE296504.h5ad
|
| 68 |
+
GSE316394_*.h5ad (4 files)
|
| 69 |
+
GSE319345_*.h5ad (4 files)
|
| 70 |
+
allelic_exclusion/
|
| 71 |
+
GSE260943_*.h5ad (3 files)
|
| 72 |
+
GSE285843_*.h5ad (6 files)
|
| 73 |
+
GSE306378_*.h5ad (6 files)
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## File format
|
| 77 |
+
|
| 78 |
+
Each `.h5ad` file is one sample (one 10x or Parse capture). Files are named `{series_id}_{sample_suffix}.h5ad`.
|
| 79 |
+
|
| 80 |
+
### `X` — Count matrix
|
| 81 |
+
|
| 82 |
+
Sparse CSR, dtype `int32`. Raw UMI counts (not normalized). Rows are cells, columns are genes.
|
| 83 |
+
|
| 84 |
+
### `var` — Gene annotations
|
| 85 |
+
|
| 86 |
+
| Field | Description |
|
| 87 |
+
|-------|-------------|
|
| 88 |
+
| `var_names` (index) | Gene symbols (mouse), TAIR locus IDs (Arabidopsis), or gene symbols (human) |
|
| 89 |
+
| `gene_id` | Ensembl or TAIR ID |
|
| 90 |
+
|
| 91 |
+
### `obs` — Cell metadata
|
| 92 |
+
|
| 93 |
+
| Field | Type | Description |
|
| 94 |
+
|-------|------|-------------|
|
| 95 |
+
| `total_counts` | int | Total UMI per cell |
|
| 96 |
+
| `n_genes` | int | Number of genes with at least one count |
|
| 97 |
+
|
| 98 |
+
### `uns` — Sample metadata
|
| 99 |
+
|
| 100 |
+
| Field | Description |
|
| 101 |
+
|-------|-------------|
|
| 102 |
+
| `sample_id` | GEO sample accession |
|
| 103 |
+
| `series_id` | GEO series accession |
|
| 104 |
+
| `species` | Species |
|
| 105 |
+
| `tissue` | Tissue or cell population |
|
| 106 |
+
| `platform` | Sequencing platform/chemistry |
|
| 107 |
+
|
| 108 |
+
Promoter-reporter files additionally have `uns["reporters"]` and allelic exclusion files have `uns["exclusion_pairs"]` (see below).
|
| 109 |
+
|
| 110 |
+
## Promoter-reporter catalog
|
| 111 |
+
|
| 112 |
+
20 harmonized scRNA-seq h5ad files where a fluorescent reporter gene is driven by a known gene's promoter, providing ground-truth positive coregulation at single-cell resolution.
|
| 113 |
+
|
| 114 |
+
### Reporter metadata — `uns["reporters"]`
|
| 115 |
+
|
| 116 |
+
Dict keyed by the reporter's name in `var_names`:
|
| 117 |
+
|
| 118 |
+
```python
|
| 119 |
+
{"eGFP": {"target_gene_symbol": "Pdgfrb",
|
| 120 |
+
"target_gene_id": "ENSMUSG00000024620.13",
|
| 121 |
+
"construct": "Pdgfrb-BAC-eGFP"}}
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
### Evaluation
|
| 125 |
+
|
| 126 |
+
For each sample and reporter, compute:
|
| 127 |
+
1. **Target correlation**: Pearson r between the reporter and its target gene (expected positive)
|
| 128 |
+
2. **Background correlations**: Pearson r between the reporter and N random non-reporter genes
|
| 129 |
+
|
| 130 |
+
The target correlation should be substantially higher than the median background correlation.
|
| 131 |
+
|
| 132 |
+
```python
|
| 133 |
+
import numpy as np
|
| 134 |
+
from scipy.stats import pearsonr
|
| 135 |
+
|
| 136 |
+
reporter_name = "eGFP"
|
| 137 |
+
target_name = adata.uns["reporters"][reporter_name]["target_gene_symbol"]
|
| 138 |
+
|
| 139 |
+
totals = np.asarray(adata.X.sum(axis=1)).ravel()
|
| 140 |
+
reporter_norm = np.log10(1e4 * adata[:, reporter_name].X.toarray().ravel() / totals + 1)
|
| 141 |
+
target_norm = np.log10(1e4 * adata[:, target_name].X.toarray().ravel() / totals + 1)
|
| 142 |
+
|
| 143 |
+
target_r = pearsonr(reporter_norm, target_norm)[0]
|
| 144 |
+
|
| 145 |
+
rng = np.random.default_rng(42)
|
| 146 |
+
bg_genes = rng.choice(
|
| 147 |
+
[g for g in adata.var_names if g != reporter_name and g != target_name],
|
| 148 |
+
size=500, replace=False,
|
| 149 |
+
)
|
| 150 |
+
bg_cors = [pearsonr(reporter_norm, np.log10(1e4 * adata[:, g].X.toarray().ravel() / totals + 1))[0]
|
| 151 |
+
for g in bg_genes]
|
| 152 |
+
|
| 153 |
+
print(f"Target r: {target_r:.3f}, Background median: {np.median(bg_cors):.3f}")
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
### Datasets
|
| 157 |
+
|
| 158 |
+
#### Mouse (17 files)
|
| 159 |
+
|
| 160 |
+
| Series | Files | Reporter | Target gene | Tissue | Construct | Platform | Cells |
|
| 161 |
+
|--------|-------|----------|-------------|--------|-----------|----------|-------|
|
| 162 |
+
| GSE160772 | 1 | eGFP | Pdgfrb | Endometrium mesenchyme | BAC transgene | 10x v2 | 6,514 |
|
| 163 |
+
| GSE198556 | 4 | eGFP | Pdgfrb | Endometrium (injury time-course) | BAC transgene | 10x v3 | 49,723 |
|
| 164 |
+
| GSE181864 | 1 | eGFP | Rorc | Large intestine LP | Knockin | 10x v3 | 9,107 |
|
| 165 |
+
| GSE229976 | 2 | eGFP | Il23r | Small intestine | Knockin | 10x v3 | 27,314 |
|
| 166 |
+
| GSE296504 | 1 | eGFP + DsRed | Cx3cr1, Cspg4 | P15 eardrum | Knockin + transgene | 10x v3.1 | 4,548 |
|
| 167 |
+
| GSE316394 | 4 | eGFP | Dlx1 | E12.5 MGE | BAC transgene | 10x v3.1 | 42,755 |
|
| 168 |
+
| GSE319345 | 4 | eGFP | Sox9 | Liver (BDL model) | BAC transgene | Parse WT v1 | 19,819 |
|
| 169 |
+
|
| 170 |
+
#### Arabidopsis (3 files)
|
| 171 |
+
|
| 172 |
+
| Series | Files | Reporter | Target gene | Tissue | Construct | Platform | Cells |
|
| 173 |
+
|--------|-------|----------|-------------|--------|-----------|----------|-------|
|
| 174 |
+
| GSE295703 | 3 | GFP | WER, CORTEX, SCR | Root | Promoter fusion | 10x v3 | 32,078 |
|
| 175 |
+
|
| 176 |
+
### Notes
|
| 177 |
+
|
| 178 |
+
- All 16 standard mouse files share the same 78,335 genes in the same order. GSE296504 has one additional gene (DsRed, 78,336 total). The three Arabidopsis files have 32,834 genes each.
|
| 179 |
+
- Mouse gene references are from Ensembl GRCm39, augmented with eGFP (and DsRed for GSE296504).
|
| 180 |
+
- Construct types: knockin (reporter inserted at the endogenous locus), BAC transgene (reporter in a bacterial artificial chromosome), promoter fusion (reporter driven by a cloned proximal promoter).
|
| 181 |
+
|
| 182 |
+
## Allelic exclusion catalog
|
| 183 |
+
|
| 184 |
+
15 human scRNA-seq h5ad files for benchmarking using immunoglobulin light chain allelic exclusion. Each B cell commits to either kappa (IGKC) or lambda (IGLC2/IGLC3) light chain expression — never both — providing an expected anti-correlation signal.
|
| 185 |
+
|
| 186 |
+
### Exclusion pair metadata — `uns["exclusion_pairs"]`
|
| 187 |
+
|
| 188 |
+
```python
|
| 189 |
+
{"IGKC_vs_IGLC2": {"gene_a_symbol": "IGKC",
|
| 190 |
+
"gene_a_id": "ENSG00000211592",
|
| 191 |
+
"gene_b_symbol": "IGLC2",
|
| 192 |
+
"gene_b_id": "ENSG00000211677",
|
| 193 |
+
"mechanism": "Immunoglobulin light chain allelic exclusion"}}
|
| 194 |
+
```
|
| 195 |
+
|
| 196 |
+
### Evaluation
|
| 197 |
+
|
| 198 |
+
In mixed populations (PBMC), most cells express neither light chain. Filter to B cells first to avoid Simpson's paradox:
|
| 199 |
+
|
| 200 |
+
```python
|
| 201 |
+
igkc = adata[:, "IGKC"].X.toarray().ravel()
|
| 202 |
+
iglc2 = adata[:, "IGLC2"].X.toarray().ravel()
|
| 203 |
+
iglc3 = adata[:, "IGLC3"].X.toarray().ravel()
|
| 204 |
+
b_cell_mask = (igkc > 0) | (iglc2 > 0) | (iglc3 > 0)
|
| 205 |
+
adata_b = adata[b_cell_mask]
|
| 206 |
+
```
|
| 207 |
+
|
| 208 |
+
Then compute target correlation (expected negative) vs. background, excluding all immunoglobulin genes (IGK\*, IGL\*, IGH\*) from the background pool.
|
| 209 |
+
|
| 210 |
+
### Datasets
|
| 211 |
+
|
| 212 |
+
| Series | Files | Condition | Tissue | Platform | Cells |
|
| 213 |
+
|--------|-------|-----------|--------|----------|-------|
|
| 214 |
+
| GSE306378 | 6 | 3 healthy + 3 SLE | PBMC | 10x | 78,851 |
|
| 215 |
+
| GSE285843 | 6 | healthy (3 donors x 2 platforms) | PBMC | 10x + Parse | 72,080 |
|
| 216 |
+
| GSE260943 | 3 | healthy (3 donors) | Tonsil B cells | 10x | 47,978 |
|
| 217 |
+
|
| 218 |
+
### Notes
|
| 219 |
+
|
| 220 |
+
- All 15 files share the same 33,694 genes (GRCh38, Cell Ranger reference).
|
| 221 |
+
- GSE260943 samples are sorted tonsil B cells — B cell filtering is optional.
|
| 222 |
+
- GSE306378 SLE samples have elevated B cell / plasma cell fractions.
|
| 223 |
+
|
| 224 |
+
## Citations
|
| 225 |
+
|
| 226 |
+
If you use this benchmark, please cite the original studies that generated the data.
|
| 227 |
+
|
| 228 |
+
### Promoter-reporter catalog
|
| 229 |
+
|
| 230 |
+
**GSE160772** — Kirkwood PM, Gibson DA, Smith JR, Wilson-Kanamori JR, Kelepouri O, Esnal-Zufiaurre A, Dobie R, Henderson NC, Saunders PTK. Single-cell RNA sequencing redefines the mesenchymal cell landscape of mouse endometrium. *FASEB J.* 2021;35:e21285. [doi:10.1096/fj.202002123R](https://doi.org/10.1096/fj.202002123R)
|
| 231 |
+
|
| 232 |
+
**GSE198556** — Kirkwood PM, Gibson DA, Shaw I, Dobie R, Kelepouri O, Henderson NC, Saunders PTK. Single-cell RNA sequencing and lineage tracing confirm mesenchyme to epithelial transformation (MET) contributes to repair of the endometrium at menstruation. *eLife.* 2022;11:e77663. [doi:10.7554/eLife.77663](https://doi.org/10.7554/eLife.77663)
|
| 233 |
+
|
| 234 |
+
**GSE181864** — Zhou W, Zhou L, Zhou J, Chu C, Zhang C, Sockolow RE, Eberl G, Sonnenberg GF. ZBTB46 defines and regulates ILC3s that protect the intestine. *Nature.* 2022;609(7925):159–165. [doi:10.1038/s41586-022-04934-4](https://doi.org/10.1038/s41586-022-04934-4)
|
| 235 |
+
|
| 236 |
+
**GSE229976** — Ahmed A, Joseph AM, Zhou J, Horn V, Uddin J, Lyu M, Goc J, et al. CTLA-4-expressing ILC3s restrain interleukin-23-mediated inflammation. *Nature.* 2024;630:976–983. [doi:10.1038/s41586-024-07537-3](https://doi.org/10.1038/s41586-024-07537-3)
|
| 237 |
+
|
| 238 |
+
**GSE295703** — Chau TN, Ryu KH, Alajoleen R, Bargmann BO, Schiefelbein J, Li S. scCoBench: Benchmarking single cell RNA-seq co-expression using promoter-reporter lines. *bioRxiv.* 2025. [doi:10.1101/2025.05.26.656221](https://doi.org/10.1101/2025.05.26.656221)
|
| 239 |
+
|
| 240 |
+
**GSE296504** — Shi X, et al. (2026). Preprint: [bioRxiv 10.64898/2026.01.13.699360](https://www.biorxiv.org/content/10.64898/2026.01.13.699360v1)
|
| 241 |
+
|
| 242 |
+
**GSE316394** — Molero AE, Devakanmalai GS, Altun YM, Jover-Mengual T, Zhang J, Khan N, Mehler MF. Aberrant medial ganglionic eminence (MGE) GABAergic neurogenesis contributes to Huntington's disease pathogenesis. *Neurobiol Dis.* 2026;221:107297. [doi:10.1016/j.nbd.2026.107297](https://doi.org/10.1016/j.nbd.2026.107297)
|
| 243 |
+
|
| 244 |
+
**GSE319345** — Kanakanui KG, Hantelys F, Hrncir HR, Bombin S, Gracz AD. Multi-gene biomarkers reveal spatial organization and subpopulation-specific damage response in intrahepatic biliary epithelial cells. *bioRxiv.* 2026. [doi:10.64898/2026.02.12.705355](https://doi.org/10.64898/2026.02.12.705355)
|
| 245 |
+
|
| 246 |
+
### Allelic exclusion catalog
|
| 247 |
+
|
| 248 |
+
**GSE260943** — McGrath JJC, Park J, Troxell CA, Chervin JC, Li L, Kent JR, Changrob S, et al. Mutability and hypermutation antagonize immunoglobulin codon optimality. *Mol Cell.* 2025;85(2):430–444.e6. [doi:10.1016/j.molcel.2024.11.033](https://doi.org/10.1016/j.molcel.2024.11.033)
|
| 249 |
+
|
| 250 |
+
**GSE306378** — Cheng LL, Tang ZF, Li M, Chen JJ, Shang SS, Huang CB. Single-cell sequencing-based analysis of CD4+ T-cell and B-cell heterogeneity in patients with lupus nephritis. *BMC Med Genomics.* 2026;19(1):29. [doi:10.1186/s12920-025-02277-3](https://doi.org/10.1186/s12920-025-02277-3)
|
| 251 |
+
|
| 252 |
+
**GSE285843** — Publication pending (no citation listed on GEO as of March 2026).
|