Published 2026 | Version v1.0.0

ST2HE: Enhancing spatial transcriptomics interpretability via virtual staining for histological annotation

  • 1. University of Pittsburgh Swanson School of Engineering
  • 2. ROR icon University of Pittsburgh School of Medicine
  • 3. ROR icon UPMC Hillman Cancer Center
  • 4. ROR icon University of Pittsburgh Medical Center

Description

This repository contains the code for ST2HE, a cross-platform generative framework that synthesizes virtual hematoxylin and eosin (H&E) images directly from high-resolution spatial transcriptomics (HR-ST) data. ST2HE integrates nuclei morphology and spatial transcript coordinates using a one-step diffusion model, enabling histologically informative image generation across diverse tissue types and HR-ST platforms.

The repository includes:

  • ST2HE model weights for ST2HE-CondGen and ST2HE-UnCondGen variants
  • Scripts for input data preparation including DAPI/H&E image registration and transcript overlay generation
  • Training scripts for model fine-tuning on new tissue types
  • Inference scripts for virtual H&E generation

This code accompanies the manuscript: "ST2HE: Enhancing spatial transcriptomics interpretability via virtual staining for histological annotation", published in Briefings in Bioinformatics (2026).

Files

ST2HE-main.zip

Files (42.1 MB)

Name Size Download all
md5:9c83d510cb02e121c6514a5419ec6402
42.1 MB Preview Download

Additional details

Dates

Created
2026-05-27

Software