Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RP-PROTAC

Official repository for Reliable prediction of PROTAC-mediated targeted protein degradation via uncertainty quantification

Prerequisites

  • OS: Linux/Ubuntu (Recommended)
  • Conda: Anaconda or Miniconda installed
  • GPU: NVIDIA GPU with CUDA support (Recommended for faster embedding and training)

Getting Started

Follow the steps below to set up environment, process data, train the ensemble model, and evaluate its performance.

Step 1: Environment Setup

We recommend using Conda to manage your Python environment. Create a new environment with Python 3.10 and install the required dependencies.

# Create a new conda environment named 'rpprotac'
conda create -n rpprotac python=3.10 -y

# Activate the environment
conda activate rpprotac

# Install the required libraries
pip install -r requirements.txt

Step 2: Data Processing (Embedding Generation)

Before training the model, you need to generate the representations for both compounds (SMILES) and proteins (Amino Acid sequences). This script utilizes a pre-trained GNN (LEMON) and an PLM (ESM-2) to extract features and save them as .pt files in the data/directory.

python data_processing.py

Step 3: Model Training

Train the ensemble model. The training script will automatically split the training data, apply label smoothing and Monte Carlo sampling (reparameterization trick) for uncertainty estimation, and train multiple models using different random seeds.

# Run the ensemble training script
python train_ensemble.py

By default, this will train 10 models (seeds) and save the best weights for each in the weights/ directory. You can adjust hyperparameters like --num_seeds, --batch_size, or --lr via command-line arguments.

Step 4: Model Evaluation

Evaluate the trained ensemble models on out-of-distribution (OOD) test datasets (Unseen Pair, Unseen POI, Unseen PROTAC, and Unseen Both). The script calculates both the deterministic performance of individual models and the aggregated ensemble performance.

# Run the evaluation script
python test_ensemble.py

The evaluation metrics (AUROC, AUPR) will be printed in the console, and the detailed predictions will be saved as a CSV file in the predictions/ directory.

About

Official repository for Reliable prediction of PROTAC-mediated targeted protein degradation via uncertainty quantification

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages