Dataset
MahmoodLab

MahmoodLab/hest

Model Card for HEST-1k What is HEST-1k? A collection of 1,276 spatial transcriptomic profiles, each linked and aligned to a Whole Slide Image (with pixel size < 1.15 µm/px) and metadata. HEST-1k was assembled from 180 public and internal cohorts encompassing: 26 organs 2 species (Homo Sapiens and Mus Musculus) 398 cancer samples from 25 cancer types. HEST-1k processing enabled the identification of >1.5 million expression/morphology pairs and >76 million… See the full description on the dataset page: https://huggingface.co/datasets/MahmoodLab/hest.

189likes
36.9kdownloads
8views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: spatial-transcriptomics

#1 Repository of the week

1
TINIX TRENDING·Topic: arxiv:2406.16192

#1 Repository of the week

1
TINIX TRENDING·Topic: task_categories:image-segmentation

#1 Repository of the week

Model Card for HEST-1k

Description

What is HEST-1k?

  • A collection of 1,276 spatial transcriptomic profiles, each linked and aligned to a Whole Slide Image (with pixel size < 1.15 µm/px) and metadata.
  • HEST-1k was assembled from 180 public and internal cohorts encompassing:
    • 26 organs
    • 2 species (Homo Sapiens and Mus Musculus)
    • 398 cancer samples from 25 cancer types.

HEST-1k processing enabled the identification of >1.5 million expression/morphology pairs and >76 million nuclei

Updates

  • 8.02.26: 18 new Xenium (including Xenium 5k) samples added to HEST (v1.3.0)!

  • 6.01.26: 27 new high-quality Visium HD samples added to HEST (v1.2.0)!

  • 21.10.24: HEST has been accepted to NeurIPS 2024 as a Spotlight! We will be in Vancouver from Dec 10th to 15th. Send us a message if you wanna learn more about HEST (gjaume@bwh.harvard.edu).

  • 23.09.24: 121 new samples released, including 27 Xenium and 7 Visium HD! We also make the aligned Xenium transcripts + the aligned DAPI segmented cells/nuclei public.

  • 30.08.24: HEST-Benchmark results updated. Includes H-Optimus-0, Virchow 2, Virchow, and GigaPath. New COAD task based on 4 Xenium samples. HuggingFace bench data have been updated.

  • 28.08.24: New set of helpers for batch effect visualization and correction. Tutorial here.

Instructions for Setting Up HuggingFace Account and Token

1. Create an Account on HuggingFace

Follow the instructions provided on the HuggingFace sign-up page.

2. Accept terms of use of HEST

  1. On this page click request access (access will be automatically granted)
  2. At this stage, you can already manually inspect the data by navigating in the Files and version

3. Create a Hugging Face Token

  1. Go to Settings: Navigate to your profile settings by clicking on your profile picture in the top right corner and selecting Settings from the dropdown menu.

  2. Access Tokens: In the settings menu, find and click on Access tokens.

  3. Create New Token:

    • Click on New token.
    • Set the token name (e.g., hest).
    • Set the access level to Write.
    • Click on Create.
  4. Copy Token: After the token is created, copy it to your clipboard. You will need this token for authentication.

4. Logging in

  1. Install huggingface-hub
pip install huggingface-hub
  1. Log in
from huggingface_hub import login

login(token="YOUR HUGGINGFACE TOKEN")

Download the entire HEST-1k dataset:

import os
import zipfile

from huggingface_hub import snapshot_download
from tqdm import tqdm


def download_hest(patterns, local_dir):
    repo_id = 'MahmoodLab/hest'
    snapshot_download(repo_id=repo_id, allow_patterns=patterns, repo_type="dataset", local_dir=local_dir)

    seg_dir = os.path.join(local_dir, 'cellvit_seg')
    if os.path.exists(seg_dir):
        print('Unzipping cell vit segmentation...')
        for filename in tqdm([s for s in os.listdir(seg_dir) if s.endswith('.zip')]):
            path_zip = os.path.join(seg_dir, filename)
                        
            with zipfile.ZipFile(path_zip, 'r') as zip_ref:
                zip_ref.extractall(seg_dir)


local_dir='hest_data' # hest will be dowloaded to this folder

# Note that the full dataset is around 1TB of data
download_hest('*', local_dir)

Download a subset of HEST-1k:

import datasets

local_dir='hest_data' # hest will be dowloaded to this folder

ids_to_query = ['TENX96', 'TENX99'] # list of ids to query

list_patterns = [f"*{id}[_.]**" for id in ids_to_query]
download_hest(list_patterns, local_dir) # see method definition above

Query HEST by organ, techonology, oncotree code...

import datasets
import pandas as pd

local_dir='hest_data' # hest will be dowloaded to this folder

meta_df = pd.read_csv("hf://datasets/MahmoodLab/hest/HEST_v1_3_0.csv")

# Filter the dataframe by organ, oncotree code...
meta_df = meta_df[meta_df['oncotree_code'] == 'IDC']
meta_df = meta_df[meta_df['organ'] == 'Breast']

ids_to_query = meta_df['id'].values

list_patterns = [f"*{id}[_.]**" for id in ids_to_query]
download_hest(list_patterns, local_dir) # see method definition above

Loading the data with the python library hest

Once downloaded, you can then easily iterate through the dataset:

from hest import iter_hest

for st in iter_hest('../hest_data', id_list=['TENX95']):
    print(st)

Please visit the github repo and the documentation for more information about the hest library API.

Data organization

For each sample:

  • wsis/: H&E stained Whole Slide Images in pyramidal Generic TIFF (or pyramidal Generic BigTIFF if >4.1GB)
  • st/: spatial transcriptomics expressions in a scanpy .h5ad object
  • metadata/: metadata
  • spatial_plots/: overlay of the WSI with the st spots
  • thumbnails/: downscaled version of the WSI
  • tissue_seg/: tissue segmentation masks:
    • {id}_mask.jpg: downscaled or full resolution greyscale tissue mask
    • {id}_mask.pkl: tissue/holes contours in a pickle file
    • {id}_vis.jpg: visualization of the tissue mask on the downscaled WSI
  • pixel_size_vis/: visualization of the pixel size
  • patches/: 224x224px H&E patches (0.5µm/px) extracted around ST spots in a .h5 object optimized for deep-learning. Each patch is matched to the corresponding ST profile (see st/) with a barcode.
  • patches_vis/: visualization of the mask and patches on a downscaled WSI.
  • cellvit_seg/: cellvit nuclei segmentation

For each xenium sample:

  • transcripts/: individual transcripts aligned to H&E for xenium samples; read with pandas.read_parquet; aligned coordinates in pixel are in columns ['he_x', 'he_y']
  • xenium_seg/: xenium segmentation on DAPI and aligned to H&E

How to cite:

@article{jaume2024hest,
	author = {Jaume, Guillaume and Doucet, Paul and Song, Andrew H. and Lu, Ming Y. and Almagro-Perez, Cristina and Wagner, Sophia J. and Vaidya, Anurag J. and Chen, Richard J. and Williamson, Drew F. K. and Kim, Ahrong and Mahmood, Faisal},
	title = {{HEST-1k: A Dataset for Spatial Transcriptomics and Histology Image Analysis}},
	journal = {arXiv},
	year = {2024},
	month = jun,
	eprint = {2406.16192},
	url = {https://arxiv.org/abs/2406.16192v1}
}

Contact:

  • Guillaume Jaume Harvard Medical School, Boston, Mahmood Lab (gjaume@bwh.harvard.edu)
  • Paul Doucet Harvard Medical School, Boston, Mahmood Lab (pdoucet@bwh.harvard.edu)

The dataset is distributed under the Attribution-NonCommercial-ShareAlike 4.0 International license (CC BY-NC-SA 4.0 Deed)

Similar Projects

Discover other similar projects and AI models.

Dataset
Aignostics/OpenTME

OpenTME: Open-Access Tumor Microenvironment Profiles from TCGA OpenTME is an open-access project by Aignostics for academic researchers. It provides comprehensive spatial outputs for whole slide images (WSIs) of H&E-stained, formalin-fixed, paraffin-embedded slides from The Cancer Genome Atlas (TCGA). OpenTME is powered by HETA (H&E Tissue Analysis) – a computational pathology application developed by Aignostics. HETA HETA is a foundation model-based application… See the full description on the dataset page: https://huggingface.co/datasets/Aignostics/OpenTME.

♥0
889
Nov 30, 2026
Dataset
jiawennnn/STimage-1K4M

STimage-1K4M Dataset Welcome to the STimage-1K4M Dataset repository. This dataset is designed to foster research in the field of spatial transcriptomics, combining high-resolution histopathology images with detailed gene expression data. Update Feb 12, 2025 We corrected a typo in meta file (changed "Human_Brain+Kidney_10X_02212023_Visium" to "Mouse_Brain+Kidney_10X_02212023_Visium"). Please refer to meta_all_gene02122025.csv for the newest meta data.… See the full description on the dataset page: https://huggingface.co/datasets/jiawennnn/STimage-1K4M.

♥0
11.8k
Jun 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
Dataset
Open-Orca/OpenOrca

🐋 The OpenOrca Dataset! 🐋 We are thrilled to announce the release of the OpenOrca dataset! This rich collection of augmented FLAN data aligns, as best as possible, with the distributions outlined in the Orca paper. It has been instrumental in generating high-performing model checkpoints and serves as a valuable resource for all NLP researchers and developers! Official Models Mistral-7B-OpenOrca Our latest model, the first 7B to score better overall than all… See the full description on the dataset page: https://huggingface.co/datasets/Open-Orca/OpenOrca.

♥0
12.1k
Feb 19, 2025
Dataset
ILSVRC/imagenet-1k

Dataset Card for ImageNet Dataset Summary ILSVRC 2012, commonly known as 'ImageNet' is an image dataset organized according to the WordNet hierarchy. Each meaningful concept in WordNet, possibly described by multiple words or word phrases, is called a "synonym set" or "synset". There are more than 100,000 synsets in WordNet, majority of them are nouns (80,000+). ImageNet aims to provide on average 1000 images to illustrate each synset. Images of each concept are… See the full description on the dataset page: https://huggingface.co/datasets/ILSVRC/imagenet-1k.

♥0
102.0k
Sep 17, 2025
Dataset
proj-persona/PersonaHub

Scaling Synthetic Data Creation with 1,000,000,000 Personas This repo releases data introduced in our paper Scaling Synthetic Data Creation with 1,000,000,000 Personas: We propose a novel persona-driven data synthesis methodology that leverages various perspectives within a large language model (LLM) to create diverse synthetic data. To fully exploit this methodology at scale, we introduce PERSONA HUB – a collection of 1 billion diverse personas automatically curated from web… See the full description on the dataset page: https://huggingface.co/datasets/proj-persona/PersonaHub.

♥0
6.4k
Sep 26, 2025
Dataset
ibrahimhamamci/CT-RATE

The CT-RATE Team organizes the VLM3D Challenge VLM3D 2026 (2nd Edition) → Challenge Finals at MICCAI 2026 VLM3D 2025 (1st Edition) → Challenge Finals at MICCAI 2025 • Workshop at ICCV 2025 The CT-RATE Team is developing FORA to generate reports for any CT scan FORA drafts radiology reports and links findings to the corresponding regions in the scan. Paper &nbsp; | &nbsp; Chest X-ray Dataset &nbsp; | &nbsp; FORA Benchmark… See the full description on the dataset page: https://huggingface.co/datasets/ibrahimhamamci/CT-RATE.

♥0
168.4k
Nov 25, 2026
Dataset
Forithmus/MR-RATE

MR-RATE: A Vision-Language Foundation Model and Dataset for Magnetic Resonance Imaging Welcome to the official page for MR-RATE, a pioneering vision-language model and 3D medical imaging dataset that pairs textual reports with brain and spine MRI volumes. Following the approach of CT-RATE, the first 3D medical imaging dataset to pair images with textual reports, MR-RATE offers brain and spine MRI volumes matched with… See the full description on the dataset page: https://huggingface.co/datasets/Forithmus/MR-RATE.

♥0
67.0k
Sep 2, 2026
Dataset
Real-IAD/Real-IAD

Website: https://realiad4ad.github.io/Real-IAD/ Real-IAD is released for research purpose only. Your access request will be automatically apporoved. And you can contact us by sending an email to realiad4ad@outlook.com if you meet any problem. Evaluation Tool: ADEval Install ADEval python3 -m pip install ADEval Execute Evaluation python3 -m adeval --sample_key_pat "([a-zA-Z][a-zA-Z0-9_]*_[0-9]{4}_[A-Z][A-Z_]*[A-Z])_C[0-9]_" some_object.pkl where the result file some_object.pkl can be… See the full description on the dataset page: https://huggingface.co/datasets/Real-IAD/Real-IAD.

♥0
7.1k
Oct 24, 2025