Datasets:
Download README.md from ratschlab/HEST_Xenium_virtual_spatial_transcriptomics: direct link, hf CLI and curl.
- Browser
- Download file 10.3 kB
-
https://huggingface.co/datasets/ratschlab/HEST_Xenium_virtual_spatial_transcriptomics/resolve/main/README.md
- Command line
-
hf download hf://datasets/ratschlab/HEST_Xenium_virtual_spatial_transcriptomics/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/ratschlab/HEST_Xenium_virtual_spatial_transcriptomics/resolve/main/README.md
pretty_name: HEST Xenium Virtual Spatial Transcriptomics
language:
- en
tags:
- spatial-transcriptomics
- histology
- pathology
- transcriptomics
- machine-learning
- xenium
- HEST
- computational-pathology
- foundation-model
- multimodal
- virtual-spatial-transcriptomics
- whole-slide-imaging
- oncology
- cancer
- gene-expression
- deep-learning
- DeepSpot-M
- single-cell
size_categories:
- n<1K
task_categories:
- image-feature-extraction
license: cc-by-nc-sa-4.0
configs:
- config_name: default
data_files: metadata.csv
extra_gated_heading: Eligibility declarations required to request access
extra_gated_prompt: >-
This dataset is released under CC-BY-NC-SA-4.0 strictly for non-commercial
academic research. Commercial use is not permitted unless explicit written
permission is granted by the authors.
ELIGIBILITY. Access is granted only to individuals whose affiliations are
exclusively academic or public non-profit research institutions. Anyone
holding any concurrent commercial affiliation — employment, consulting,
advisory roles, internships, or founding roles at a company or startup — is
not eligible, regardless of intended use.
SCOPE. Research performed at, for, funded by, or in collaboration with a
commercial entity is commercial use and is prohibited. This includes corporate
R&D, internal evaluation, benchmarking, and proof-of-concept work, even if
exploratory and never productized. "Research" conducted in a commercial
setting does not qualify as non-commercial academic research.
REVIEW. All requests are reviewed manually against these criteria; please
allow 3-5 business days. By submitting, you agree to share your contact
information (email and username) with the repository authors. Vague,
incomplete, or inaccurate submissions will be declined. False or incomplete
declarations void any access granted and constitute a violation of the license
terms. For commercial licensing, contact the maintainers.
extra_gated_fields:
Full name (first and last): text
Academic affiliation (full official name, no abbreviations): text
Position at this institution:
type: text
help: E.g. PhD student, postdoc, research scientist, professor.
Official institutional email:
type: text
help: >-
Must match the primary email on your Hugging Face account and belong to a
recognized academic or public research institution's domain. Personal
domains (gmail, hotmail, qq, etc.) and corporate domains will be denied.
Concurrent commercial affiliations (write "None" if none):
type: text
help: >-
Disclose ALL current commercial ties: employment, consulting, advisory
positions, internships, and founded or co-founded startups. Individuals
with any concurrent commercial affiliation are not eligible. Failure to
disclose is grounds for denial and revocation of access.
Intended use (be specific):
type: text
help: >-
Name your institution/lab, the broader research project or area, and
concretely how the dataset will be used (e.g. model training,
benchmarking, validation). Generic answers such as "for research purposes"
will be declined.
I declare that I hold no concurrent affiliation with any company, startup, or other commercial entity, and that I am requesting access solely in my academic capacity: checkbox
I declare that this dataset and any derivatives will be used exclusively for non-commercial academic research, and will not be used to train, evaluate, or develop any model, product, or service intended for commercial use or release under a different license: checkbox
I declare that I will not share the dataset or any part of it with any commercial entity or any individual who has not been granted access, and will not re-upload or mirror it in any location that bypasses this access process: checkbox
I declare that if my status changes and I take on any commercial affiliation, or if my access is revoked, I will cease all use and delete all copies of the dataset: checkbox
I declare that all information in this request is truthful and complete, and I understand that any misrepresentation voids my access and violates the license terms: checkbox
I confirm that I have read the license terms and agree to retain attribution, license any derivatives under the same license, and cite the associated publication in any work using this dataset:
type: checkbox
help: >-
The license is CC-BY-NC-SA-4.0. Redistribution and derivatives are
permitted only under this same license, with attribution and
non-commercial use.
I agree to receive news and updates about this technology: checkbox
extra_gated_button_content: Submit declarations and request access
HEST Xenium virtual spatial transcriptomics
Virtual spatial transcriptomics for 59 H&E sections of the 10x Xenium samples in HEST-1k (14 OncoTree codes): 19,338 genes in each of 13,328,590 cells, predicted with DeepSpot-M. Each file also holds the measured Xenium panel of the sample.
Model: DeepSpot-M (ratschlab/DeepSpotM) · Code: github.com/ratschlab/DeepSpotM · Paper: medRxiv 2026.06.19.26356060.
News
- [11.2026] Files re-encoded as float16 with identical values and renamed from
data/<id>.h5ad.gztodata/<id>.h5ad. - [09.2026] Introducing Aurora - a no-code platform for virtual spatial transcriptomics from H&E images. Try the interactive Aurora demo.
Contents
| OncoTree code | Samples | Cells |
|---|---|---|
| ALL | 1 | 206,225 |
| COAD | 4 | 1,470,368 |
| COADREAD | 1 | 381,606 |
| GBM | 1 | 814,961 |
| HCC | 1 | 162,073 |
| HGSOC | 1 | 237,656 |
| IDC | 7 | 3,271,231 |
| ILC | 2 | 719,410 |
| LUAD | 2 | 313,530 |
| OTHER | 31 | 4,674,891 |
| PAAD | 3 | 533,687 |
| PRAD | 1 | 185,277 |
| PRCC | 1 | 55,124 |
| SKCM | 3 | 302,551 |
| Total | 59 | 13,328,590 |
data/<sample_id>.h5ad one AnnData file per sample, keyed by the HEST sample id (399 GB in total)
metadata.csv one row per sample
Example
Lung section NCBI866: H&E and virtual FOXJ1 (ciliated epithelium), PTPRC (immune cells) and LUM (stroma).
Download
This is a gated dataset: log in first (pip install huggingface_hub).
import pandas as pd
from huggingface_hub import login, snapshot_download, hf_hub_download
login(token="YOUR_HF_TOKEN")
repo = "ratschlab/HEST_Xenium_virtual_spatial_transcriptomics"
# one sample (leave out allow_patterns for the whole dataset)
snapshot_download(repo, repo_type="dataset", local_dir="HEST_Xenium_data", allow_patterns="data/NCBI866.h5ad")
# or select samples in metadata.csv first
meta = pd.read_csv(hf_hub_download(repo, "metadata.csv", repo_type="dataset"))
ids = meta.loc[meta["organ"] == "Lung", "id"]
snapshot_download(repo, repo_type="dataset", local_dir="HEST_Xenium_data", allow_patterns=[f"data/{i}.h5ad" for i in ids])
Usage
import numpy as np
import matplotlib.pyplot as plt
import scanpy as sc
adata = sc.read_h5ad("HEST_Xenium_data/data/NCBI866.h5ad")
adata.X = adata.X.astype(np.float32)
lib = next(iter(adata.uns["spatial"]))
img = adata.uns["spatial"][lib]["images"]["hires"]
x, y = adata.obsm["spatial"][:, 0], adata.obsm["spatial"][:, 1]
fig, axes = plt.subplots(1, 4, figsize=(24, 6))
axes[0].imshow(img)
for ax, g in zip(axes[1:], ["FOXJ1", "PTPRC", "LUM"]):
ax.scatter(x, y, c=np.asarray(adata[:, g].X).ravel(), s=1, linewidths=0)
ax.set_xlim(0, img.shape[1]); ax.set_ylim(img.shape[0], 0); ax.set_aspect("equal"); ax.set_title(g)
Data format
X: virtual expression of 19,338 genes per cell, log1p-CPM, stored as float16 (cast to float32 before analysis).layers['ground_truth']: measured Xenium expression (log1p counts per 10,000 over the panel genes), sparse, zero outside the panel genes.obs: one row per cell:cell_id,barcode,n_counts,n_genes, grid position (x_array,y_array) and centre in pixels (x_pixel,y_pixel).var:gene_symbol,is_panel(measured on the sample's panel),is_seed/is_holdout(panel genes used / withheld in fine-tuning), per-gene Pearson correlation with the measurement (pearson_raw,pearson_knn5).obsm['spatial']anduns['spatial']: cell centres and an H&E overview image, as scanpy and squidpy expect;unsalso holds per-sample accuracy (pearson_*) and provenance.metadata.csv: one row per sample (keyid): the HEST metadata (organ, disease state, OncoTree code, panel size, study link, ...),n_spotsandfile_path.
Citation
@article{nonchev2026deepspotm,
title = {DeepSpot-M: a multimodal foundation model for transcriptome-wide virtual spatial transcriptomics from histology},
author = {Nonchev, Kalin and Dawo, Sebastian and Silina, Karina and Koelzer, Viktor H. and R{\"a}tsch, Gunnar},
journal = {medRxiv},
year = {2026},
doi = {10.64898/2026.06.19.26356060},
url = {https://www.medrxiv.org/content/10.64898/2026.06.19.26356060v1}
}
License
CC BY-NC-SA 4.0, non-commercial academic research only. The H&E images and measured Xenium data come from HEST-1k and remain subject to its terms.
NB
Computational data analysis was performed at Leonhard Med, the secure trusted research environment at ETH Zurich. Our pipeline aligns with the specific cluster requirements and resources.

