Datasets:
Dataset card: reader-tested rewrite (tissue table, no-code/R/Python paths, splits, access)
Browse filesRevised after persona reviews (ML engineer, wet-lab PI, first-time postdoc). All numbers recomputed from the v1.0.0-20261025 catalog; code snippets tested. No data files changed.
README.md
CHANGED
|
@@ -17,15 +17,113 @@ configs:
|
|
| 17 |
|
| 18 |
*Left to right: H&E and GFAP from the same Visium section (GSM9721856), Xenium DAPI (GSM9301054), and a CosMx composite (GSM9372712). The GFAP panel displays all 3,416 recorded spots using the existing log1p preview values.*
|
| 19 |
|
| 20 |
-
Search
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
## Collection composition
|
| 31 |
|
|
@@ -33,16 +131,30 @@ Source index SHA256: `909c4ec50e71c636eadc7bf01a9479fef1b4fd480ac348dfea6b785e56
|
|
| 33 |
|
| 34 |
*Sample counts by platform, image availability, source collection and retained split (n = 12,163; source snapshot: sda-unified-20261010-v3).*
|
| 35 |
|
| 36 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
-
through `catalog/feature-index.sqlite.gz`, the features of every sample's expression file
|
| 45 |
-
(`catalog/feature-index-provenance.json`).
|
| 46 |
-
- With approved access, it plans, downloads, verifies and reads samples.
|
| 47 |
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
*Left to right: H&E and GFAP from the same Visium section (GSM9721856), Xenium DAPI (GSM9301054), and a CosMx composite (GSM9372712). The GFAP panel displays all 3,416 recorded spots using the existing log1p preview values.*
|
| 19 |
|
| 20 |
+
Search 12,163 public spatial transcriptomics samples before you request any data. They come from 1,265 published
|
| 21 |
+
GEO series and hold 635,240,170 spatial observations (spots, bins, cells or beads). 8,211 samples have a released
|
| 22 |
+
tissue image: 5,263 H&E, 871 H&E-like (a pixel-based call that no reviewer confirmed), 1,850 fluorescence (mostly DAPI) and 227 other
|
| 23 |
+
stains. Platforms include Visium, Xenium, legacy ST, CosMx, MERFISH/MERSCOPE, Slide-seq, Stereo-seq and Visium HD.
|
| 24 |
|
| 25 |
+
The samples were found and standardized from GEO by the [SpatialDataAgent](https://github.com/YSTLab/spatial-data-agent)
|
| 26 |
+
workflow (7,777 samples, each checked by an independent scorer) and by the earlier HESRT H&E collection (4,386
|
| 27 |
+
samples, each reviewed by eye). The atlas is described in the
|
| 28 |
+
[bioRxiv preprint](https://doi.org/10.64898/2026.05.27.727615).
|
| 29 |
|
| 30 |
+
This repository holds **metadata only** and needs no account. The expression matrices (H5AD), images (TIFF) and
|
| 31 |
+
per-sample JSON are in the [full dataset](https://huggingface.co/datasets/Biogod/SpatialDataAgent-DB), about
|
| 32 |
+
1.8 TB in total. Every file of the release has passed content verification. To get the files:
|
| 33 |
|
| 34 |
+
1. Request access on that page with your Hugging Face account and an institutional e-mail; requests are reviewed
|
| 35 |
+
manually.
|
| 36 |
+
2. After approval, run `hf auth login` (or set `HF_TOKEN`).
|
| 37 |
|
| 38 |
+
## Is my tissue here?
|
| 39 |
+
|
| 40 |
+
Samples whose GEO tissue text matches each organ. The counts are approximate, because tissue labels are free
|
| 41 |
+
text; use the search for exact cohorts.
|
| 42 |
+
|
| 43 |
+
| Organ | Samples | Human | Studies | With H&E |
|
| 44 |
+
|---|---:|---:|---:|---:|
|
| 45 |
+
| Brain | 2,562 | 999 | 241 | 1,260 |
|
| 46 |
+
| Intestine / colon | 1,416 | 735 | 81 | 241 |
|
| 47 |
+
| Lung | 901 | 649 | 124 | 346 |
|
| 48 |
+
| Liver | 760 | 184 | 101 | 271 |
|
| 49 |
+
| Spinal cord | 637 | 182 | 22 | 251 |
|
| 50 |
+
| Kidney | 563 | 289 | 71 | 203 |
|
| 51 |
+
| Skin | 375 | 238 | 72 | 179 |
|
| 52 |
+
| Heart | 309 | 89 | 54 | 142 |
|
| 53 |
+
| Pancreas | 304 | 200 | 38 | 181 |
|
| 54 |
+
| Lymph node / spleen | 254 | 127 | 58 | 99 |
|
| 55 |
+
| Breast | 215 | 153 | 28 | 150 |
|
| 56 |
+
| Prostate | 107 | 72 | 15 | 89 |
|
| 57 |
+
|
| 58 |
+
**No code needed.** Filter the `tissue`, `platform` or `organism` column in the Dataset Viewer on this page, or
|
| 59 |
+
open `catalog/samples.csv` in Excel or R:
|
| 60 |
+
|
| 61 |
+
```r
|
| 62 |
+
samples <- read.csv("https://huggingface.co/datasets/Biogod/SpatialDataAgent-DB-Catalog/resolve/main/catalog/samples.csv")
|
| 63 |
+
kidney <- subset(samples, grepl("kidney|renal", tissue, ignore.case = TRUE) & organism == "Homo sapiens")
|
| 64 |
+
nrow(kidney) # 289
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
The `sda-db` commands work from any terminal, also alongside an R workflow.
|
| 68 |
+
|
| 69 |
+
## Search in one minute
|
| 70 |
+
|
| 71 |
+
With the [spatial-data-agent-db](https://github.com/Biogod2020/spatial-data-agent-db) Python package and CLI
|
| 72 |
+
(no login):
|
| 73 |
+
|
| 74 |
+
```bash
|
| 75 |
+
pip install "spatial-data-agent-db @ git+https://github.com/Biogod2020/spatial-data-agent-db"
|
| 76 |
+
sda-db search alzheimer hippocampus --organism human --has-image # ranked over study text and sample fields
|
| 77 |
+
sda-db search --platform Visium --stain "H&E" --split train --output cohort.json
|
| 78 |
+
sda-db search --gene GFAP --gene AQP4 --platform Xenium # samples whose panel measures both genes
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
Or read the table directly:
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
import pandas as pd
|
| 85 |
+
from huggingface_hub import hf_hub_download
|
| 86 |
+
|
| 87 |
+
path = hf_hub_download("Biogod/SpatialDataAgent-DB-Catalog", "catalog/samples.parquet", repo_type="dataset")
|
| 88 |
+
samples = pd.read_parquet(path)
|
| 89 |
+
he = samples[(samples.platform == "Visium") & (samples.image_stain == "H&E")]
|
| 90 |
+
print(len(he), he[["gsm", "tissue", "n_obs", "image_um_per_px", "split"]].head())
|
| 91 |
+
# sample_dir is the folder in the full dataset: <sample_dir>/spatial.h5ad, sample.json, image.tif
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
After access is approved, the same package plans download sizes (`sda-db download --from cohort.json --dry-run`),
|
| 95 |
+
checks every file against its SHA256, and reads samples as AnnData. Streaming-ready training shards remain a
|
| 96 |
+
planned follow-up. AI agents can use the same tools through its
|
| 97 |
+
MCP server (`sda-db mcp`).
|
| 98 |
+
|
| 99 |
+
With approved access, load a sample and cut an image patch paired with a spot:
|
| 100 |
+
|
| 101 |
+
```python
|
| 102 |
+
import json
|
| 103 |
+
import sda_db
|
| 104 |
+
from sda_db.io import image_coordinates
|
| 105 |
+
from sda_db.image import read_patch
|
| 106 |
+
|
| 107 |
+
adata = sda_db.load("GSM8915497", include_image=True) # verified download, then AnnData with release metadata
|
| 108 |
+
meta = json.loads(adata.uns["sda_db"]["sample_json"])
|
| 109 |
+
pixels = image_coordinates(adata, meta) # image pixel position of every spot
|
| 110 |
+
patch, _ = read_patch(adata.uns["sda_db"]["directory"], pixels[0], 224) # H&E patch paired with adata.X[0]
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
The H5AD files also open in R, for example with Bioconductor's `zellkonverter::readH5AD`.
|
| 114 |
+
|
| 115 |
+
## Files
|
| 116 |
+
|
| 117 |
+
| File | Content |
|
| 118 |
+
|---|---|
|
| 119 |
+
| `catalog/samples.parquet`, `catalog/samples.csv` | One row per sample: platform, organism, tissue, counts, units, image, QC, split, `sample_dir` path in the full dataset, file SHA256 |
|
| 120 |
+
| `catalog/atlas-study-metadata.jsonl` | Study title, summary, design and PubMed IDs |
|
| 121 |
+
| `catalog/atlas-sample-metadata.jsonl` | Reported disease, condition, age, sex, donor and publication; counts evidence and audit |
|
| 122 |
+
| `catalog/feature-index.sqlite.gz` | Genes and features measured in each sample (41.9 MB; provenance in `catalog/feature-index-provenance.json`) |
|
| 123 |
+
| `catalog/schema.json`, `catalog/summary.json`, `catalog/studies.csv` | Column dictionary, totals, per-study counts |
|
| 124 |
+
|
| 125 |
+
Source index SHA256: `909c4ec50e71c636eadc7bf01a9479fef1b4fd480ac348dfea6b785e566c7bed` (snapshot
|
| 126 |
+
`sda-unified-20261010-v3`, release tag `v1.0.0-20261025` of the full dataset).
|
| 127 |
|
| 128 |
## Collection composition
|
| 129 |
|
|
|
|
| 131 |
|
| 132 |
*Sample counts by platform, image availability, source collection and retained split (n = 12,163; source snapshot: sda-unified-20261010-v3).*
|
| 133 |
|
| 134 |
+
## Splits for machine learning
|
| 135 |
+
|
| 136 |
+
The `split` column assigns whole GEO series to train (9,249 samples), val (1,316) or test (1,598), so samples of
|
| 137 |
+
one study never cross splits. Of the H&E samples, 3,847 are in train, 358 in val and 1,058 in test. The split does not prove donor independence across studies; check
|
| 138 |
+
`content_group` and `aliases` (in `samples.parquet`) and `donor_id` (in `atlas-sample-metadata.jsonl`) for
|
| 139 |
+
your benchmark.
|
| 140 |
|
| 141 |
+
## Read the annotations correctly
|
| 142 |
|
| 143 |
+
- **Vocabularies.** Organism, tissue, disease and age are kept as reported in GEO, not harmonized.
|
| 144 |
+
- **Missing values.** Missing values stay empty; an empty `review_decision` is not a PASS.
|
| 145 |
+
- **Separate checks.** Each check has its own column. Counts capability is `counts_ready` in
|
| 146 |
+
`atlas-sample-metadata.jsonl`. The others are columns of `samples.parquet`:
|
| 147 |
+
- source verification: `verification`;
|
| 148 |
+
- image registration: `image_registration`;
|
| 149 |
+
- human review: `review_decision`.
|
| 150 |
+
- **Image scale.** `image_um_per_px` gives micrometres per image pixel where known; 5,113 of the 5,263 H&E
|
| 151 |
+
images have it. `coordinate_units` and `um_per_unit` describe the spatial coordinates.
|
| 152 |
+
- **Observations.** Observations are spots, cells, bins or beads, not independent donors.
|
| 153 |
|
| 154 |
+
## Terms
|
|
|
|
|
|
|
|
|
|
| 155 |
|
| 156 |
+
The catalog and the data follow the terms of the original studies. There is no blanket license, and the
|
| 157 |
+
catalog has no per-sample license column. See the
|
| 158 |
+
[full Dataset Card](https://huggingface.co/datasets/Biogod/SpatialDataAgent-DB#data-use-and-source-terms) for
|
| 159 |
+
reuse terms and citation, and cite the original studies with the data you use (`sda-db cite` writes BibTeX for
|
| 160 |
+
a selection).
|