Projects / ΔΔG Calculator
Local Research Project

ΔΔG Protein Stability Calculator

High-Performance Protein Stability Engine — predicting the energetic impact of amino acid mutations using custom molecular mechanics force fields and GPU acceleration.

100xGPU Speedup
<20sPer Prediction
8h→20sCompute Time
1500Req/s Throughput
Python 3.11NumbaCUDA BioPythonFastAPIDocker KubernetesSciPy L-BFGS-B
Related Repo: Mutalyze (GitHub) ↗ ← All Projects

TL;DR — Quick Summary

  • Predicts protein stability changes (ΔΔG) upon amino acid mutation using an interpretable molecular mechanics force field rather than a black-box ML predictor.
  • Implements Lennard-Jones 12-6 VDW potentials, Coulomb electrostatics, AMBER ff14SB bonded terms, and analytical-gradient LCPO SASA solvation.
  • A 4-stage "Correct Workflow" (pre-minimisation → mutation → neighbourhood relaxation → ΔΔG) eliminates crystallographic strain artifacts exceeding 10⁸ kcal/mol.
  • Accelerated from O(N²) naive Python (8 hours) to GPU/KD-Tree O(N log N) kernels (<20 seconds), validated on p53 (1TUP) and Barnase.

The Physics Behind the Predictions

ΔΔG = Emutant − Ewild-type

Van der Waals (Lennard-Jones 12-6)

Models Pauli steric repulsion and London dispersion attraction to detect mutation-induced atomic clashes.

Coulomb Electrostatics

Distance-dependent dielectric ε(r) = r implicit screening capturing salt bridge formation and disruption.

Bonded Terms (AMBER ff14SB)

Harmonic bond, angle, and dihedral potentials keeping covalent geometry physically intact during energy minimisation.

LCPO Solvation (SASA)

Analytical-gradient solvent-accessible surface area paired with an N=5 SASA refresh cache for ~5x faster minimisation.

The 4-Stage Strain Relaxation Protocol

Raw PDB coordinates contain crystallographic strain (>100,000,000 kcal/mol). Mutating unrelaxed structures measures strain relief rather than mutation ΔΔG.
Validation CaseWild-Type EnergyMutant EnergyΔΔG (kcal/mol)Result
p53 1TUP — K101A−19,666.65−19,653.63+13.02Destabilising
Barnase — HIS102→SER+29,669.83+29,577.75−92.08Stabilising

Performance Optimisation & Production Infrastructure

PhaseTechniqueImpact
Phase 1 — Algorithmic12 Å KD-Tree spatial pruning in O(log N)Eliminates billions of distant atom pairs
Phase 2 — AccelerationNumba CPU prange & CUDA GPU kernels100x speedup for large proteins
Phase 3 — MemoryStructure-of-Arrays contiguous float64 layoutMaximises cache-line utilisation
Phase 4 — CloudFastAPI + Docker + Kubernetes + PrometheusBurst mutation screening microservice