Hanminghao/UMPIRE

[PR 2025] Code for UMPIRE

14

stars

12

commits

Jupyter Notebook

primary language

Mar 10, 2025

updated

README

Towards Unified Molecule-Enhanced Pathology Image Representation Learning via Integrating Spatial Transcriptomics

TL;DR: UMPIRE introduces the first large-scale multimodal pre-training framework for pathology images and spatial transcriptomics.

Installation

First clone the repo and cd into the directory:

git clone https://github.com/Hanminghao/UMPIRE.git
cd UMPIRE

Then create a conda env and install the dependencies:

conda create -n umpire python=3.9 -y
conda activate umpire
pip install --upgrade pip
pip install -e .

Updates

  • 03/04/2025: Updated the tokenize step and inference step in the downstream task.

  • 03/04/2025: Updated the pre-trained weights with CONCH, Phikon, and UNI.

To-do-list

  • Upload the tokenize code.
  • Upload the inference code.
  • Upload the pretrained model checkpoint.
  • Upload the full pre-trained code after the receipt of the article.
  • Open source VisTomic-4M after the receipt of the article.

Preparing and loading the model

  1. Request access to the model weights and example data from Google Drive.

  2. Run tokenize_downstream.py to tokenize the downstream data.

  3. Run tutorial.ipynb to learn downstream encoding and t-SNE visualization.

Reference

If you find our work useful in your research or if you use parts of this code please consider citing our paper:

@article{han2024towards,
  title={Towards Unified Molecule-Enhanced Pathology Image Representation Learning via Integrating Spatial Transcriptomics},
  author={Han, Minghao and Yang, Dingkang and Cheng, Jiabei and Zhang, Xukun and Qu, Linhao and Chen, Zizhi and Zhang, Lihua},
  journal={arXiv preprint arXiv:2412.00651},
  year={2024}
}

Contributors

Hanminghao

12 commits

Hanminghao/UMPIRE

[PR 2025] Code for UMPIRE

14

stars

12

commits

Jupyter Notebook

primary language

Mar 10, 2025

updated

README

Towards Unified Molecule-Enhanced Pathology Image Representation Learning via Integrating Spatial Transcriptomics

TL;DR: UMPIRE introduces the first large-scale multimodal pre-training framework for pathology images and spatial transcriptomics.

Installation

First clone the repo and cd into the directory:

git clone https://github.com/Hanminghao/UMPIRE.git
cd UMPIRE

Then create a conda env and install the dependencies:

conda create -n umpire python=3.9 -y
conda activate umpire
pip install --upgrade pip
pip install -e .

Updates

  • 03/04/2025: Updated the tokenize step and inference step in the downstream task.

  • 03/04/2025: Updated the pre-trained weights with CONCH, Phikon, and UNI.

To-do-list

  • Upload the tokenize code.
  • Upload the inference code.
  • Upload the pretrained model checkpoint.
  • Upload the full pre-trained code after the receipt of the article.
  • Open source VisTomic-4M after the receipt of the article.

Preparing and loading the model

  1. Request access to the model weights and example data from Google Drive.

  2. Run tokenize_downstream.py to tokenize the downstream data.

  3. Run tutorial.ipynb to learn downstream encoding and t-SNE visualization.

Reference

If you find our work useful in your research or if you use parts of this code please consider citing our paper:

@article{han2024towards,
  title={Towards Unified Molecule-Enhanced Pathology Image Representation Learning via Integrating Spatial Transcriptomics},
  author={Han, Minghao and Yang, Dingkang and Cheng, Jiabei and Zhang, Xukun and Qu, Linhao and Chen, Zizhi and Zhang, Lihua},
  journal={arXiv preprint arXiv:2412.00651},
  year={2024}
}

Contributors

Hanminghao

12 commits

Languages

Jupyter Notebook

85.8%

Python

14.2%