File size: 9,360 Bytes
51f2395 8563b1b 29ed393 51f2395 29ed393 8563b1b 29ed393 9bc424c 04af0c9 29ed393 04af0c9 9bc424c 29ed393 51f2395 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | ---
license: cc-by-4.0
pretty_name: CellImageNet
task_categories:
- image-classification
tags:
- biology
- single-cell
- cell-type-classification
- DAPI
- nuclear-morphology
- spatial-transcriptomics
- xenium
size_categories:
- 1M<n<10M
configs:
- config_name: human
data_files:
- split: full
path: data/human/*.tar
- config_name: mouse
data_files:
- split: full
path: data/mouse/*.tar
---
# CellImageNet
> ✅ **Release v1.0.0 (complete).** The full corpus is now available: all
> **42 Xenium samples (28 human + 14 mouse)** are on the Hub. See
> **[Release status](#release-status)** for the per-sample list.
**CellImageNet** is a large-scale single-cell image database of **paired DAPI
nuclear images with cell-type annotations**, built from publicly available
10x Genomics Xenium data. It contains **~10 million cells** from **42 Xenium
samples — 28 human and 14 mouse tissues** — spanning diverse species, biological
conditions, and tissue types, annotated with **31 harmonized cell-type classes**
(unified from the source datasets' own annotations into a common label set).
Each cell has paired DAPI crops centered on the same cell at complementary context scales:
- **2.5×** — a tight view capturing fine nuclear morphology, and
- **10×** — a wider view capturing the local tissue context / neighbourhood.
Crops are provided at their **native resolution** (variable per sample; they are
*not* pre-resized — resize to a fixed input size, e.g. 224×224, is left to the
downstream model).
## Configurations & splits
| config | content |
|---|---|
| `human` | 28 human Xenium samples (~6.5M cells) |
| `mouse` | 14 mouse Xenium samples (~3.4M cells) |
(Counts are pre-filtering segmentation totals; the released set is marginally
smaller after removing cells with tiny nuclear masks or missing crops.)
This is an unsplit corpus: each config exposes a single `full` split (we do not
ship an official train/test partition). The exact subset used to train MorphPT
is specified in the [MorphPT weights repo](https://huggingface.co/jilab/MorphPT)
under `splits/`.
```python
from datasets import load_dataset
ds = load_dataset("jilab/CellImageNet", "human", split="full", streaming=True)
ex = next(iter(ds))
ex["2p5x.png"], ex["10x.png"], ex["json"]["cell_type"]
```
## Release status
**v1.0.0 (complete)** — all 28 human + 14 mouse = 42 samples are available.
<!-- RELEASE_STATUS_START -->
Currently available: 28 human, 14 mouse samples.
- Xenium_Preview_Human_Lung_Cancer
- Xenium_Preview_Human_Non_diseased_Lung
- Xenium_Prime_Ovarian_Cancer_FFPE
- Xenium_V1_FFPE_Human_Brain_Alzheimers
- Xenium_V1_FFPE_Human_Brain_Glioblastoma
- Xenium_V1_FFPE_Human_Brain_Healthy
- Xenium_V1_hColon_Cancer_Add_on
- Xenium_V1_hColon_Cancer_Base
- Xenium_V1_hColon_Non_diseased_Add_on
- Xenium_V1_hColon_Non_diseased_Base
- Xenium_V1_hHeart_nondiseased
- Xenium_V1_hKidney_cancer
- Xenium_V1_hKidney_nondiseased
- Xenium_V1_hLiver_cancer
- Xenium_V1_hLiver_nondiseased
- Xenium_V1_hLung_cancer
- Xenium_V1_hLymphNode_nondiseased
- Xenium_V1_hPancreas_Cancer_Add_on
- Xenium_V1_hPancreas_nondiseased
- Xenium_V1_hSkin_Melanoma_Base
- Xenium_V1_hSkin_nondiseased_section_1
- Xenium_V1_hSkin_nondiseased_section_2
- Xenium_V1_hTonsil_follicular_lymphoid_hyperplasia
- Xenium_V1_hTonsil_reactive_follicular_hyperplasia
- Xenium_human_Lung_Cancer_FFPE
- Xenium_human_Lymph_Node_FFPE
- Xenium_human_Pancreas_FFPE
- Xeniumranger_V1_hSkin_Melanoma_Add_on
- Xenium_Prime_Mouse_Pup
- Xenium_V1_FFPE_TgCRND8_17_9_months
- Xenium_V1_FFPE_TgCRND8_2_5_months
- Xenium_V1_FFPE_TgCRND8_5_7_months
- Xenium_V1_FFPE_wildtype_13_4_months
- Xenium_V1_FFPE_wildtype_2_5_months
- Xenium_V1_FFPE_wildtype_5_7_months
- Xenium_V1_FF_Mouse_Brain_Coronal
- Xenium_V1_FF_Mouse_Brain_Coronal_Subset
- Xenium_V1_FF_Mouse_Brain_MultiSection_1
- Xenium_V1_FF_Mouse_Brain_MultiSection_2
- Xenium_V1_FF_Mouse_Brain_MultiSection_3
- Xenium_V1_mouse_pup
- Xenium_mouse_Colon_FFPE
<!-- RELEASE_STATUS_END -->
The authoritative, always-current list of source samples (with 10x URLs and
per-sample cell counts) is in [`attribution_manifest.csv`](attribution_manifest.csv).
## Sample schema (WebDataset)
Each sample (one cell) is keyed by `cell_id` with three members:
| member | type | description |
|---|---|---|
| `2p5x.png` | image | 2.5× DAPI crop (grayscale, native resolution) |
| `10x.png` | image | 10× DAPI crop (grayscale, native resolution) |
| `json` | dict | metadata (below) |
`json` fields: `cell_id`, `dataset` (source Xenium sample), `species`
(Human/Mouse), `tissue`, `condition`, `cell_type` (one of the 31 classes below,
plus a small `Unknown` bucket in some mouse samples), `x_centroid`, `y_centroid`
(nuclear centroid, **microns**).
> Note: the field is named `cell_type` (the fine-grained cell label). It is
> *not* the coarse morphology "group" used by the MorphPT router — that grouping
> lives in the model repo, not in this dataset.
## Cell-type classes
The 31 harmonized cell-type labels in `cell_type`:
<details>
<summary>All 31 classes</summary>
Astrocytes · B cells · Brain cancer cells · Cardiac muscle cells · Chondrocytes ·
Colon cancer cells · Endothelial cells · Ependymal cells · Epithelial cells ·
Erythrocytes · Fibroblasts · Kidney cancer cells · Liver cancer cells ·
Lung cancer cells · Mesangial cells · Microglia · Myeloid cells · NK cells ·
Neurons · OPCs · Oligodendrocytes · Ovary cancer cells · Pancreas cancer cells ·
Pericytes · Schwann cells · Skeletal muscle cells · Skin cancer cells ·
Smooth muscle cells · Stem and progenitor cells · Stromal cells · T cells
</details>
`Unknown` is **mouse-only** (~134k cells, ≈3.8% of the mouse split; no human cell
carries it) and marks cells left unannotated in the source. Filter it out if you
need a clean 31-class label space.
## How it was built
Source: 42 Xenium samples (28 human, 14 mouse) from the
[10x Genomics datasets portal](https://www.10xgenomics.com/datasets). From each
tissue-wide DAPI image we used the `morphology_mip` maximum-intensity-projection
channel (or `morphology_focus` when unavailable). Nuclear segmentation masks
(10x Xenium Onboard Analysis) were converted to pixels at 0.2125 µm/px; cells
with rasterized nuclear area < 5 px or a bounding box < 10 px in either dimension
were removed. For each cell, two square crops centred on the nuclear centroid
were extracted at context scales r = 2.5 and r = 10 (side length S_r = r·d, with
d the per-sample mean nuclear bounding-box size) and zero-padded at image
borders. Crops are stored at native resolution.
## License & attribution
CellImageNet is a **derivative work** of publicly available 10x Genomics Xenium
datasets. The underlying imaging data is distributed by 10x Genomics under the
**Creative Commons Attribution 4.0 International ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/))**
license. Because CellImageNet is derived from CC BY 4.0 material, the image crops
are released under **CC BY 4.0**; the cell-type annotations and derived metadata
contributed by the CellImageNet authors are likewise released under CC BY 4.0.
See [`LICENSE`](LICENSE) for the full statement.
Under CC BY 4.0 you may share and adapt this dataset, including commercially,
provided you (1) credit 10x Genomics and the CellImageNet authors, (2) link the
license, and (3) **indicate that changes were made** — the images here have been
cropped/re-framed and re-annotated and are **not** the original 10x Genomics
files.
### Source datasets
All 42 source samples are 10x Genomics Xenium In Situ datasets from the
[10x Genomics datasets portal](https://www.10xgenomics.com/datasets). Each is
individually licensed CC BY 4.0 on its dataset page. The complete list of source
samples (dataset name, species, tissue, condition, and its 10x dataset URL) is
provided in **[`attribution_manifest.csv`](attribution_manifest.csv)** in this
repository.
Please cite both 10x Genomics and the individual source datasets in addition to
the CellImageNet/MorphPT paper below.
## Limitations
- **DAPI only** — nuclear morphology, no gene expression or protein channels
(despite deriving from Xenium spatial-transcriptomics runs).
- **Native-resolution crops** vary in pixel size across samples; downstream
models must resize to a fixed input.
- **Unsplit and imbalanced** — no official train/test split, and class frequency
is highly skewed (tissue/condition sampling reflects the source datasets, not a
balanced design). Subsample or reweight for classifier training.
- Labels are the source annotations harmonized into 31 classes; ≈3.8% of mouse
cells (none in human) are `Unknown`.
## Relation to MorphPT
CellImageNet is the training corpus for **MorphPT**, a visual foundation model
for cell classification. MorphPT was trained on a human-only, per-class
subsampled subset of CellImageNet.
- Code: <https://github.com/AnitaCao/MorphPT>
- Model weights: <https://huggingface.co/jilab/MorphPT>
## Citation
```bibtex
@article{cao2026visual,
title = {A visual foundation model for cell classification},
author = {Cao, Ting and Zhuang, Haotian and Zhang, Boxuan and
Pang, Zhiping P. and Tang, Ruixiang and Liu, Dongfang and
Ji, Zhicheng},
year = {2026}
}
```
|