Dataset Viewer
Auto-converted to Parquet Duplicate
id
string
image
unknown
inst
unknown
type
unknown
sem
unknown
core_id
string
patient_id
string
source_split
string
x
int32
y
int32
mpp
float64
partial_instance_ids
list
quality_status
string
human_training_approved
bool
ignored_regions
list
skip_training
bool
source_license
string
source_mask_kind
string
he_valid
unknown
mask_valid
unknown
type_proposed
unknown
source_region
string
original_patient_id
string
missing_he_pixels
int32
missing_mask_pixels
int32
haist2026lymph_dngazixb_0000_x0_y0
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nKz9aZrsRpKmC4qKTgDM3Q8ZkUNV35X09vpPb/R2TRF(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfcElEQVR4nO2d63Lbyo6FxZiek3Iq8tmiz/s/4IiciVzbO1OWrSl(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
0
0
0.37744
[ 7, 29, 84, 217, 420, 486, 615, 648, 702, 733, 814, 876, 877, 887, 893, 899, 900, 906, 909, 910, 913, 918 ]
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE4klEQVR4nO3SsQ0AIBADMZ79h2YCaiTObtOkuFk3c134yH59gLc(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfcElEQVR4nO2d63Lbyo6FxZiek3Iq8tmiz/s/4IiciVzbO1OWrSl(...TRUNCATED)
521_S1reg003
1764
12,800
0
haist2026lymph_dngazixb_0000_x256_y0
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nDT965YkR5LfCYro1cw8IhMooLqb5Jx9p32//bRvtkM(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfLElEQVR4nO2dfXeruo7GIWXPdHpXc+7A/v6fcJM5h87K3XfalFl(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
256
0
0.37744
[23,85,88,100,142,164,211,240,262,316,322,367,395,400,434,468,543,554,642,738,757,796,825,827,880,88(...TRUNCATED)
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfLElEQVR4nO2dfXeruo7GIWXPdHpXc+7A/v6fcJM5h87K3XfalFl(...TRUNCATED)
521_S1reg003
1764
0
0
haist2026lymph_dngazixb_0000_x512_y0
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nDT96ZYkSZKejYmKbmbuEZGZVdULgOHHf/zF2+Etklf(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAgSElEQVR4nO2dbXPbOo+GpVQ52yc7dZ+Vsv//D0baU2cn09km8U6(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
512
0
0.37744
[7,29,41,84,140,177,205,217,284,420,486,544,591,615,645,648,702,733,814,877,878,880,882,888,889,894,(...TRUNCATED)
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAgSElEQVR4nO2dbXPbOo+GpVQ52yc7dZ+Vsv//D0baU2cn09km8U6(...TRUNCATED)
521_S1reg003
1764
0
0
haist2026lymph_dngazixb_0000_x768_y0
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nDT92ZYk2XLfjZnZntwjIrOGPgNAgJQuJF3pWfR8utC(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfnUlEQVR4nO2dDXPjOI6GrbEyVeuddV9Zuf//By1XxTOb25o4ras(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
768
0
0.37744
[74,85,164,211,240,244,316,326,434,446,488,543,616,675,728,757,768,796,798,827,869,878,882,883,884,8(...TRUNCATED)
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfnUlEQVR4nO2dDXPjOI6GrbEyVeuddV9Zuf//By1XxTOb25o4ras(...TRUNCATED)
521_S1reg003
1764
0
0
haist2026lymph_dngazixb_0000_x1024_y0
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nDT96ZIkW3ImiOlyFjNzj8jlLlUFFIBeZoZ/yPfii/E(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAf/0lEQVR4nO2d7XIbOc6Fu9ftTEqbUbYk3/8VWqqKNq92aiyl35K(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
1,024
0
0.37744
[41,140,173,177,205,245,259,284,363,397,458,513,544,583,591,645,646,679,742,772,790,820,871,883,884,(...TRUNCATED)
usable
true
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAf6UlEQVR4nO2dfXMiua7Gu086u1ucWeYW5Pt/wRuoGs5cztYGpm9(...TRUNCATED)
521_S1reg003
1764
0
0
haist2026lymph_dngazixb_0000_x1280_y0
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nCz92ZYk2ZIdiInIGVXVzN0jIjPvUIUqDIVGP7Cf+A3(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAghElEQVR4nO2dbZPiSK6F8cW1M8v00BGw9f9/YA1EDN3LdGxB+Aa(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
1,280
0
0.37744
[57,74,161,244,297,326,365,446,488,606,616,675,708,728,768,777,798,805,845,869,885,896,897,898,904,9(...TRUNCATED)
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAgg0lEQVR4nO2d7ZLiSM6F8Ytrp5eZoSNg6/4vsAYihu6X6dgy4Q2(...TRUNCATED)
521_S1reg003
1764
0
0
haist2026lymph_dngazixb_0000_x1408_y0
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nCz92ZIkWXItiqlu3YMN7h4RmVlVXY3GdIA7UCj3id/(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfSUlEQVR4nO2df5PaTI7H7aNnLzub4qmCzb3/9zeBqnC5eVIbU74(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
1,408
0
0.37744
[ 13, 291, 336, 383, 416, 509, 552, 587, 711, 741, 769, 832, 873, 885, 892, 898, 904, 908, 911, 912, 915, 916, 917 ]
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3UlEQVR4nO3SMQEAIAzAMIZ/zyBjRxMFPTpzCHt3u4BdBogzQJw(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAfQUlEQVR4nO2dbXPiSo+G7aWzO092ilNlntn///9yoGrYqZypjSl(...TRUNCATED)
521_S1reg003
1764
0
512
haist2026lymph_dngazixb_0000_x0_y256
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nKz96ZIkSXLnCTLLqWrm7hGRRxWAnquJhvZN96X2EfY(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAeoklEQVR4nO2dC3PbuM6GpVj7tZNO3V3Z5///wGNpvzrTbHdy8Zn(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
0
256
0.37744
[460,463,468,472,479,484,485,486,490,500,503,615,648,702,733,814,877,992,1047,1086,1128,1213,1250,12(...TRUNCATED)
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE4klEQVR4nO3SsQ0AIBADMZ79h2YCaiTObtOkuFk3c134yH59gLc(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAeoklEQVR4nO2dC3PbuM6GpVj7tZNO3V3Z5///wGNpvzrTbHdy8Zn(...TRUNCATED)
521_S1reg003
1764
12,800
0
haist2026lymph_dngazixb_0000_x256_y256
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nGz9aZokSXKmCTITbyKiambuHhGZQKP6EnOvPsccc56(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAeH0lEQVR4nO2di3LjOK6GpbZyJpOt9u7IPe//gKetqVZqPL0ndnT(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
256
256
0.37744
[464,468,469,472,485,486,490,492,503,504,543,554,642,738,757,796,825,827,902,927,1033,1046,1092,1127(...TRUNCATED)
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAeH0lEQVR4nO2di3LjOK6GpbZyJpOt9u7IPe//gKetqVZqPL0ndnT(...TRUNCATED)
521_S1reg003
1764
0
0
haist2026lymph_dngazixb_0000_x512_y256
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nCz9i5IkSZKei5mq3dw9IjOrqrt3dgEc4QOd1+JT8Mk(...TRUNCATED)
"SUkqAAgAAAAOAAABBAABAAAAAAIAAAEBBAABAAAAAAIAAAIBAwABAAAAIAAAAAMBAwABAAAAsoAAAAYBAwABAAAAAQAAAA4BAgA(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAewklEQVR4nO2dbXPjOK6FpURdNZPddt+SMv//B15LNZPszU5VJ61(...TRUNCATED)
null
haist2026lymph_dngazixb_0000
dngazixb
train
512
256
0.37744
[454,464,465,469,473,480,486,487,492,504,505,544,591,615,645,648,702,733,814,877,992,1041,1047,1086,(...TRUNCATED)
unreviewed
null
[]
false
Images/predictions: CC0-1.0; source cell labels: CC-BY-4.0
SPORA VirTues predicted cell regions; original source-cell centroid links
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAE3ElEQVR4nO3SMQEAMAyAsHb+RU9GDxIFHOwOZe86gFsGiDNAnAH(...TRUNCATED)
"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAAAAADRE4smAAAewklEQVR4nO2dbXPjOK6FpURdNZPddt+SMv//B15LNZPszU5VJ61(...TRUNCATED)
521_S1reg003
1764
0
0
End of preview. Expand in Data Studio

Haist HNSCC

H&E images of head-and-neck squamous cell carcinoma and lymph nodes, paired with cell-type labels from the study's CODEX measurements. The selected cohort has 389 tissue regions from 79 patients and 21 source cell types, including tumour, immune, vascular and stromal populations.

The images and SPORA predictions are released under CC0 1.0. The original cell labels are CC BY 4.0; retain attribution when using or sharing this labelled collection. Please credit Haist and colleagues, the original dataset and SPORA. Original contributors: Maximilian Haist, John Hickey.

Images and annotations

There are 13,615 overlapping 512 × 512 RGB crops at 0.37744 µm per pixel. H&E values are unchanged. The original 59-channel CODEX images support the source labels; these H&E crop files do not include the CODEX image stacks.

The cell regions are VirTues predictions supplied by SPORA, rather than the original study's segmentation masks. Source cells are linked by their centres to these predictions. A region gets a cell type when its linked source labels agree. Missing matches and conflicting labels remain unknown (255). More than one source cell can link to a predicted region; the link tables retain those IDs so that merged regions can be identified. The majority alternative is kept in type_proposed for comparison.

The predictions were supplied at 1 µm per pixel and sampled onto the H&E grid. Their outlines therefore have coarser detail than the image. Original prediction IDs and source cell UIDs are kept separately.

Examples: H&E, boundaries, instances and cell types

Splits and quality

The original patient split is preserved: 10,605 training crops from 59 patients and 3,010 test crops from 20 patients. There is no validation split. Crops from one patient stay together; overlapping crops must not be randomly divided into new train and test sets.

Twelve crops were visually reviewed: eleven usable and one excluded. Rejected areas also flag overlapping crops through skip_training. Other crops remain unreviewed; a nearby approval does not approve them. A usable review does not verify every individual cell or label.

he_valid marks available H&E pixels; border-connected zero padding is marked 0. mask_valid marks the available prediction area, including small differences at image edges. Keep both masks when computing losses: use only pixels where both are 1, and ignore 255 for cell-type loss. The image and source cell masks are retained even where supervision should be ignored.

Files

train.parquet and test.parquet contain id, image, inst, type, type_proposed, he_valid, mask_valid, patient/region IDs, crop coordinates and quality flags. Images and uint8 masks are PNG; instance masks are uint32 TIFF. Instance 0 and type 0 are background. sem is empty.

instance-counts.csv lists each crop's instance count and counts for every class. Overlapping crops repeat cells. The totals below count each predicted source instance once per region. class-distribution.csv also records the source-table cell counts. These counts differ because source cells and predicted regions do not have a one-to-one correspondence.

Code Source class Source cells Typed predicted instances
1 B 228,190 142,810
2 CAF 64,599 47,461
3 CD4T 300,728 196,795
4 CD8T 146,245 97,452
5 DC 55,516 31,318
6 FDC 8,700 4,875
7 LEC 17,454 10,503
8 NK 11,908 7,983
9 TFH 4,152 2,761
10 Treg 101,258 69,817
11 VSMC_myofibroblast 13,856 8,732
12 gdT 7,230 4,908
13 granulocyte 37,746 23,508
14 macrophages 104,542 70,300
15 mast 7,649 5,270
16 nerve 868 701
17 plasma 65,347 46,370
18 stromal 128,956 80,638
19 tumor 159,464 137,534
20 tumor_CA9 38,766 32,797
21 vasculature 46,332 28,208
255 Unknown 0 205,147

Instance counts by class

Load and view

from io import BytesIO
import polars as pl
import numpy as np
from PIL import Image
from huggingface_hub import hf_hub_download
import tifffile
import matplotlib.pyplot as plt

path = hf_hub_download(
    repo_id="csmp-hub/haist-hnscc", filename="train.parquet", repo_type="dataset"
)
# Skip crops overlapping rejected areas.
data = (
    pl.scan_parquet(path)
    .filter(~pl.col("skip_training"))
    .limit(1)
    .collect()
)
row = data.row(0, named=True)
image = np.array(Image.open(BytesIO(row["image"])))
instances = tifffile.imread(BytesIO(row["inst"]))
types = np.array(Image.open(BytesIO(row["type"])))
he_valid = np.array(Image.open(BytesIO(row["he_valid"]))).astype(bool)
mask_valid = np.array(Image.open(BytesIO(row["mask_valid"]))).astype(bool)
type_loss_pixels = he_valid & mask_valid & (types != 255)

colors = np.zeros((256, 3))
colors[1:22] = plt.get_cmap("turbo")(np.linspace(0, 1, 21))[:, :3]
colors[255] = 0.5
instance_colors = plt.get_cmap("turbo")((instances.astype(np.uint64) * 37 % 251) / 250)
instance_colors[instances == 0] = 0
fig, axes = plt.subplots(1, 3, figsize=(12, 4))
for ax, array, title in zip(axes, [image, instance_colors, colors[types]],
                            ["H&E", "Cell regions", "Cell types"]):
    ax.imshow(array)
    ax.set_title(title)
    ax.axis("off")
plt.show()

Sources

This collection follows SPORA's 389-region selection. source-cells.parquet keeps the original measurements, labels and cell IDs together with their prediction links. instance-links.parquet records source cells linked to each predicted region; source-regions.parquet keeps region and patient identities.

Downloads last month
165