TCRbridge predicts TCR-pMHC reactivity from AlphaFold3 output.
- Clone the repo:
git clone https://github.com/schumacherlab/TCRbridge.git
- Navigate to the project directory:
cd TCRbridge - Create conda environment:
conda env create -f tcrbridge_env.yml conda activate tcrbridge_env
For smaller sets of TCR-pMHC complexes alphafoldserver.com should suffice. The webserver allows for up to 20 protein complex predictions per day.
Follow instructions from https://github.com/google-deepmind/alphafold3 for local installation.
TCRbridge builds upon AlphaBridge (commit 3be1a44). To setup AlphaBridge:
- Clone AlphaBridge
cd TCRbridge
git clone https://github.com/PDB-REDO/AlphaBridge.git
cd AlphaBridge
git checkout 3be1a44- Inside
/TCRbridge/AlphaBridge/define_interfaces.pyadaptdefine_interfaces()function to only calculate the metrics forcontact_threshold_list = [0.4].
We ran all AlphaFold3 structure predictions on a sinlge A100 GPU. Calculating the TCRbridge score from AlphaFold3 output can be done on any machine in minutes.
-
Generate the input files for Alphafold3
Input data requirements:
- CSV file with columns:
tcr_id,full_seq_reconstruct_alpha_aa,full_seq_reconstruct_beta_aa,epitope_aa - The TCR alpha and beta sequences must be full-length sequences
- The epitope sequence must match the peptide presented by HLA-A2 (otherwise you will need to adapt the .py script)
python tcrbridge/make_af3_job_requests.py input_data.csv af3_job_requests/af3_job_request.json
- CSV file with columns:
-
Generate the AF3 structures
Option 1: Using alphafoldserver.com (recommended for <20 structures)
- Upload the generated json file to alphafoldserver.com
- Download and extract the results to your output directory
Option 2: Using local AlphaFold3 installation
# Adapt paths in scripts/predict_structure_with_af3.sh to match your installation sbatch scripts/predict_structure_with_af3.sh af3_job_requests/af3_job_request.json /your/af3_structures/output/path/ -
Calculate interfaces and TCRbridge score for each TCR-pMHC complex
# The script will: # 1. Calculate interfaces using AlphaBridge # 2. Generate TCRbridge scores for each structure # 3. Save predictions to .csv bash scripts/predict_tcrbridge.sh /your/af3_structures/output/path/ TCRbridge_predictions.csv
Output:
TCRbridge_predictions.csvcontaining TCR IDs and their TCRbridge scores
BioRxiv link here
DOI: https://doi.org/10.1101/2025.04.28.651095
Distributed under the Apache 2.0 License.