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.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
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 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
- On this page click request access (access will be automatically granted)
- At this stage, you can already manually inspect the data by navigating in the
Files and version
3. Create a Hugging Face Token
-
Go to Settings: Navigate to your profile settings by clicking on your profile picture in the top right corner and selecting
Settingsfrom the dropdown menu. -
Access Tokens: In the settings menu, find and click on
Access tokens. -
Create New Token:
- Click on
New token. - Set the token name (e.g.,
hest). - Set the access level to
Write. - Click on
Create.
- Click on
-
Copy Token: After the token is created, copy it to your clipboard. You will need this token for authentication.
4. Logging in
- Install huggingface-hub
pip install huggingface-hub
- 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.h5adobjectmetadata/: metadataspatial_plots/: overlay of the WSI with the st spotsthumbnails/: downscaled version of the WSItissue_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 sizepatches/: 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 (seest/) 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.
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.
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.
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...
🐋 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.
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.
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.
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 | Chest X-ray Dataset | FORA Benchmark… See the full description on the dataset page: https://huggingface.co/datasets/ibrahimhamamci/CT-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.
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.