Datasets:
id stringlengths 17 17 | image unknown | inst unknown | type unknown | inst_cell unknown | pairs listlengths 0 91 | annotation_source stringclasses 1
value | source_split stringclasses 1
value | file_name stringlengths 5 8 | source_image_id int64 0 1.87k | inst_auto unknown | inst_cell_auto unknown |
|---|---|---|---|---|---|---|---|---|---|---|---|
helacytonuke_0000 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nIz9SY8sWZMliF1VU5vc/Q0R8Y1ZrKxED4tikWiiues(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAYiklEQVR4nO3di5csV1XA4bqXKAiIkYc8JRGJQa5RAoISRQSReCX(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAASZUlEQVR4nO2d6XakOAxGrZx5/1fWnCyd1EJRgDd98r0/pqvTEwr(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAABH3UlEQVR4nO2di5cdVZm+d5/uJDQhMi4cEGbQgMZhiJAIAYKAXKR(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":2,"cell_id":2},{"nucleus_id":3,"cell_id":3},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 0.tif | 0 | null | null |
helacytonuke_0001 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nIz9aZMkW7Ikhh332HKpqntvd79l3iMIoYADIcEPFH4(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAYA0lEQVR4nO3di7stZV3A8TlHNCUCb2SRnZS0MiqhvIBXEIkw848(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAASB0lEQVR4nO3d63aqOhSGYWZH7/+W5x67LltARMhxHt7nx2q1S0T(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAABGWklEQVR4nO2dB5ddxZW2Sx0kpEaBDDLIWARjjBkRhkEWDAMGjLW(...TRUNCATED) | [{"nucleus_id":2,"cell_id":2},{"nucleus_id":3,"cell_id":3},{"nucleus_id":4,"cell_id":4},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 1.tif | 1 | null | null |
helacytonuke_0002 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nJT9a5dkyY0lipm/IjKzimT3aK400l3SF/3//yR9GGm(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAR60lEQVR4nO3d+5sb1X3A4dnt0pK4TQItoU0vpElxG4eYYJr2//+(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAANjklEQVR4nO3d2XbiOhAFUCur//+XddftpMMMnlUl7f3QnQECiON(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAArdUlEQVR4nO2d/Xsb1YFGryRDIIFCQ1kaQoEmJLQmDRuzsP//jw2(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":2,"cell_id":2},{"nucleus_id":4,"cell_id":4},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 2.tif | 2 | null | null |
helacytonuke_0003 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nKz9a7MlyY4lhsU+J7Me995+zZPk0CSSY0bJROP//w3(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAADzklEQVR4nO3d0WrCQBRF0Ynx///YtqiITchjcnIzs9aDoIKCcTa(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAACVklEQVR4nO3bwWoDMQxFUan0/39ZhULabVtInWedswjeJCieixk(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAGYklEQVR4nO3d227aUBCGUQ55/zdOqSBVTgqNDfbv8ey1LqrekEY(...TRUNCATED) | [
{
"nucleus_id": 1,
"cell_id": 1
},
{
"nucleus_id": 2,
"cell_id": 2
},
{
"nucleus_id": 3,
"cell_id": 3
}
] | cellprofiler | train | 3.tif | 3 | null | null |
helacytonuke_0004 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nIT92ZYky5EkCIra7kssdwGQyOrKqu4+9TYv8zD//wX(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAATtElEQVR4nO3di5ckZXnA4Zp1IQlGE0MCiboxGgWNXNWFxP//JFw(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAAPNUlEQVR4nO3d4ZaiOhCFUcrl+79y7pru2yqISIAkp6q+/WOme8Z(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAA45UlEQVR4nO2djZsUxbm+e5bZXT6MhmPCyU8lJ4qiRE1AEsXz/1+(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":2,"cell_id":2},{"nucleus_id":3,"cell_id":3},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 4.tif | 4 | null | null |
helacytonuke_0005 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nIz9Z7MsS5IkiHkkO+ySx4o23e5hABYygg/4jr8OAUT(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAARpElEQVR4nO3di5ck5VnA4ZphyQUTg0Qhi+YeAqsbIsr//xegRtl(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAANnklEQVR4nO3d65abuBIGUJTV7//KmjXpTl9stw22gCrV3j8yJzm(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAuQUlEQVR4nO2dC5sVxbm2e60ZB7dRNkyMBkz4NB6ACFGz+f+/AMN(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":2,"cell_id":2},{"nucleus_id":3,"cell_id":3},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 5.tif | 5 | null | null |
helacytonuke_0006 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nJT92a4sWZIliG21+ZxzRx9iyqGqsprNIhsESKAJ8I1(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAdHElEQVR4nO3di7tsd1nY8XVOuJUgBbUGUcEKFUkjij1QpGqLpcF(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAAVSElEQVR4nO2d63bjIAwGUU/f/5W1p802cRIn8UXAJ5j5sZt2Nzb(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAABYWElEQVR4nO2di58dRZm/ayZzI4SLCkREUYT9ATELiEHQ5RYNqLt(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":3,"cell_id":3},{"nucleus_id":4,"cell_id":4},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 6.tif | 6 | null | null |
helacytonuke_0007 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nJT9W69t7bIeBrV+GmPOb619cOyEOLGtmBCBFCEhyDX(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAKAElEQVR4nO3dCXMUVRSA0cmYGBdUiILx//84EUQFF1QUrZCtZzJ(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAAHnUlEQVR4nO3djXLaOBSAUYvJ+7+yOk1SAsQUDJalq3vOzO52d2g(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAdEElEQVR4nO3dCXMU17mA4ZaCkI2vqSLEMPn/Py4jiOy6JOha3nR(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":2,"cell_id":2},{"nucleus_id":3,"cell_id":3},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 7.tif | 7 | null | null |
helacytonuke_0008 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nJz9y691S7IvBsWYc665Ht9rv2rXqapz7jk+517fY8v(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAARtklEQVR4nO3dC5ccR3mA4bYsIEACljEmJtxJHIgFQf//R8gJEgn(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAANt0lEQVR4nO3d63biOBBFYVXWvP8ra1YCTSBcbGwh1zm1vx/TSU8(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAwTElEQVR4nO2dC3cUx7mua3SBOIttEzt4J1l22ASEkyBi6///COG(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":2,"cell_id":2},{"nucleus_id":3,"cell_id":3},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 8.tif | 8 | null | null |
helacytonuke_0009 | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAIAAAAKaAoNAAEAAElEQVR4nIz9y85k67IlCH1zuvv/R8S67LXPOXmSpDKrqMokC1B(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAAAaqklEQVR4nO3dib+sdV3A8edermuaa4ZbtLhUUtGigqWi3hazCIX(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIICAAAAACgYcKGAAATf0lEQVR4nO2d65arIAxGzazz/q+cs6bTzliLCsolCXv/mNqOtVw(...TRUNCATED) | "iVBORw0KGgoAAAANSUhEUgAAArgAAAIIEAAAAADw8R7FAABBaElEQVR4nO2di5NdRb3ve/bMJplEngkRj1DhZRRFOaKUIp4rKkf(...TRUNCATED) | [{"nucleus_id":1,"cell_id":1},{"nucleus_id":2,"cell_id":2},{"nucleus_id":3,"cell_id":3},{"nucleus_id(...TRUNCATED) | cellprofiler | train | 9.tif | 9 | null | null |
HeLaCytoNuc
Overview
HeLaCytoNuc contains 2,676 microscope images of HeLa cells grown in the lab, with masks marking individual nuclei and whole cells. You can use it to train and test models that find these structures.
Nuclei appear in blue and the cells' actin fibres appear in red. The training and validation masks were made with CellProfiler. The test masks were drawn by hand; CellProfiler masks for the same test images are also included.
License: CC BY 4.0. You may use, change and share the data, including commercially, if you credit the creators, keep the license notices and describe your changes.
Files and splits
| Split | File | Images | Masks made by | Nuclei | Whole cells |
|---|---|---|---|---|---|
train |
train.parquet |
1,873 | CellProfiler automatic | 108,485 | 108,485 |
val |
val.parquet |
535 | CellProfiler automatic | 19,571 | 19,571 |
test |
test.parquet |
268 | Manual | 18,588 | 20,190 |
The original splits are kept; validation is shortened to val. The extra automatic masks stay with their test images. Keep all test images and both versions of their masks out of training when using this test set for evaluation.
The Parquet files contain the ready-to-use images and masks. The original release also provides larger raw images. License, source and preparation notes are included alongside the Parquet files.
Fields
Each row contains one image and its masks, stored as PNG bytes. The loading example below turns these into NumPy arrays.
| Field | Contents |
|---|---|
id |
Image name, such as helacytonuke_0000 |
image |
Colour image: 520 pixels high × 696 wide, with red, green and blue channels; uint8 values from 0 to 255 |
inst |
Nucleus mask: each nucleus has its own number |
inst_cell |
Whole-cell mask: each cell has its own number |
type |
Simple nucleus mask: 1 inside a marked nucleus, 0 elsewhere |
pairs |
Suggested matches between nucleus and cell numbers; see below |
annotation_source |
Who made the main masks: cellprofiler or manual |
inst_auto, inst_cell_auto |
Extra CellProfiler nucleus and cell masks for test images; empty (null) in train/val |
source_split |
Original split name: train, validation or test |
file_name, source_image_id |
Original filename and image number |
All masks are 520 × 696 pixels. The numbered masks use uint16; type uses uint8. Zero means background, and the original object numbers are kept. A nucleus and its cell may have different numbers—use pairs rather than matching numbers directly.
Labels
The main masks are inst for nuclei and inst_cell for whole cells. A whole-cell mask includes the nucleus. These cell masks come from the source's cytoplasm_masks files and have been kept as supplied. They are not cytoplasm-only masks.
pairs lists 114,733 suggested nucleus-to-cell matches. A match is included only when the nucleus lies completely inside one cell and neither object overlaps any other object in the other mask. These matches were calculated from the masks, not checked by a person. Objects without a match are still included.
The hand-drawn test masks do not always agree about cell and nucleus boundaries, so do not assume every nucleus has a matching cell. The extra automatic test masks use their own object numbers.
There are no cell-type labels. type only marks where the annotated nuclei are.
Download and read a sample
from io import BytesIO
import numpy as np
import polars as pl
from huggingface_hub import hf_hub_download
from PIL import Image
path = hf_hub_download(
repo_id="csmp-hub/helacytonuke", filename="train.parquet", repo_type="dataset"
)
row = pl.scan_parquet(path).head(1).collect().to_dicts()[0]
def decode_png(data):
with Image.open(BytesIO(data)) as image:
return np.array(image)
image = decode_png(row["image"]) # HWC RGB uint8, red=actin, blue=DAPI
nuclei = decode_png(row["inst"]).astype(np.uint16) # HW nucleus instance IDs
cells = decode_png(row["inst_cell"]).astype(np.uint16) # HW whole-cell IDs
label_source = row["annotation_source"] # "cellprofiler" in train/val; "manual" in test
Use val.parquet or test.parquet for another split. On a test row, decode_png(row["inst_auto"]) and decode_png(row["inst_cell_auto"]) read the alternate automatic masks.
Plot examples
Continue from the loading example. The first two rows use automatic training labels; the third uses manual test labels.
import matplotlib.pyplot as plt
from skimage.segmentation import find_boundaries
test_path = hf_hub_download(
repo_id="csmp-hub/helacytonuke", filename="test.parquet", repo_type="dataset"
)
columns = ["id", "image", "inst", "inst_cell", "annotation_source"]
samples = pl.scan_parquet(path).select(columns).head(2).collect().to_dicts()
samples += pl.scan_parquet(test_path).select(columns).head(1).collect().to_dicts()
fig, axes = plt.subplots(3, 3, figsize=(12, 10))
for row_axes, sample in zip(axes, samples):
rgb = decode_png(sample["image"])
row_axes[0].imshow(rgb)
for ax, key, color in zip(
row_axes[1:], ["inst", "inst_cell"], [(45, 180, 245), (245, 155, 45)]
):
mask = decode_png(sample[key])
overlay = rgb.astype(np.float32).copy()
overlay[mask > 0] = 0.65 * overlay[mask > 0] + 0.35 * np.array(color)
overlay[find_boundaries(mask, mode="inner")] = color
ax.imshow(overlay.astype(np.uint8))
label = f"{sample['id']} · {sample['annotation_source']}"
row_axes[0].text(0, 1.03, label, transform=row_axes[0].transAxes, fontsize=9)
for ax in row_axes:
ax.axis("off")
for ax, title in zip(
axes[0], ["Fluorescence image", "Nucleus instances", "Whole-cell instances"]
):
ax.set_title(title, pad=25)
fig.subplots_adjust(
left=0.02, right=0.98, bottom=0.02, top=0.93, hspace=0.22, wspace=0.03
)
plt.show()
Two examples without the image underneath. Black marks background; bright instance colours distinguish objects, not cell types. Colours do not indicate nucleus-to-cell matches.
from skimage.color import label2rgb
instance_colors = [
(1, 0.85, 0.2),
(0.2, 1, 1),
(1, 0.3, 0.8),
(0.5, 1, 0.2),
(0.65, 0.55, 1),
]
mask_samples = samples
mask_samples = [mask_samples[0], mask_samples[-1]]
mask_layers = [("inst", "Nucleus instances"), ("inst_cell", "Whole-cell instances")]
mask_fig, mask_axes = plt.subplots(2, 2, figsize=(6.4, 6))
for row_axes, sample in zip(mask_axes, mask_samples):
for column, (ax, (key, title)) in enumerate(zip(row_axes, mask_layers)):
labels = decode_png(sample[key])
pixels = label2rgb(
labels, colors=instance_colors, bg_label=0, bg_color=(0, 0, 0)
)
ax.imshow(pixels, interpolation="nearest")
ax.set_axis_off()
label = sample["id"]
label += " · " + sample["annotation_source"]
row_axes[0].text(0, 1.02, label, transform=row_axes[0].transAxes, fontsize=8)
for ax, (_, title) in zip(mask_axes[0], mask_layers):
ax.set_title(title, fontsize=10, pad=18)
mask_fig.subplots_adjust(
left=0.01, right=0.99, bottom=0.02, top=0.94, hspace=0.16, wspace=0.03
)
plt.show()
Preparation and validation
Prepared from the original HeLaCytoNuc release, version 1.
The original TIFF images and masks were saved as PNG bytes in Parquet files. Image pixels, mask numbers and split assignments were kept unchanged. Numbered masks now use uint16, and type and pairs were added as described above.
Every saved image and mask was checked against the original, including both versions of the test masks. File checks and further details are recorded in manifest.json and split-audit.json.
Limitations
- These are images of HeLa cells grown in the lab. Results may differ on other cells or tissue images.
- CellProfiler masks can contain mistakes, and hand-drawn nucleus and cell boundaries do not always agree.
- No duplicate or very similar images were found across splits, including after rotation or flipping. However, the source does not identify which images share a well, plate or imaging session. The splits may therefore share experimental conditions.
- There are no tissue-region masks, cell-type labels or measurements of physical pixel size.
License and citation
The dataset is released under CC BY 4.0. When sharing it, credit the creators, link to the source and license, keep the supplied notices, and explain any changes you make. LICENSE contains the full terms; NOTICE.md describes this version's changes.
Please cite:
De, T.; Urbanski, A.; Thangamani, S.; Wyrzykowska, M.; Yakimovich, A. (2024). HeLaCytoNuc: fluorescence microscopy dataset with segmentation masks for cell nuclei and cytoplasm. Version 1. RODARE. doi:10.14278/rodare.3001.
The original description also credits the screening study by Rämö et al. (2014), Simultaneous analysis of large-scale RNAi screens for pathogen entry, and Carpenter et al. (2006), CellProfiler: image analysis software for identifying and quantifying cell phenotypes. Their full references are kept in source-description.txt.
- Downloads last month
- 92

