Complete, zero-hardcoding, publication-grade GROMACS 2025/2026+ Jupyter Notebooks for atomistic Protein-in-Water and Protein–Ligand Complex Molecular Dynamics (MD) simulations, engineered for Kaggle (GPU T4 x2) and Google Colab.
Built upon Justin Lemkul's updated GROMACS 2025/2026 tutorials with full MacKerell Lab CHARMM36 (Feb 2026, CGenFF 5.0) support, automated AMBER + GAFF2 (ACPYPE / AmberTools) ligand parameterization, live-editable .mdp parameter files and CLI commands, interactive 3D structure/trajectory visualization, statistical convergence verification, and automated multi-panel post-MD analysis.
Author: Siddharth Tripathi, M.Sc. Bioinformatics
Gromacs/
├── README.md
├── LICENSE
├── .gitignore
├── 01_lysozyme_in_water/
│ ├── README.md
│ └── gromacs_protein_water.ipynb
└── 02_protein_ligand_complex/
├── README.md
└── gromacs_protein_ligand.ipynb
- No Black Boxes: Python UI boilerplate is cleanly collapsed so you see a streamlined scientific workbench, while every GROMACS CLI command and every
.mdpparameter file (ions.mdp,em.mdp,nvt.mdp,npt.mdp,ie.mdp,md.mdp) is displayed, live-synced to widgets, directly editable before execution, and persisted inpipeline_state.json. - Zero Hardcoding & Exact Reproducibility: Every simulation parameter (timestep, temperature, barostat, pressure, duration preset, coupling groups,
gen_seed, cutoffs,-maxwarn, plot Y-axis scalingTutorial Scale/Auto/Custom Min/Max) is user-controlled. Leaving defaults unmodified reproduces Justin Lemkul's updated GROMACS 2025/2026 benchmarks. - Force-Field Consistency & Physics Guardrails:
- CHARMM36 family:
rcoulomb = 1.2,rvdw = 1.2,vdw-modifier = force-switch,rvdw-switch = 1.0,DispCorr = no,constraints = h-bonds,nstlist = 10across every.mdpfile (includingions.mdpandem.mdp). - AMBER / OPLS-AA families:
rcoulomb = 1.0,rvdw = 1.0,DispCorr = EnerPres,constraints = h-bonds. - GROMOS family:
rcoulomb = 1.4,rvdw = 1.4,DispCorr = EnerPres,constraints = all-bonds. - Guardrail Enforcement: In the Protein–Ligand notebook, incompatible pairings (such as mixing
CHARMM36protein topology withGAFF2/ACPYPEligand parameters) are explicitly blocked beforepdb2gmxorgrompp.
- CHARMM36 family:
- No Silent Warning Suppression:
-maxwarndefaults strictly to0(editableinteger widget) and never silently masks topology or coordinate mismatches. - Dual Statistical Verification: Equilibration cards display both GROMACS
gmx energyfull-precision block statistics (average + RMSD + drift) and.xvgddof=1sample statistics side-by-side so convergence can be evaluated rigorously.
For fast, uninterrupted 10 ns MD runs on Kaggle:
- Accelerator: Select
GPU T4 x2under Session options -> Accelerator. Step 1 automatically detects the GPU vianvidia-smiand installs CUDA-enabledgromacs=*=nompi_cuda*(preventing fallback to CPU/OpenCL builds). For ~26k–35k-atom solvated systems, single-GPU CUDA offload (-ntmpi 1 -nb gpu -pme gpu -bonded gpu -update gpu) delivers maximum throughput without inter-GPU PCIe communication overhead; the second T4 GPU can be used for a simultaneous independent replica (CUDA_VISIBLE_DEVICES=1). - Internet: Turn On in Session options -> Internet so Step 1 can fetch GROMACS, MacKerell Lab CHARMM36 (
charmm36-feb2026_cgenff-5.0.ff.tgz), and RCSB PDB structures (1AKI,3HTB), or installAmberTools/ACPYPEon demand. - Persistence: Set Session options -> Persistence to
Files onlyso/kaggle/working/gmx_*outputs, checkpoints (md_0_10.cpt), trajectories, and plots survive session restarts and disconnects. - Interactive 3D Viewer (Optional Dependency Manager): Add
pip install py3Dmol networkxin Kaggle's Dependency Manager if you want the 3D viewer pre-installed (Step 1 also installs it automatically when needed).
- Click Run All once to initialize all widgets,
.mdpeditors, and workspace directories (Duration Preset: chooseTutorial 10 ns Benchmarkfor full scientific runs orQuick Smoke Test (ps)to test custom structures/ligands in minutes). - Review or customize parameters step-by-step (Steps 1–12), verify live CLI commands and
.mdpcontents, and click each stage's confirmation button—or use the optional Batch Runner in Step 1 after verifying setup. - On Kaggle (
Persistence: Files only), enableResume / Skip completed stagesin Step 1 to recover seamlessly frommd_0_10.cpt(mdrun -cpi) after session limits. - Use Step 12 (Export) to download categorized
.ziparchives (plots_figures,trajectories_structures,mdp_topologies,logs_metrics, or full workspace).
GROMACS 2025 · GROMACS 2026 · Molecular Dynamics · Protein-Ligand Complex · Protein in Water · CHARMM36 · CGenFF · AMBER14SB · GAFF2 · ACPYPE · AmberTools · Lysozyme 1AKI · T4 Lysozyme 3HTB · Google Colab MD · Kaggle GPU T4 · Drug Discovery · In Silico Screening · Binding Stability · RMSD · RMSF · Free Energy Landscape · PCA · SASA · DSSP · gmx_MMPBSA · Computational Biophysics · Bioinformatics
- Lemkul, J. A. (2019–2026). From Proteins to Perturbed Hamiltonians: A Suite of Tutorials for the GROMACS-2018+ Molecular Simulation Package (mdtutorials.com). Living Journal of Computational Molecular Science, 1(1), 5068.
- MacKerell Lab CHARMM36 Force Field (
charmm36-feb2026_cgenff-5.0.ff) — University of Maryland, Baltimore. - Abraham, M. J., et al. (2015–2026). GROMACS: High performance molecular simulations through multi-level parallelism from laptops to supercomputers. SoftwareX, 1–2, 19–25.
- Sousa da Silva, A. W., & Vranken, W. F. (2012). ACPYPE - AnteChamber PYthon Parser interfacE. BMC Research Notes, 5, 367.
Released under the MIT License.
Author: Siddharth Tripathi, M.Sc. Bioinformatics — GitHub: @sid0sid-ops