An open API service indexing awesome lists of open source software.

https://github.com/BoevaLab/CancerFoundation

CancerFoundation: A single-cell RNA sequencing foundation model to decipher drug resistance in cancer
https://github.com/BoevaLab/CancerFoundation

cancer foundation-model single-cell

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

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

[![Preprint](https://img.shields.io/badge/preprint-available-brightgreen)](https://www.biorxiv.org/content/10.1101/2024.11.01.621087v1)  
[![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/BoevaLab/CancerFoundation/blob/main/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](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html) installed on your machine.

### Step-by-Step Guide

1. **Clone the repository**:

```bash
git clone https://github.com/BoevaLab/CancerFoundation.git
cd CancerFoundation
```
2. **Create the Conda environment**:
```bash
conda env create -f environment.yml
```
3. **Activate environment**:
```bash
conda activate cancerfoundation
```
4. **Download pretrained model weights**:

Please download the pretrained model from [this link](https://polybox.ethz.ch/index.php/s/pZR9VH7uEHwO5CL), 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.