PABannier commited on
Commit
1943a9c
·
verified ·
1 Parent(s): 801963b

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,5 +1,344 @@
1
  ---
2
- license: cc-by-nc-4.0
3
  language:
4
  - en
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  language:
3
  - en
4
+ license: cc-by-nc-4.0
5
+ size_categories:
6
+ - 1K<n<10K
7
+ task_categories:
8
+ - tabular-classification
9
+ - tabular-regression
10
+ tags:
11
+ - biology
12
+ - medical
13
+ - cancer
14
+ - pathology
15
+ - histology
16
+ - computational-pathology
17
+ - digital-pathology
18
+ - TCGA
19
+ - pan-cancer
20
+ - morphometrics
21
+ - cell-segmentation
22
+ - survival-analysis
23
+ - biomarkers
24
+ - oncology
25
+ pretty_name: "HistoAtlas: Pan-Cancer Histomics from TCGA"
26
+ configs:
27
+ - config_name: default
28
+ data_files:
29
+ - split: train
30
+ path: data.parquet
31
+ dataset_info:
32
+ features:
33
+ - name: cancer_type
34
+ dtype: string
35
+ - name: slide_name
36
+ dtype: string
37
+ splits:
38
+ - name: train
39
+ num_examples: 6745
40
+ ---
41
+
42
+ <div align="center">
43
+
44
+ # HistoAtlas: Pan-Cancer Quantitative Histomics
45
+
46
+ ### 38 interpretable morphometric features from 6,745 TCGA diagnostic H&E slides across 21 solid-tumor cancer types
47
+
48
+ [![arXiv](https://img.shields.io/badge/arXiv-2603.16587-b31b1b.svg)](https://arxiv.org/abs/2603.16587)
49
+ [![Website](https://img.shields.io/badge/Web_Atlas-histoatlas.com-blue.svg)](https://histoatlas.com)
50
+ [![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC_BY--NC_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc/4.0/)
51
+ [![GitHub](https://img.shields.io/badge/GitHub-histoatlas-181717.svg?logo=github)](https://github.com/histoatlas/histoatlas)
52
+
53
+ <img src="images/pipeline_overview.png" alt="HistoAtlas Pipeline" width="800"/>
54
+
55
+ *From raw H&E whole-slide images to quantitative histomics: tissue and cell segmentation, compartment-resolved feature extraction, pan-cancer statistical analysis, and an interactive web atlas.*
56
+
57
+ </div>
58
+
59
+ ---
60
+
61
+ ## Overview
62
+
63
+ **HistoAtlas** is a pan-cancer computational histopathology atlas that quantifies tumor morphology from routine H&E-stained diagnostic whole-slide images. This dataset contains **38 interpretable, compartment-resolved histomic features** extracted from **6,745 TCGA slides** spanning **21 solid-tumor cancer types**, representing 6,745 unique patients.
64
+
65
+ Each feature captures a specific, biologically interpretable aspect of tumor architecture: tissue composition, cell densities, nuclear morphology, spatial organization of immune and stromal cells, and intra-tumoral heterogeneity. Features are computed from automated tissue and cell segmentation at single-cell resolution, then aggregated at the slide level.
66
+
67
+ The full precomputed statistical analysis (survival associations, molecular correlations, mutation associations, morphological clusters) is available through the [interactive web atlas](https://histoatlas.com) and the companion [arXiv paper](https://arxiv.org/abs/2603.16587).
68
+
69
+ ---
70
+
71
+ ## Dataset Description
72
+
73
+ ### Source Data
74
+
75
+ Formalin-fixed, paraffin-embedded (FFPE) H&E-stained diagnostic whole-slide images were obtained from [The Cancer Genome Atlas (TCGA)](https://portal.gdc.cancer.gov/) via the Genomic Data Commons (GDC) portal. One slide per patient was retained (primary tumor diagnostic slide with the largest tissue area), yielding 6,745 slides across 6,745 unique patients.
76
+
77
+ **Inclusion criteria:**
78
+ - Viable tissue area above 1 mm^2
79
+ - No severe processing artifacts (pen marks covering >20% of tissue, out-of-focus regions)
80
+ - Essential clinical metadata available (vital status, follow-up time)
81
+
82
+ **Twelve additional TCGA cancer types were excluded** because their dominant cell morphologies fall outside the training domain of the cell detection model.
83
+
84
+ ### Segmentation Pipeline
85
+
86
+ Feature extraction used a two-stage segmentation pipeline:
87
+
88
+ 1. **Tissue segmentation**: A CellViT-inspired architecture ([Horst et al., 2024](https://doi.org/10.1016/j.media.2024.103143)) with a [Phikon](https://arxiv.org/abs/2310.07033) self-supervised ViT-B backbone, trained on the [PanopTILs](https://doi.org/10.1016/j.media.2024.103191) crowdsourced annotation dataset. Inference at 0.5 um/px on 224x224 pixel tiles classified each region into five effective tissue compartments: cancerous epithelium, stroma, necrosis, normal epithelium, and blood.
89
+
90
+ 2. **Cell segmentation and classification**: The [HistoPLUS model](https://arxiv.org/abs/2508.09926) detected and classified individual cells into nine morphological types: tumor cells, lymphocytes, fibroblasts, plasmocytes, neutrophils, eosinophils, red blood cells, apoptotic bodies, and mitotic figures. Inference at 40x magnification (0.25 um/px) with overlap deduplication via a union-find algorithm.
91
+
92
+ ### Spatial Feature Computation
93
+
94
+ All spatial features were computed on compartment masks resampled to 8 um/px. Five spatial bands were defined using the signed Euclidean distance transform from the tumor boundary:
95
+
96
+ | Band | Definition | Distance |
97
+ |------|-----------|----------|
98
+ | Tumor front | Outer rim of tumor | 0-50 um inside tumor boundary |
99
+ | Tumor core | Deep tumor interior | >50 um inside |
100
+ | Peritumoral stroma (near) | Stroma adjacent to tumor | 0-50 um outside |
101
+ | Peritumoral stroma (far) | Distant stroma | 50-200 um outside |
102
+ | Necrosis ring | Perinecrotic zone | 0-100 um from necrosis |
103
+
104
+ <div align="center">
105
+ <img src="images/fig6_spatial_explainability.png" alt="Spatial explainability" width="700"/>
106
+
107
+ *Spatial interpretability: tissue compartment maps, top-scoring tiles with cell-type overlays, and the link between spatial features and survival associations.*
108
+ </div>
109
+
110
+ ---
111
+
112
+ ## Cancer Types
113
+
114
+ | Code | Cancer Type | N slides |
115
+ |------|------------|----------|
116
+ | BRCA | Breast invasive carcinoma | 1,037 |
117
+ | LUAD | Lung adenocarcinoma | 511 |
118
+ | THCA | Thyroid carcinoma | 473 |
119
+ | HNSC | Head and neck squamous cell carcinoma | 471 |
120
+ | UCEC | Uterine corpus endometrial carcinoma | 459 |
121
+ | COAD | Colon adenocarcinoma | 441 |
122
+ | BLCA | Bladder urothelial carcinoma | 417 |
123
+ | STAD | Stomach adenocarcinoma | 400 |
124
+ | LIHC | Liver hepatocellular carcinoma | 365 |
125
+ | LUSC | Lung squamous cell carcinoma | 357 |
126
+ | PRAD | Prostate adenocarcinoma | 353 |
127
+ | CESC | Cervical squamous cell carcinoma | 279 |
128
+ | ACC | Adrenocortical carcinoma | 227 |
129
+ | THYM | Thymoma | 180 |
130
+ | ESCA | Esophageal carcinoma | 158 |
131
+ | READ | Rectum adenocarcinoma | 157 |
132
+ | PAAD | Pancreatic adenocarcinoma | 146 |
133
+ | OV | Ovarian serous cystadenocarcinoma | 107 |
134
+ | UCS | Uterine carcinosarcoma | 87 |
135
+ | MESO | Mesothelioma | 82 |
136
+ | CHOL | Cholangiocarcinoma | 38 |
137
+ | **Total** | | **6,745** |
138
+
139
+ ---
140
+
141
+ ## Features
142
+
143
+ Each slide has 51 `*_value` columns (quantitative measurements) and 51 matching `*_status` columns (QC flags: `"ok"`, `"warn"`, or `"fail"`). The 38 core histomic features are organized into five categories:
144
+
145
+ ### Tissue Composition (7 features)
146
+ | Feature | Description |
147
+ |---------|-------------|
148
+ | `tumor_area_fraction` | Fraction of tissue area classified as cancerous epithelium |
149
+ | `stroma_area_fraction` | Fraction of tissue area classified as stroma |
150
+ | `normal_epithelium_area_fraction` | Fraction classified as normal epithelium |
151
+ | `tumor_front_fraction` | Proportion of tumor area within the 0-50 um front band |
152
+ | `largest_tumor_component_share` | Share of total tumor area in the largest connected component |
153
+ | `tumor_region_solidity` | Convex hull solidity of the tumor mask |
154
+ | `tissue_coverage` | Fraction of the slide covered by tissue |
155
+
156
+ ### Cell Densities (6 features)
157
+ | Feature | Description |
158
+ |---------|-------------|
159
+ | `intratumoral_lymphocyte_density` | Lymphocyte count per mm^2 within tumor epithelium |
160
+ | `stromal_lymphocyte_density` | Lymphocyte count per mm^2 within stroma |
161
+ | `intratumoral_cancer_cell_density` | Cancer cell count per mm^2 within tumor |
162
+ | `fibroblast_density_stroma` | Fibroblast count per mm^2 within stroma |
163
+ | `intratumoral_eosinophil_density` | Eosinophil count per mm^2 within tumor |
164
+ | `intratumoral_neutrophil_density` | Neutrophil count per mm^2 within tumor |
165
+
166
+ ### Nuclear Morphology and Kinetics (8 features)
167
+ | Feature | Description |
168
+ |---------|-------------|
169
+ | `tumor_nuclear_area_median` | Median nuclear area of tumor cells (um^2) |
170
+ | `tumor_nuclear_eccentricity_median` | Median nuclear eccentricity (0 = circle, 1 = line) |
171
+ | `tumor_nuclear_irregularity_median` | Median nuclear contour irregularity |
172
+ | `tumor_nuclear_irregularity_iqr` | IQR of nuclear irregularity (morphological heterogeneity) |
173
+ | `tumor_pleomorphism_index` | Composite nuclear pleomorphism score |
174
+ | `mitotic_index_tumor` | Mitotic figure count per mm^2 of tumor |
175
+ | `apoptotic_index_tumor` | Apoptotic body count per mm^2 of tumor |
176
+ | `apoptosis_mitosis_ratio_tumor` | Ratio of apoptotic to mitotic events |
177
+
178
+ ### Spatial Organization (18 features)
179
+ | Feature | Description |
180
+ |---------|-------------|
181
+ | `lymphocyte_infiltration_ratio_front` | Lymphocyte density ratio: tumor front vs. core |
182
+ | `myeloid_infiltration_ratio_front` | Myeloid cell density ratio: tumor front vs. core |
183
+ | `tumor_lymphocyte_nn_distance_front` | Mean nearest-neighbor distance from tumor cells to lymphocytes at the front |
184
+ | `tumor_fibroblast_coupling_front` | Fibroblast density ratio at the tumor front |
185
+ | `tumor_stroma_interface_density` | Length of tumor-stroma boundary per unit tumor area |
186
+ | `interface_normalized_immune_pressure` | Immune cell density normalized by interface length |
187
+ | `invasion_depth_p75` | 75th percentile of tumor invasion depth (um) |
188
+ | `peritumoral_immune_richness` | Shannon diversity of immune cell types in peritumoral stroma |
189
+ | `peritumoral_fibroblast_enrichment` | Fibroblast enrichment in peritumoral vs. distal stroma |
190
+ | `immune_desert_fraction` | Fraction of tumor area devoid of immune cells |
191
+ | `deep_intratumoral_lymphocyte_fraction` | Fraction of intratumoral lymphocytes in tumor core (>50 um) |
192
+ | `fibroblast_lymphocyte_proximity_stroma` | Mean distance between fibroblasts and lymphocytes in stroma |
193
+ | `intratumoral_myeloid_lymphoid_tilt` | Log-ratio of myeloid to lymphoid cells within tumor |
194
+ | `stromal_inflammatory_tilt` | Log-ratio of inflammatory to fibroblast cells in stroma |
195
+ | `eosinophil_neutrophil_ratio_peritumoral` | Eosinophil-to-neutrophil ratio in peritumoral stroma |
196
+ | `perinecrotic_lymphocyte_enrichment` | Lymphocyte enrichment near necrosis |
197
+ | `perinecrotic_neutrophil_enrichment` | Neutrophil enrichment near necrosis |
198
+ | `perinecrotic_myeloid_tilt` | Myeloid-to-lymphoid tilt near necrosis |
199
+
200
+ ### Spatial Heterogeneity (3 features)
201
+ | Feature | Description |
202
+ |---------|-------------|
203
+ | `lymphocyte_density_heterogeneity_tumor` | Coefficient of variation of lymphocyte density across tumor tiles |
204
+ | `tumor_cell_density_heterogeneity` | Coefficient of variation of cancer cell density across tumor tiles |
205
+ | `stromal_cellularity_heterogeneity` | Coefficient of variation of total cellularity across stroma tiles |
206
+
207
+ ### Additional Features
208
+ | Feature | Description |
209
+ |---------|-------------|
210
+ | `necrosis_in_tumor_fraction` | Fraction of necrosis within tumor regions |
211
+ | `necrosis_heterogeneity` | Spatial heterogeneity of necrosis distribution |
212
+ | `necrosis_rbc_enrichment` | RBC enrichment near necrosis (hemorrhagic necrosis) |
213
+ | `necrosis_contact_fraction_stroma` | Fraction of necrosis boundary in contact with stroma |
214
+ | `tumor_contact_fraction_stroma` | Fraction of tumor boundary in contact with stroma |
215
+ | `tumor_contact_fraction_necrosis` | Fraction of tumor boundary in contact with necrosis |
216
+ | `tumor_contact_fraction_normal` | Fraction of tumor boundary in contact with normal epithelium |
217
+ | `tumor_necrosis_proximity` | Mean distance from tumor to nearest necrosis |
218
+ | `artifact_fraction` | Fraction of tissue area flagged as artifact |
219
+
220
+ ---
221
+
222
+ ## Key Findings
223
+
224
+ <div align="center">
225
+ <img src="images/fig1_atlas_overview.png" alt="Atlas overview" width="800"/>
226
+
227
+ *HistoAtlas overview: (a) pipeline, (b) feature correlation structure, (c) UMAP embedding colored by cancer type, (d) morphological cluster composition, (e) cluster feature profiles.*
228
+ </div>
229
+
230
+ <br/>
231
+
232
+ <div align="center">
233
+ <img src="images/fig2_survival_correlations.png" alt="Survival and molecular correlations" width="650"/>
234
+
235
+ *Survival and molecular associations: (a) pan-cancer forest plot of immune density hazard ratios, (b) Kaplan-Meier curves in BRCA, (c-d) gene expression correlations.*
236
+ </div>
237
+
238
+ <br/>
239
+
240
+ <div align="center">
241
+ <img src="images/fig3_pathway_associations.png" alt="Pathway associations" width="650"/>
242
+
243
+ *Pathway-level associations: (a) heatmap of mean Spearman correlations between Hallmark pathways and histomic features, (b) distribution of significant associations across molecular data types.*
244
+ </div>
245
+
246
+ ---
247
+
248
+ ## Usage
249
+
250
+ ```python
251
+ import pandas as pd
252
+
253
+ # Load the dataset
254
+ df = pd.read_parquet("hf://datasets/PABannier/HistoAtlas/data.parquet")
255
+
256
+ print(f"Shape: {df.shape}") # (6745, 106)
257
+ print(f"Cancer types: {df['cancer_type'].nunique()}") # 21
258
+
259
+ # Get feature values for a specific cancer type
260
+ brca = df[df["cancer_type"] == "BRCA"]
261
+ print(f"BRCA slides: {len(brca)}") # 1037
262
+
263
+ # Extract all value columns (quantitative measurements)
264
+ value_cols = [c for c in df.columns if c.endswith("_value")]
265
+ features = df[["cancer_type", "slide_name"] + value_cols]
266
+
267
+ # Check QC status for a feature
268
+ ok_mask = df["intratumoral_lymphocyte_density_status"] == "ok"
269
+ print(f"Slides with OK lymphocyte density: {ok_mask.sum()}")
270
+ ```
271
+
272
+ ### With Hugging Face `datasets`
273
+
274
+ ```python
275
+ from datasets import load_dataset
276
+
277
+ dataset = load_dataset("PABannier/HistoAtlas")
278
+ df = dataset["train"].to_pandas()
279
+ ```
280
+
281
+ ### Linking to TCGA Clinical and Molecular Data
282
+
283
+ Slide names follow the TCGA barcode convention. Extract the case barcode (first 12 characters) to match with clinical, genomic, and transcriptomic data:
284
+
285
+ ```python
286
+ # Extract TCGA case barcode for linking
287
+ df["case_id"] = df["slide_name"].str[:12]
288
+
289
+ # Now join with TCGA-CDR clinical data, MC3 mutations, RNA-seq, etc.
290
+ ```
291
+
292
+ ---
293
+
294
+ ## Preprocessing Notes
295
+
296
+ The values in this dataset are **raw (untransformed)** measurements. The statistical analyses in the paper applied the following preprocessing:
297
+
298
+ 1. **Log-transform**: 22 features with heavy right-skew were transformed using log(1 + x)
299
+ 2. **Winsorization**: All features clipped at the 0.5th and 99.5th percentiles (pan-cohort)
300
+ 3. **Z-score standardization**: Zero mean, unit variance (scope varies by analysis)
301
+
302
+ The `*_status` columns encode per-slide QC flags:
303
+ - `"ok"`: Feature passed all quality checks
304
+ - `"warn"`: Minor quality concern (e.g., small compartment area)
305
+ - `"fail"`: Feature unreliable for this slide (e.g., insufficient tumor area)
306
+
307
+ ---
308
+
309
+ ## Validation
310
+
311
+ Independent validation was performed on 1,095 CPTAC slides from 817 cases across five matched cancer types (BRCA, COAD, LUAD, LUSC, UCEC):
312
+ - 4/5 cancer-type matches passed feature-level concordance
313
+ - Prespecified histomic-transcriptomic associations replicated in direction (10/10) and significance (9/10)
314
+ - Matched mRNA-protein associations were directionally concordant in 98.8% of doubly-significant pairs
315
+
316
+ ---
317
+
318
+ ## Citation
319
+
320
+ If you use this dataset, please cite:
321
+
322
+ ```bibtex
323
+ @article{bannier2025histoatlas,
324
+ title={HistoAtlas: a pan-cancer histomics atlas linking quantitative tissue morphology to transcriptomic programs, somatic alterations, and clinical outcomes},
325
+ author={Bannier, Pierre-Antoine},
326
+ journal={arXiv preprint arXiv:2603.16587},
327
+ year={2025},
328
+ url={https://arxiv.org/abs/2603.16587}
329
+ }
330
+ ```
331
+
332
+ ---
333
+
334
+ ## Links
335
+
336
+ - **Interactive Web Atlas**: [histoatlas.com](https://histoatlas.com)
337
+ - **Paper**: [arXiv:2603.16587](https://arxiv.org/abs/2603.16587)
338
+ - **Code**: [github.com/histoatlas/histoatlas](https://github.com/histoatlas/histoatlas)
339
+
340
+ ---
341
+
342
+ ## License
343
+
344
+ This dataset is released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). The underlying TCGA whole-slide images are governed by [GDC Data Use Policies](https://gdc.cancer.gov/access-data/data-access-policies).
data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9be3e4211f92896f47394be5cc38f40b69c9bf89a9f27e5030b07123e116288d
3
+ size 2755403
images/fig1_atlas_overview.png ADDED

Git LFS Details

  • SHA256: 0dc5c7df78cfb7ed27adf2a35a1c51a0962398ccaf7c916768a0df02d2931838
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
images/fig2_survival_correlations.png ADDED

Git LFS Details

  • SHA256: 7702415a4f99b40198e7855a31d65b53b0b5ff96aca5f88370b498f07f899da2
  • Pointer size: 131 Bytes
  • Size of remote file: 373 kB
images/fig3_pathway_associations.png ADDED

Git LFS Details

  • SHA256: 52cb4e31180686f024a3a4a1766755c27b6687ba198b31b2d16797e1224b7e07
  • Pointer size: 131 Bytes
  • Size of remote file: 375 kB
images/fig6_spatial_explainability.png ADDED

Git LFS Details

  • SHA256: 0c79fed3f24db80ee3921d10c2e93f3a832fd1fe73c8057a9266ed04555eee11
  • Pointer size: 132 Bytes
  • Size of remote file: 2.01 MB
images/pipeline_overview.png ADDED

Git LFS Details

  • SHA256: 081e81662a6376aac078dc993c2c6446206755f02fa6ec23c8d3baea82e79672
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB