Repository navigation
PROTAC-Splitter v1.5.0
Highlights
- New XGBoost graph-edge-classifier splitting strategy.
split_protacnow supports an XGBoost-based graph edge classifier (auto-downloaded to~/.cache/protac_splitter/on first use) as an alternative to the Transformer model, with the betweenness-centrality heuristic available as a fallback/cascade option. E3-vs-warhead assignment after splitting was also improved (max-similarity comparison instead of mean distance). - Refactored model-selection API.
split_protac()and the CLI gained a unifiedmodel=strategy selector covering all splitting-strategy combinations (e.g.transformer->xgboost,xgboost->heuristic), replacing the old single-model signature. Docs, README, and CLI examples were updated to match. - Production reliability fixes for the Gradio app / HF Space, found via an intermittent hang on the deployed Space:
- Fixed a fork-safety deadlock where
datasets'num_proc=1forked a worker process after XGBoost/OpenBLAS had already initialized native threads in the parent. - Constrained native math library threading (OpenBLAS, MKL, NumExpr, VecLib, BLIS) so container CPU quotas are respected instead of stalling predictions.
- Added connect/read timeouts and retries to the XGBoost model download, writing to a temp file first so a killed download can't poison the cache.
- Seeded the XGBoost model cache from a bundled copy when shipped alongside the app, skipping the runtime Zenodo download entirely.
- Gave single-SMILES and CSV-batch requests their own bounded concurrency lanes in the Gradio queue.
- Pinned the HF Space's
protac-splitterdependency to the exact deploying commit SHA so stale builds can't survive a rebuild.
- Fixed a fork-safety deadlock where
Other improvements
- Added an optional
betweenness_approx_fracparameter to trade betweenness-centrality accuracy for speed on large graphs. - Major build refactor to
uv/pyproject.toml-based packaging with optional extras (transformer,training,scripts,dev); CI updated to install accordingly. - Added MIT License.
- Dependency cleanup: removed Optuna from required dependencies; aligned
transformers/rdkitversion pins. - Various README, CLI, and Gradio app UX updates.
Installation
pip install git+https://github.com/ribesstefano/PROTAC-Splitter.gitData & Models
Curated datasets and trained models are available at Zenodo.
Full changelog: v1.0.0...v1.5.0