Documentation: https://elkins-lab.github.io/torsion-tuner/
Static snapshots of proteins, such as those from AlphaFold, often miss the subtle dynamic nuances of molecules in their natural, solution-state environments. Torsion-Tuner bridges this gap. It is a specialized machine learning engine that "nudges" idealized structures into better agreement with real-world experimental data.
Traditional refinement often breaks the laws of chemistry -β bond lengths stretch and angles distort -β just to fit noisy data.
By operating exclusively in torsional space (
- π°οΈ Differentiable Kinematics: Powered by a JAX-native implementation of the Natural Extension Reference Frame (NeRF) algorithm.
- π§ Geometric GNN: An Equinox-based Graph Neural Network that captures both sequential (backbone) and spatial (3D contact) relationships.
- βοΈ Multi-Objective Optimization: Simultaneously fits SAXS profiles, backbone chemical shifts, and structural geometry (Ramachandran regularization).
- π§ͺ Evidence-Based: Rooted in refinement strategies pioneered by the Montelione Group.
git clone https://github.com/elkins-lab/torsion-tuner.git
cd torsion-tuner
pip install -e .# Generate a sample helix using synth-pdb
synth-pdb --length 20 --conformation alpha --output test_helix.pdb
# Run the refinement pipeline
python -m torsiontuner.trainExperience Torsion-Tuner directly in your browser:
Multi-Modal GNN Refinement β Learn how to refine protein structures using GNNs against SAXS and NMR data.
The project is structured for transparency and modularity:
torsiontuner/data.py: PDB loading and graph construction.torsiontuner/model.py: The GNN architecture and message-passing layers.torsiontuner/kinematics.py: The differentiable bridge between angles and 3D space.torsiontuner/montelione_utils.py: Chemical shift losses and quality proxies.torsiontuner/train.py: The training orchestration and optimization loop.
This project implements refinement strategies for integrating AI-predicted structures with NMR data.
-
Chemical Shift Driven Refinement: Using
$C_\alpha$ shift prediction to improve AlphaFold model accuracy. - Scientific Validation: Rigorous benchmarking against the NESG "Blind" Dataset. See our Scientific Validation Roadmap for more details.
-
Dihedral Angles (
$\phi, \psi$ ): The rotation angles of the protein backbone that define its overall 3D fold. - NeRF (Natural Extension Reference Frame): An algorithm used to convert internal coordinates (angles/lengths) into 3D Cartesian coordinates.
- CSRMSD: Chemical Shift Root-Mean-Square Deviationβa measure of how well a structure fits experimental NMR data.
- Ramachandran Regularization: A soft potential penalizing phi/psi values outside the favored backbone geometry regions (alpha-helix, beta-strand, left-handed alpha). Used as a training-time regularizer; analogous to the Ramachandran terms in CNS and Rosetta. For post-refinement backbone quality assessment, see PROCHECK or MolProbity. For NMR-specific structure accuracy validation, see ANSURR (Fowler et al. 2020, Nature Commun.).
- SAXS (Small-Angle X-ray Scattering): A technique that provides information on the overall shape, size, and dynamics of proteins in solution.
- RPF Scores: Huang, Y. J., et al. (2005). J. Am. Chem. Soc., 127(5), 1665β1674.
- Rosetta Refinement: Mao, B., et al. (2014). J. Am. Chem. Soc., 136(5), 1893β1906.
- AlphaFold-NMR Assessment: Li, E. H., et al. (2023). J. Magn. Reson., 352, 107481.
- Debye Formula for SAXS: Debye, P. (1915). Annalen der Physik, 351(6), 809-876.
We welcome contributions from both the Machine Learning and Structural Biology communities!
- Bugs/Features: Please open an issue.
- Questions: Visit our Documentation or reach out via GitHub Discussions.
This project is licensed under the MIT License - see the LICENSE file for details.
Torsion-Tuner depends on and integrates with:
- diff-biophys β JAX differentiable kernels for SAXS and NMR losses
- synth-pdb β Synthetic PDB generation for training and validation
- synth-nmr β Chemical shift prediction and NMR observables
- synth-saxs β SAXS profile simulation for loss computation
- diff-ensemble β Ensemble-level counterpart using a VAE architecture
@software{torsiontuner,
author = {Elkins, George},
title = {Torsion-Tuner: GNN-based protein structure refinement in torsional space},
year = {2026},
url = {https://github.com/elkins-lab/torsion-tuner},
version = {0.1.3}
}