Skip to content

AivaraX-AI/TransferNet-PDO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TransferNet-PDO

Rose Doerfler, Jie Chen, Carl Kim, Joshua D Smith, Micah Harris, Krishna B Singh, Brian Isett, Rebekah E Dadey, Daniel D Brown, Adrian V Lee, Xuefeng Wang, Matthew E Spector, Seungwon Kim, Shaum Sridharan, Kevin Contrera, Katelyn Smith, Carly Reeder, Maureen Lyons, Jianhua Luo, Silvia Liu, Dan P Zandberg, Heath D Skinner, Ioannis K Zervantonakis, Lazar Vujanović Robert L Ferris, Raja R Seethala José P Zevallos, Jason J Luke, Riyue Bao. Integrating artificial intelligence-driven digital pathology and genomics to establish patient-derived organoids as new approach methodologies for drug response in head and neck cancer. DOI: 10.1016/j.oraloncology.2025.107742

This repository stores codes and related files to generate the TransfNet-PDO model describled in "Doerfler, Chen, et al. Integrating Artificial Intelligence-Driven Digital Pathology and Genomics to Establish Patient-Derived Organoids as New Approach Methodologies for Drug Response in Head and Neck Cancer". 2025, Oral Oncology (in press).

Workflow schema

1. Install hover_net package following instructions on https://github.com/vqdang/hover_net

2. Download hover_net source codes from https://github.com/vqdang/hover_net

3. Install QuPath-0.5.1-arm64 or other versions that can run the groovy scripts included in this repository

4. Train hover_net model using annotated PDO cells

  1. Select tumor or normal regions on PDO whole slide images(eg: svs files)
  2. Manually draw and classify training tiles of 256 x 256 px within those regions
  3. Generate training tiles using genTilesFromAnn.groovy in qupath software
  4. Run default hover_net model to segment and predict cells on the training tiles
  5. Convert json files to geojson files for qupath software using json2gson function in util_train_prep
  6. In qupath software,import images and geojson files of training tiles and manually refine and annotate cell nuclei as tumor or normal
  7. Generate final training patches for hover_net model using gen_hvPatch function in util_train_prep.py
  8. Split training patches into training split and validation split
  9. Replace /hover_net/dataloader/train_loader.py with train_loader.py in modified_modules of this repository
  10. Replace /hover_net/models/hovernet/post_procss.py with train_loader.py in modified_modules of this repository
  11. Train new model following instructions on https://github.com/vqdang/hover_net

5. Predict new PDO samples using pre-trained model described in our paper:

  1. Download pre-trained model checkpoint from https://huggingface.co/jic115/TransferNet-PDO/tree/main
  2. Replace /hover_net/infer/wsi.py with wsi.py in modified_modules of this repository if many cells are not got predicted
  3. Download the infer directory from this repository and supplement proper information to the slurm files
  4. Run prediction on slurm-enabled GPU cluster using hv_pred_tile.slurm for tiles or hv_pred_wsi.slurm for whole slide images (eg:svs files)
  5. Convert the output jsons files to geojson files and count the cell number of each predicted cell type inside a PDO using count_cell_inside_PDO fuction in util_eval_prep.py
  6. Predict PDO type via majoirty voting

About

repository for TransferNet-PDO model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 97.1%
  • Python 2.7%
  • Other 0.2%