Skip to content

CancerFoundation: A single-cell RNA sequencing foundation model to decipher drug resistance in cancer

License

Notifications You must be signed in to change notification settings

BoevaLab/CancerFoundation

Repository files navigation

CancerFoundation: A single-cell RNA sequencing foundation model to decipher drug resistance in cancer

Preprint   License

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.

Installation

Prerequisites

Make sure you have Conda installed on your machine.

Step-by-Step Guide

  1. Clone the repository:

    git clone https://github.com/BoevaLab/CancerFoundation.git
    cd CancerFoundation
  2. Create the Conda environment:

    conda env create -f environment.yml
  3. Activate environment:

    conda activate cancerfoundation
  4. Download pretrained model weights:

    Please download the pretrained model from this link, unzip it, and place it in the following directory: model/assets.

Generate embeddings

Please consult tutorial/embeddings_tutorial.ipynb for a tutorial on how to generate embeddings with CancerFoundation for your scRNA-seq data.

Drug response prediction

Refer to drug_response_prediction/README.md for instructions on performing drug response prediction.

Zero-shot batch integration

Refer to zero_shot_batch_integration/README.md for instructions on performing and evaluating zero-shot batch integration.

About

CancerFoundation: A single-cell RNA sequencing foundation model to decipher drug resistance in cancer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published