Per-residue protein–RNA binding-site prediction from sequence alone. Given a protein sequence and an RNA sequence, RPFace scores every amino acid and every nucleotide for how likely it is to be in the binding interface.
Two trained models are released:
| model | file | use it for |
|---|---|---|
| RPFace | checkpoints/RPFace.pt |
general protein–RNA binding sites |
| RPFace_CLIP | checkpoints/RPFace_CLIP.pt |
CLIP crosslink sites (fine-tuned on eCLIP) |
Both have the same architecture (2.1 M trainable parameters) and use frozen inputs: Boltz-2 trunk embeddings, ESM2 (protein), RNA-FM (RNA) and ViennaRNA base-pair probabilities.
| mean per-complex AUROC | validation protein | validation RNA | docking benchmark protein | docking benchmark RNA |
|---|---|---|---|---|
| RPFace | 0.887 | 0.807 | 0.782 | 0.644 |
| AlphaFold3 | 0.880 | 0.767 | — | — |
| Boltz (MSA) | 0.863 | 0.667 | — | — |
| HDOCKlite | — | — | 0.741 | 0.645 |
git clone https://github.com/ciceklab/RPFace.git
cd RPFace
python -m venv .venv && . .venv/bin/activate # Python 3.10, PyTorch 2.x with CUDA
pip install -r requirements.txt
pip install git+https://github.com/ml4bio/RNA-FM.git # RNA-FM (not on PyPI)
pip install boltz==2.2.1 # Boltz-2 embeddings for new inputsModels and data tables are on Zenodo: 10.5281/zenodo.24051881
RPFace/
checkpoints/RPFace.pt
checkpoints/RPFace_CLIP.pt
datasets/train_pairs.csv, val_pairs.csv, clip_train_windows.csv,
benchmark_{docking,validation,clip}.csv
See checkpoints/README.md and datasets/README.md.
The RNA-FM weights go in weights/RNA-FM_pretrained.pth (or set RNAFM_WEIGHTS). ESM2 is
downloaded automatically.
Check the install:
python tests/test_smoke.py # ends with "all checks passed"# RPFace
./scripts/run_predictions.sh --input examples/example.fasta --out preds/ --embed
# RPFace_CLIP
CKPT=checkpoints/RPFace_CLIP.pt ./scripts/run_predictions.sh \
--input examples/example.fasta --out preds/ --embed--embed first computes the Boltz-2 embeddings (GPU, the slow step). They are required: the
model refuses to run without them.
Input is YAML, FASTA or JSON (see examples/):
>my_complex|protein
MKTAYIAKQR...
>my_complex|rna
GGCUAUAGCUCAG...
Output is one preds/<id>.npz per complex:
import numpy as np
d = np.load("preds/my_complex.npz")
d["protein"] # (n_residues,) score per amino acid, N->C
d["rna"] # (n_nucleotides,) score per nucleotide, 5'->3'Scores are rankings, not calibrated probabilities: take the top-k residues rather than thresholding at 0.5.
First rebuild the training data from the CSVs (details in datasets/README.md):
python scripts/build_pdb_dataset.py --csv datasets/train_pairs.csv --split train # PDB crops
python scripts/build_pdb_dataset.py --csv datasets/val_pairs.csv --split val
python scripts/build_clip_dataset.py --csv datasets/clip_train_windows.csv --split train
python scripts/build_clip_dataset.py --csv datasets/benchmark_clip.csv --split test_subsetThe PDB step downloads structures and is followed by a Boltz-2 embedding step (see the
script's docstring); the CLIP step is followed by src/precompute_clip_features.py.
Then train:
bash scripts/train_rpface.sh # RPFace (200 epochs, ~4 days on one GPU)
bash scripts/train_rpface_clip.sh # RPFace_CLIP (fine-tunes checkpoints/RPFace.pt)python benchmark/code/evaluate.py --split validation # or docking_benchmark, clip
python results/build_clip_m3.py # M3 metric on the CLIP splitOn the CLIP split, AUROC is not a valid metric; we use M3 (see
results/clip_metric.md).
| path | contents |
|---|---|
src/ |
model, training, feature extraction, Boltz-2 embedding, inference |
scripts/ |
prediction and training launchers |
data/paths.py |
all data paths, each overridable by an environment variable |
benchmark/ |
evaluation splits and scoring code (benchmark/code/README.md) |
benchmark_structures/ |
AlphaFold3, Boltz-2 and RoseTTAFold2NA baseline structures |
results/ |
metrics and analysis (results/README.md) |
examples/ |
example inputs |
checkpoints/, datasets/ |
download from Zenodo |
Code, models and data are released under
CC BY-NC 4.0 (non-commercial use). See LICENSE.