Skip to content
uhlerlabPublic

About

Deep learning-based analysis reveals patient-level proton radiation therapy trajectories using single-cell PBMC chromatin images

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Deep learning-based analysis reveals patient-level cancer therapy trajectories using single-cell PBMC chromatin images

This repository contains code for the paper "Deep learning-based analysis reveals patient-level cancer therapy trajectories using single-cell PBMC chromatin images" which analyzes PBMC chromatin images from 5 timepoints from patients undergoing proton radiation therapy and healthy volunteers to create patient trajectories and associate these with therapy outcomes.

Data

The dataset used in this project can be downloaded at TODO.

Repository overview

  • notebooks contains jupyter notebooks for segmenting and pre-processing the dataset and training models used in the paper's results. See notebooks/README.md for further details.
  • figure_notebooks contains jupyter notebooks to reproduce the paper's main and supplementary figures. See figure_notebooks/README.md for further details.
  • scripts contains scripts for randomizing the plate layouts and extracting chrometric features from the pre-processed images. See scripts/README.md for further details.
  • meta contains select metadata needed for the figures and plate layout generation.
  • foundation_models contains loaders and vendored model code for the frozen foundation-model feature extractors (DinoBloom, SubCell) used in one supplementary figure.

The .py files at the top level are the shared modules the notebooks import, not runnable scripts:

  • data.py loads and merges the pre-bundled per-plate images, metadata, and optional features.
  • models.py contains the cell-level classifiers and the multiple instance learning models.
  • training.py contains the training loops.
  • eval.py contains evaluation and clustering helpers.
  • util.py contains small shared helpers.

Pipeline order

  1. notebooks/segmentation.ipynb to segment the 3D microscopy images.
  2. notebooks/preprocessing.ipynb to apply quality control, extract cell crops, and bundle the data.
  3. scripts/extract_chrometric.py if you want the chrometric features.
  4. The cell-level model and MIL notebooks to train the models.
  5. notebooks/trajectory_scores.ipynb to compute the trajectories from the healthy vs. cancer classifiers. This has to be run before the MIL trajectory notebooks, which use the trajectory groups as labels.
  6. figure_notebooks to reproduce the figures.

Dependencies:

Python:

This repository was developed using Python 3.9. You can use Conda to create a virtual environment for a specific Python version. Additional required packages are listed in requirements.txt and can be installed using the following command:

pip install -r requirements.txt

Installing dependencies can take a few minutes or up to an hour dependending on how many packages need to be downloaded rather than reusing cached versions.

A few steps need additional packages that we installed in separate environments, as they conflict with the requirements above:

Operating system and hardware:

We developed this code on a machine running Rocky Linux 8.8 (Green Obsidian) and equipped with an NVIDIA RTX A6000 GPU.

Citation

If you use this code or data, please cite:

Schlüter, H. M., Sornapudi, T. R., Leiser, D., Koller, S., Karavelioglu, Z., Uhler, C., & Shivashankar, G. V. Deep learning-based analysis reveals patient-level cancer therapy trajectories using single-cell PBMC chromatin images. Scientific Reports (2026). https://doi.org/10.1038/s41598-026-74792-x

@article{schluter2026deep,
  title   = {Deep learning-based analysis reveals patient-level cancer therapy trajectories using single-cell {PBMC} chromatin images},
  author  = {Schl{\"u}ter, Hannah M. and Sornapudi, Trinadha Rao and Leiser, Dominic and Koller, Sandra and Karavelioglu, Zeynep and Uhler, Caroline and Shivashankar, G. V.},
  journal = {Scientific Reports},
  year    = {2026},
  doi     = {10.1038/s41598-026-74792-x},
  url     = {https://www.nature.com/articles/s41598-026-74792-x}
}

Claude Code assisted with the analysis code for the revisions to this work.

About

Deep learning-based analysis reveals patient-level proton radiation therapy trajectories using single-cell PBMC chromatin images

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages