pdb2reaction Documentation¶
pdb2reaction is a Python CLI toolkit for analyzing reaction mechanisms in enzyme complexes and small molecules with machine-learning interatomic potentials (MLIPs), starting from PDB/mmCIF/XYZ/GJF structures.
New to pdb2reaction? Start with Getting Started.
Quick start¶
Analyze the mechanism end to end from the structures before and after the reaction
Analyze the mechanism end to end from one structure
Analyze the mechanism end to end from a TS structure
Goal |
Page |
|---|---|
Build the cluster model |
|
Analyze reaction mechanisms of small molecules |
|
Analyze reaction mechanisms and search for transition states |
|
Optimize the MLIP TS structure with DFT |
|
Investigate why a calculation failed |
Subcommands¶
Subcommand |
Description |
|---|---|
Takes one of the three input modes (Endpoint mode, Scan-list mode, TS-only mode): reactant and product structures, a reactant and a list of reaction coordinates, or a TS candidate structure. Runs model building → MEP search → TS optimization + IRC calculation → thermochemical analysis → DFT single-point calculation in one command. Each stage can be switched on or off. Accepts enzyme complexes and small molecules. |
|
Build a cluster model by cutting the active site out of a protein–ligand complex |
|
Single-structure geometry optimization (L-BFGS or RFO available) |
|
Transition state (TS) optimization of a single structure (Dimer or RS-P-RFO), giving a structure with one imaginary mode. |
|
Single-step minimum energy path (MEP) optimization by the Growing String method (GSM) or the Direct Max Flux method. Builds the trajectory of the structural change along the reaction from the reactant and product structures. |
|
Recursive MEP search that automatically detects multistep reactions and builds a multistep minimum energy path. Accepts reactant, intermediate, and product structures. |
|
Scan the energy change with distances, angles, or dihedrals as variables (concerted and multistage scans supported) |
|
Two-dimensional energy-landscape exploration and 2D PES mapping |
|
Three-dimensional energy-landscape exploration and 3D PES mapping |
|
Vibrational frequency analysis and thermochemical analysis |
|
Intrinsic Reaction Coordinate calculation |
|
Single-point DFT calculations (GPU4PySCF / PySCF) |
|
Resolve PDB alternate locations |
|
Repair PDB element columns (77–78) |
|
Single-point calculation with an MLIP (energy + forces / Hessian) |
|
Plot energy profiles from XYZ trajectories written by pdb2reaction |
|
Draw an energy diagram from numeric values |
|
Detect and report covalent bond changes between structures of multiple states |
Configuration and reference¶
Topic |
Page |
|---|---|
Common options and input requirements |
|
Frozen atoms and distance restraints ( |
|
Common errors and fixes |
|
CLI command reference |
|
YAML configuration options |
|
MLIP backend settings |
|
Details of the files and directories each command writes |
|
Details of the keys in the JSON result files |
|
Example job scripts for PBS and Slurm |
|
Let an AI agent use pdb2reaction |
|
Code structure (for developers) |
|
Terminology |
System requirements¶
OS: Linux (WSL2/Docker recommended on Windows/Mac).
Python: 3.12 (recommended) or 3.13. ORB requires 3.12.
PyTorch: CUDA (recommended) or CPU build.
GPU: at least 8 GB of VRAM. CPU execution is also supported but slower. Compatible NVIDIA driver. UMA also requires GCC and the CUDA Toolkit at runtime.
RAM / VRAM: with the default UMA model, a single point needs about 4 GB of VRAM for ~350 atoms, 8 GB for ~850 atoms, and 16 GB for ~1,750 atoms; a Hessian needs about the same. 8 GB of RAM is enough.
See Installation for setup.
Agent skills¶
pdb2reaction ships guides for AI agents in skills/ that describe how to use the tool and the steps of reaction-mechanism analysis.
They cover CLI commands, structure I/O, backend installation, workflows, output analysis, and HPC use. To install them, tell your AI agent:
Import
https://github.com/t-0hmura/pdb2reaction/tree/main/skillsas skills, and install pdb2reaction by followingpdb2reaction-install.
If you cloned the GitHub repository, you can give the local skills/ path instead. Then you can ask, for example:
Read the paper, build a model from the PDB structure PDB ID, and study the mechanism of the reaction step with the pdb2reaction skills.
For details, see Skills for AI Agents.
Citation¶
If you use pdb2reaction in your research, cite the following paper:
@article{ohmura2026pdb2reaction,
author = {Ohmura, Takuto and Sato, Hajime and Terada, Tohru},
title = {pdb2reaction: End-to-End Reaction-Path Elucidation from PDB Structures Using Machine-Learning Interatomic Potentials},
journal = {ACS Omega}, year = {2026}, doi = {10.1021/acsomega.6c08242}
}
To cite the software or a specific release, use the Zenodo record:
@software{ohmura2026pdb2reaction_software,
author = {Ohmura, Takuto},
title = {pdb2reaction},
year = {2026},
version = {0.8.0},
url = {https://github.com/t-0hmura/pdb2reaction},
license = {GPL-3.0},
doi = {10.5281/zenodo.19197865}
}
License¶
GNU General Public License v3 (GPL-3.0).
Getting Help¶
# General help
pdb2reaction --help
# Command help
pdb2reaction <subcommand> --help
# Advanced options (internal tuning)
pdb2reaction <subcommand> --help-advanced
Report problems and feature requests on GitHub Issues.