CancerFoundation: A single-cell RNA sequencing foundation model to decipher drug resistance in cancer
We present CancerFoundation, a novel single-cell RNA-seq foundation model (scFM) trained exclusively on malignant cells. Despite being trained on only one million total cells, a fraction of the data used by existing models, CancerFoundation outperforms other scFMs in key tasks such as zero-shot batch integration and drug response prediction. During training, we employ tissue and technology-aware oversampling and domain-invariant training to enhance performance on underrepresented cancer types and sequencing technologies. We propose survival prediction as a new downstream task to evaluate the generalizability of single-cell foundation models to bulk RNA data and their applicability to patient stratification. CancerFoundation demonstrates superior batch integration performance and shows significant improvements in predicting drug responses for both unseen cell lines and drugs. These results highlight the potential of focused, smaller foundation models in advancing drug discovery and our understanding of cancer biology.
Make sure you have Conda installed on your machine.
-
Clone the repository:
git clone https://github.com/BoevaLab/CancerFoundation.git cd CancerFoundation
-
Create the Conda environment:
conda env create -f environment.yml
-
Activate environment:
conda activate cancerfoundation
-
Download pretrained model weights:
Please download the pretrained model from this link, unzip it, and place it in the following directory:
model/assets
.
Please consult tutorial/embeddings_tutorial.ipynb
for a tutorial on how to generate embeddings with CancerFoundation for your scRNA-seq data.
Refer to drug_response_prediction/README.md
for instructions on performing drug response prediction.
Refer to zero_shot_batch_integration/README.md
for instructions on performing and evaluating zero-shot batch integration.