Skip to content

v2.0.0: Fast ensembles for PROTAC degradation prediction

Latest

Choose a tag to compare

@ribesstefano ribesstefano released this 12 Oct 15:32
· 20 commits to main since this release
1351c73

TACK v2.0.0 adds fast ensembles: lightweight surrogate models that predict PROTAC degradation (Dmax, pDC50, activity) in seconds, on a laptop, with calibrated uncertainty. They need no GPU and, by default, no torch. The original deep-learning pipeline is still included.

Highlights

Fast ensembles (tackai.fusion)

  • Quick predictions. Score new molecules in a given biological context (POI, E3 ligase, cell line, assay, treatment time). Molecules are featurised on the fly, so unseen compounds work.
  • Three tasks: dmax, pdc50 (regression) and activity (binary).
  • Two model families:
    • M4: an exact Gaussian process with additive and cross-block product kernels (FusionEnsemble, gp extra).
    • M7: regularised gradient-boosted trees (XGBStackedEnsemble). It is the default and needs no torch.
  • Stacked ensembles with uncertainty. Members are combined by mixture-MLE (regression) or linear-pool (classification) weights. Uncertainty is calibrated by conformal intervals (regression) and temperature or Platt scaling (classification).
  • Fast inference. Float32 serving, one shared biological context per batch, and cached kernel terms.
  • Hub integration. from_pretrained / push_to_hub for ensembles (ailab-bio/TACK-Fast-Ensemble, with one subfolder per task) and for the context embeddings (ailab-bio/TACK-fusion-context).
  • Training tools. FusionData builds scaffold-grouped repeated-CV design matrices. Also included are: scripts/train_fast_models.py and scripts/calibrate_fast_models.py.
  • Easy to explore. Built-in help() methods on FusionData and XGBStackedEnsemble, and a Colab-ready tutorial (notebooks/fast_TACK_models_tutorial.ipynb).
from tackai.fusion import FusionData, XGBStackedEnsemble

ensemble = XGBStackedEnsemble.from_pretrained("ailab-bio/TACK-Fast-Ensemble", subfolder="dmax")

Lighter install

  • The base install runs FusionData and XGBStackedEnsemble without torch.
  • Optional extras: [gp] adds the GP surrogate and FusionEnsemble; [training] adds the legacy Hydra/Lightning/Optuna stack.
  • Unseen assay types fall back to an "unknown" embedding with a warning, so no sentence-transformer is required.

Legacy pipeline (unchanged)

tack train / predict / collect / evaluate and EnsemblePredictor still work as before, including the pre-trained ensembles (ailab-bio/TACK-ensembles).

Breaking changes

  • Dependencies moved. The heavy legacy stack (gdown, h5py, Lightning, Optuna, Transformers, Hydra, …) is no longer in the base install. Use pip install "tackai[training]" for tack train / tack predict. [dev,gp,training] runs the full test suite.

Install

git clone https://github.com/ribesstefano/TACK/
cd TACK
pip install .                  # fast ensembles (XGBoost), no torch
pip install ".[gp]"            # + GP surrogate
pip install ".[gp,training]"   # + legacy pipeline 

On macOS, set OMP_NUM_THREADS=1 when torch and xgboost are used in the same process.