This repository contains the scripts used in the model and analyses described in the manuscript titled: "Learning Patient Similarity from Genomics for Precision Oncology".
Shady M, Reardon B, Jiang S, Pimenta E, O'Meara T, Park J, Kehl KL, Elmarakeby HA, Sunyaev SR, Van Allen EM. Learning Patient Similarity from Genomics for Precision Oncology. medRxiv [Preprint]. 2025 Dec 18:2025.12.17.25342480. doi: 10.64898/2025.12.17.25342480. PMID: 41445600; PMCID: PMC12723981.
All the code required is available in this repo, and should be run in Python (version >= 3.9.12)
import argparse
import os
import yaml
import tqdm
import pandas # version 1.4.2
import numpy # version 1.22.3
import scipy # version 1.10.0
import matplotlib # version 3.5.1
import seaborn # version 0.11.2
import comut # version 0.0.3
import lifelines # version 0.27.7
import survive # version 0.3
import pytorch # version 1.12.1
import scikit-learn # version 1.0.2
import tensorboard # version 2.9.0
The code is supported for macOS and Linux and has been tested on the following systems:
macOS Big Sur Version 11.6
macOS Sonoma Version 14.8.4
Linux Ubuntu 18.04 LTS
Model training was performed on Google Cloud Platform (GCP) with the following configuration:
Compute instance: c2-standard-60 (60 vCPUs, 240 GB Memory)
CPU platform: Intel Cascade Lake
Disk: 200 GB SSD persistent disk
Operating System: Ubuntu 18.04 LTS (Linux)
GNU GENERAL PUBLIC LICENSE (Version 2)