This repository contains the official implementation of HCCExplorer, a deep learning framework that transforms standard H&E slides into virtual multiplex immunofluorescence (mIF) images and performs spatially resolved survival analysis for hepatocellular carcinoma (HCC). Specific tutorials are in directories.
Figure 1: HCCExplorer framework overview.
[View Full PNG]
| Module | Description | Status |
|---|---|---|
| C3UT | Cell-Consistent Cross-modal Unpaired Translation for H&E-to-virtual mIF generation | β |
| CellFilter | Quality control pipeline for H&E and mIF cell segmentation | β |
| CoOptimization | Multi-modal contrastive learning for H&E-virtual mIF feature alignment | β |
| GraphLearning | Graph-based contextual survival prediction with interpretable attention | β |
| ImmuneAnalysis | Spatial immune feature extraction and prognostic biomarker discovery | β |
| Registration | Whole-slide image registration and patch alignment | β |
HCCExplorer addresses critical limitations in routine hepatopathology by:
HCCExplorer/
βββ C3UT/ # Virtual mIF translation (Cell-Consistent Cross-modal Unpaired Translation)
βββ Tutorial # Step-by-step guide for H&E-to-mIF generation
βββ CellFilter # Cell segmentation and quality control
βββ Tutorial # Data preprocessing and cell filtering protocols
βββ CoOptimization/ # H&E-virtual mIF feature co-optimization
βββ Tutorial # Multi-modal contrastive learning pipeline
βββ GraphLearning/ # Graph-based survival analysis
βββ Tutorial # Graph construction and survival prediction
βββ ImmuneAnalysis/ # Spatial immune feature extraction
βββ Tutorial # Immune profiling and biomarker validation
βββ Registration/ # WSI registration and spatial alignment
βββ Tutorial # Image registration workflows
Note: Each module contains a dedicated
Tutorialnotebook with detailed documentation, usage examples, and step-by-step instructions.
# Python 3.8+
pip install torch>=1.12.0 torchvision>=0.13.0
pip install openslide-python numpy pandas scikit-learn
pip install torch-geometric torch-scatter torch-sparse # For GraphLearning
π Detailed tutorial: See C3UT/Tutorial
π Detailed tutorial: See CoOptimization/Tutorial
π Detailed tutorial: See GraphLearning/Tutorial
π Detailed tutorial: See ImmuneAnalysis/Tutorial
The framework was validated on four independent cohorts:
| Cohort | Institution | Patients | Slides | Usage |
|---|---|---|---|---|
| FAZJU | First Affiliated Hospital, Zhejiang University | 949 | 1,017 | Training |
| FAZJU-Test | Internal test set | 237 | 237 | Internal validation |
| SAZJU | Second Affiliated Hospital, Zhejiang University | 211 | 211 | External validation |
| TCGA-LIHC | The Cancer Genome Atlas | 342 | 342 | External validation |
| YWCH | Yiwu Central Hospital | 74 | 74 | External validation |
HCCExplorer enabled discovery of:
# Clone repository
git clone https://github.com/MedCAI/HCCExplorer.git
cd HCCExplorer
# Install dependencies in each directory
pip install -r requirements.txt
# Download pretrained weights (available upon request for academic use)
If you use HCCExplorer in your research, please cite:
@article{cai2026hccexplorer,
title={Transforming Histology into Virtual Multiplex Immunofluorescence to Decode Prognostic Spatial Immunity in Hepatocellular Carcinoma},
author={Cai, Linghan and Jiang, Songhan and Liang, Junhao and Liu, Fengchun and Zhang, Buyi and Reitsam, Nic Gabriel and Zeng, Qinghe and Hu, Zheqi and Ma, Yanqing and Li, Ziqian and Shi, Feng and Hu, Maotong and Zhang, Xiuming and Zhang, Jing and Kather, Jakob Nikolas and Zhang, Yongbing and Liang, Wenjie},
journal={BioRxiv},
year={2026}
}
For questions about the code or model access:
Thanks to the following work for improving our projectοΌ
This code is made available for academic research purposes only. Commercial use requires explicit permission from the authors.
45 commits
Jupyter Notebook
96.9%
Python
2.8%
This repository contains the official implementation of HCCExplorer, a deep learning framework that transforms standard H&E slides into virtual multiplex immunofluorescence (mIF) images and performs spatially resolved survival analysis for hepatocellular carcinoma (HCC). Specific tutorials are in directories.
Figure 1: HCCExplorer framework overview.
[View Full PNG]
| Module | Description | Status |
|---|---|---|
| C3UT | Cell-Consistent Cross-modal Unpaired Translation for H&E-to-virtual mIF generation | β |
| CellFilter | Quality control pipeline for H&E and mIF cell segmentation | β |
| CoOptimization | Multi-modal contrastive learning for H&E-virtual mIF feature alignment | β |
| GraphLearning | Graph-based contextual survival prediction with interpretable attention | β |
| ImmuneAnalysis | Spatial immune feature extraction and prognostic biomarker discovery | β |
| Registration | Whole-slide image registration and patch alignment | β |
HCCExplorer addresses critical limitations in routine hepatopathology by:
HCCExplorer/
βββ C3UT/ # Virtual mIF translation (Cell-Consistent Cross-modal Unpaired Translation)
βββ Tutorial # Step-by-step guide for H&E-to-mIF generation
βββ CellFilter # Cell segmentation and quality control
βββ Tutorial # Data preprocessing and cell filtering protocols
βββ CoOptimization/ # H&E-virtual mIF feature co-optimization
βββ Tutorial # Multi-modal contrastive learning pipeline
βββ GraphLearning/ # Graph-based survival analysis
βββ Tutorial # Graph construction and survival prediction
βββ ImmuneAnalysis/ # Spatial immune feature extraction
βββ Tutorial # Immune profiling and biomarker validation
βββ Registration/ # WSI registration and spatial alignment
βββ Tutorial # Image registration workflows
Note: Each module contains a dedicated
Tutorialnotebook with detailed documentation, usage examples, and step-by-step instructions.
# Python 3.8+
pip install torch>=1.12.0 torchvision>=0.13.0
pip install openslide-python numpy pandas scikit-learn
pip install torch-geometric torch-scatter torch-sparse # For GraphLearning
π Detailed tutorial: See C3UT/Tutorial
π Detailed tutorial: See CoOptimization/Tutorial
π Detailed tutorial: See GraphLearning/Tutorial
π Detailed tutorial: See ImmuneAnalysis/Tutorial
The framework was validated on four independent cohorts:
| Cohort | Institution | Patients | Slides | Usage |
|---|---|---|---|---|
| FAZJU | First Affiliated Hospital, Zhejiang University | 949 | 1,017 | Training |
| FAZJU-Test | Internal test set | 237 | 237 | Internal validation |
| SAZJU | Second Affiliated Hospital, Zhejiang University | 211 | 211 | External validation |
| TCGA-LIHC | The Cancer Genome Atlas | 342 | 342 | External validation |
| YWCH | Yiwu Central Hospital | 74 | 74 | External validation |
HCCExplorer enabled discovery of:
# Clone repository
git clone https://github.com/MedCAI/HCCExplorer.git
cd HCCExplorer
# Install dependencies in each directory
pip install -r requirements.txt
# Download pretrained weights (available upon request for academic use)
If you use HCCExplorer in your research, please cite:
@article{cai2026hccexplorer,
title={Transforming Histology into Virtual Multiplex Immunofluorescence to Decode Prognostic Spatial Immunity in Hepatocellular Carcinoma},
author={Cai, Linghan and Jiang, Songhan and Liang, Junhao and Liu, Fengchun and Zhang, Buyi and Reitsam, Nic Gabriel and Zeng, Qinghe and Hu, Zheqi and Ma, Yanqing and Li, Ziqian and Shi, Feng and Hu, Maotong and Zhang, Xiuming and Zhang, Jing and Kather, Jakob Nikolas and Zhang, Yongbing and Liang, Wenjie},
journal={BioRxiv},
year={2026}
}
For questions about the code or model access:
Thanks to the following work for improving our projectοΌ
This code is made available for academic research purposes only. Commercial use requires explicit permission from the authors.
45 commits
Jupyter Notebook
96.9%
Python
2.8%