tjusto2409 Angelou0516 commited on
Commit
121baeb
·
0 Parent(s):

Duplicate from MedOtter/IGNITE

Browse files

Co-authored-by: Ange Lou <Angelou0516@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp filter=lfs diff=lfs merge=lfs -text
58
+ # Video files - compressed
59
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ *.webm filter=lfs diff=lfs merge=lfs -text
61
+ coco/pdl1_annotations.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ task_categories:
4
+ - image-segmentation
5
+ - object-detection
6
+ language:
7
+ - en
8
+ tags:
9
+ - medical
10
+ - pathology
11
+ - histopathology
12
+ - h-and-e
13
+ - pd-l1
14
+ - lung
15
+ - nsclc
16
+ - ignite
17
+ size_categories:
18
+ - n<1K
19
+ configs:
20
+ - config_name: he
21
+ data_files:
22
+ - split: train
23
+ path: he/train-*
24
+ - split: test
25
+ path: he/test-*
26
+ - config_name: pdl1
27
+ data_files:
28
+ - split: train
29
+ path: pdl1/train-*
30
+ - split: validation
31
+ path: pdl1/validation-*
32
+ - split: test
33
+ path: pdl1/test-*
34
+ - config_name: nuclei
35
+ data_files:
36
+ - split: train
37
+ path: nuclei/train-*
38
+ - split: validation
39
+ path: nuclei/validation-*
40
+ - split: test
41
+ path: nuclei/test-*
42
+ ---
43
+
44
+ # IGNITE Data Toolkit (mirror)
45
+
46
+ Mirror of the **IGNITE Data Toolkit** by Spronck et al. (Radboud UMC),
47
+ originally distributed on [Zenodo (10.5281/zenodo.15674785)](https://zenodo.org/records/15674785)
48
+ and accompanied by [DIAGNijmegen/ignite-data-toolkit](https://github.com/DIAGNijmegen/ignite-data-toolkit).
49
+ The dataset accompanies *"A tissue and cell-level annotated H&E and PD-L1 histopathology image
50
+ dataset in non-small cell lung cancer"* ([arXiv:2507.16855](https://arxiv.org/abs/2507.16855)).
51
+
52
+ **License:** [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) -
53
+ non-commercial, share-alike. Attribution to the original authors is required.
54
+
55
+ ## Contents
56
+
57
+ 155 unique patients, 887 fully annotated regions of interest from a multi-stain,
58
+ multi-centric, multi-scanner cohort (Radboud UMC, Sacro Cuore Don Calabria, TCGA-LUAD/LUSC).
59
+ The release splits into three task-defined subsets, exposed here as named configs:
60
+
61
+ | Config | Task | ROIs |
62
+ |----------|---------------------------------------|-----:|
63
+ | `he` | H&E tissue compartment segmentation | 408 |
64
+ | `pdl1` | PD-L1+ tumor cell detection | 344 |
65
+ | `nuclei` | PD-L1 IHC nuclei detection | 135 |
66
+
67
+ ## H&E tissue segmentation (`he` config)
68
+
69
+ Splits follow `data_overview.csv`:
70
+
71
+ | Split | ROIs | Notes |
72
+ |-------|-----:|------------------------------------------------------------------|
73
+ | train | 269 | Train pool — paper uses 5-fold CV via the `validation_fold` col. |
74
+ | test | 139 | Held-out evaluation set (62 TCGA + 77 Radboud ROIs). |
75
+
76
+ Each row is **one ROI** with paired image/mask in two field-of-view variants:
77
+
78
+ | Column | Type | Description |
79
+ |------------------------|---------|--------------------------------------------------------------|
80
+ | `image` | `Image` | Base ROI (inner annotated region only) |
81
+ | `mask` | `Image` | 16-class pixel mask aligned to `image` |
82
+ | `image_with_context` | `Image` | Same ROI extended to a 1792x1792 view (annotated context) |
83
+ | `mask_with_context` | `Image` | 16-class pixel mask aligned to `image_with_context` |
84
+ | `validation_fold` | string | 5-fold CV assignment (`fold0`..`fold4`); empty for test rows |
85
+ | `patient_id` | int32 | Patient identifier |
86
+ | `roi_id` | int32 | ROI index within patient |
87
+ | `name` | string | `patient<id>_he_roi<idx>` (matches the original release) |
88
+ | `source` | string | `rumc`, `scdc`, or `tcga` |
89
+ | `specimen_type` | string | `resection`, `biopsy`, or `tissue_microarray` |
90
+ | `organ` | string | Anatomical site (lung, liver, bone, brain, ...) |
91
+ | `histological_subtype` | string | `adenocarcinoma`, `squamous_cell_carcinoma`, ... |
92
+ | `stain` | string | Always `H&E` for this config |
93
+ | `scanner` | string | WSI scanner model |
94
+ | `shape` | string | Original `(height, width)` tuple as a string |
95
+ | `area_mm2` | float32 | Annotated tissue area in mm^2 |
96
+ | `original_tcga_id` | string | TCGA case ID for TCGA-sourced ROIs (empty otherwise) |
97
+
98
+ Labels (also shipped as `he_label_map.json`):
99
+
100
+ | ID | Class | ID | Class |
101
+ |---:|----------------------|---:|----------------------|
102
+ | 0 | Unannotated | 9 | Erythrocytes |
103
+ | 1 | Background | 10 | Bronchial epithelium |
104
+ | 2 | Tumor epithelium | 11 | Mucus/Plasma/Fluids |
105
+ | 3 | Reactive epithelium | 12 | Cartilage/Bone |
106
+ | 4 | Stroma | 13 | Macrophages |
107
+ | 5 | Inflammation | 14 | Muscle |
108
+ | 6 | Alveolar tissue | 15 | Liver |
109
+ | 7 | Fatty tissue | 16 | Keratinization |
110
+ | 8 | Necrotic tissue | | |
111
+
112
+ The paper's evaluation pipeline treats class `0` ("Unannotated", i.e. surrounding context
113
+ in `_with_context` masks) as an **ignore label** during Dice/IoU computation. Downstream
114
+ loaders should mirror that to reproduce paper-comparable scores.
115
+
116
+ > **Mirror-specific note:** In the original Zenodo release, base ROI masks (the inner-crop view)
117
+ > store class label `L` as the byte value `(256 - L) mod 256` (e.g. label 4 -> byte 252).
118
+ > The `_with_context` masks already store labels directly. In this HuggingFace mirror **both
119
+ > `mask` and `mask_with_context` are written with the canonical 0..16 labels** - base masks were
120
+ > pre-decoded during upload, so downstream code does not need to handle the encoding quirk.
121
+
122
+ The paper recommends training-time 5-fold CV via the `validation_fold` column on the `train`
123
+ split, and reports final numbers on the held-out `test` split.
124
+
125
+ ## PD-L1 / nuclei detection (`pdl1`, `nuclei` configs)
126
+
127
+ These configs hold images plus per-image metadata only (same columns as `he` except no
128
+ `mask`/`_with_context` fields and no `validation_fold`). The detection ground truth is
129
+ in **MS-COCO JSON** format and is shipped as raw sidecar files because COCO-style nested
130
+ annotations are a poor fit for columnar parquet:
131
+
132
+ | Path | Subset | Notes |
133
+ |-------------------------------------|--------|--------------------------------------------|
134
+ | `coco/pdl1_annotations.json` | pdl1 | Main annotations |
135
+ | `coco/pdl1_test_set_all_readers.json` | pdl1 | Multi-reader test set |
136
+ | `coco/nuclei_annotations.json` | nuclei | Main annotations |
137
+ | `coco/nuclei_test_set_all_readers.json` | nuclei | Multi-reader test set |
138
+
139
+ Use the row's `name` field (== `image_id` in COCO `images[*].file_name = "<name>.png"`)
140
+ to look up bounding-box / point annotations.
141
+
142
+ Splits follow `data_overview.csv` directly (no fold column for the detection tasks).
143
+
144
+ ## Loading
145
+
146
+ ```python
147
+ from datasets import load_dataset
148
+
149
+ # H&E tissue segmentation
150
+ he_train = load_dataset("Angelou0516/IGNITE", "he", split="train") # 269 ROIs
151
+ he_test = load_dataset("Angelou0516/IGNITE", "he", split="test") # 139 ROIs
152
+ print(he_test[0]["mask_with_context"]) # PIL Image L-mode, labels 0..16
153
+
154
+ # PD-L1+ tumor cell detection
155
+ pdl1 = load_dataset("Angelou0516/IGNITE", "pdl1")
156
+
157
+ # PD-L1 IHC nuclei detection
158
+ nuc = load_dataset("Angelou0516/IGNITE", "nuclei")
159
+ ```
160
+
161
+ For detection COCO annotations, download the JSON sidecars with `huggingface_hub.hf_hub_download`.
162
+
163
+ ## Sidecar files (raw)
164
+
165
+ - `he_label_map.json` — class id -> name
166
+ - `data_overview.csv` — per-ROI metadata (887 rows x 17 cols), authoritative for splits / folds
167
+ - `coco/*.json` — detection annotations (4 files, see table above)
168
+
169
+ ## Citation
170
+
171
+ ```bibtex
172
+ @article{Spronck2025ignite,
173
+ title = {A tissue and cell-level annotated H\&E and PD-L1 histopathology image dataset in non-small cell lung cancer},
174
+ author = {Spronck, Joey and van Eekelen, Leander and van Midden, Dominique and others},
175
+ journal = {arXiv preprint arXiv:2507.16855},
176
+ year = {2025},
177
+ doi = {10.48550/arXiv.2507.16855}
178
+ }
179
+ ```
180
+
181
+ Mirror maintained by `Angelou0516`. For the official authoritative release see the
182
+ [Zenodo record](https://zenodo.org/records/15674785) and
183
+ [GitHub toolkit](https://github.com/DIAGNijmegen/ignite-data-toolkit).
coco/nuclei_annotations.json ADDED
The diff for this file is too large to render. See raw diff
 
coco/nuclei_test_set_all_readers.json ADDED
The diff for this file is too large to render. See raw diff
 
coco/pdl1_annotations.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22b03260f7822cbbcf6f2cea4e5eac4bd41726a8f41eeb7cbb32e6a7f91e2416
3
+ size 75547931
coco/pdl1_test_set_all_readers.json ADDED
The diff for this file is too large to render. See raw diff
 
data_overview.csv ADDED
The diff for this file is too large to render. See raw diff
 
he/test-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d63f0986e3e0ce41df1882fba7d65dd07a8964f0e53536efe896e13eba24c5e6
3
+ size 393258091
he/test-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07099d1a012a9c16341c11b04ee2c8129a3fa982f0113123ebf93f1d7580a65c
3
+ size 448148304
he/test-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a074c24a8e5ec1ff2aa58365849430245027378e9029863f3ea3dacd5cd73808
3
+ size 421833365
he/train-00000-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51698091e009c50be83aceee90e6969784d7662c6e7df883ca2603ab4ca61710
3
+ size 459923750
he/train-00001-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dadd60f6299ae3e933d8d13cab5e1658e11e1de532396f4ed1ef9332aedcbde
3
+ size 316359528
he/train-00002-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3a97b91e9637869a834e34555c55f3360731b416ed4584aa033a7171c9a0305
3
+ size 518248750
he/train-00003-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b9db2a3b67669f6898048d8d1b7466a0781df099526bb94188603f09c5c2894
3
+ size 552487638
he/train-00004-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8fe843bac56063da4e889292833438222f0895c045db27b0d5274ba4a0312c6
3
+ size 427349125
he/train-00005-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeebe37c62dd46a90f9d0802a322206cf8897d1b9b0e4dfff9653acb810630eb
3
+ size 426476448
he_label_map.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Unannotated": 0,
3
+ "Background": 1,
4
+ "Tumor epithelium": 2,
5
+ "Reactive epithelium": 3,
6
+ "Stroma": 4,
7
+ "Inflammation": 5,
8
+ "Alveolar tissue": 6,
9
+ "Fatty tissue": 7,
10
+ "Necrotic tissue": 8,
11
+ "Erythrocytes": 9,
12
+ "Bronchial epithelium": 10,
13
+ "Mucus/Plasma/Fluids": 11,
14
+ "Cartilage/Bone": 12,
15
+ "Macrophages": 13,
16
+ "Muscle": 14,
17
+ "Liver": 15,
18
+ "Keratinization": 16
19
+ }
nuclei/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94aef4c6cb8ddd64a50c3e35b7002fb968f2a49586486f816545645696eca90a
3
+ size 65054802
nuclei/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d29a5b80537baa27343bfc3cf9c704b458e91edfda848fc9e1d124397e6e946
3
+ size 96943407
nuclei/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d209ce71d3a94fd16f3cfe8c2711da0a9859e709b2d71d0d15e50cbd95f6f8b6
3
+ size 55696215
pdl1/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3f11ca8cafaa64292dc788d458725897b64aef9832482d68ab9ce995372643b
3
+ size 51003907
pdl1/train-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f8ee57f9cb9a22d87a3c67f3c5d93f41e11c788b1b874d2dfbab866c05ad2e6
3
+ size 181290720
pdl1/train-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85e3118d89a67faf5858b5b530e46e9593810b803417004c8aebdddca947b1d6
3
+ size 395953072
pdl1/train-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbb53a654daa0e131ef8cbf8f4c140cde2baac9098402adb874b9904b1eb6f88
3
+ size 480772135
pdl1/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9bea268018fd8a77425cb93562d88f4b936b7424b80f9bee704eeb0e699f6d8
3
+ size 483051597