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, trim, or extend the cluster model |
|
Analyze a small-molecule reaction |
|
Study a mechanism, or the TS search fails |
|
Optimize the TS structure with DFT |
|
A run failed |
Subcommands¶
Subcommand |
Description |
|---|---|
Optional extraction; one of the three input modes (Endpoint mode, Scan-list mode, TS-only mode); optional TS/IRC, thermochemistry, and DFT stages |
|
Extract active site model (binding pocket) from protein–ligand complex |
|
Resolve PDB alternate locations |
|
Repair PDB element columns (77–78) |
|
Single-structure geometry optimization (L-BFGS or RFO; optional |
|
Transition state optimization (Dimer or RS-P-RFO; optional |
|
Single-step MEP optimization via GSM or DMF (from 2 structures) |
|
Recursive multi-step MEP search with automatic refinement (2+ structures) |
|
Restrained distance scan supporting concerted multi-distance and multistage scans |
|
Two-dimensional energy-landscape exploration and PES mapping |
|
Three-dimensional energy-landscape exploration and PES mapping |
|
Vibrational frequency analysis & thermochemistry |
|
Intrinsic Reaction Coordinate calculation |
|
Single-point DFT calculations (GPU4PySCF / PySCF) |
|
Single-point calculator energy + forces / Hessian (MLIP or |
|
Plot energy profiles from XYZ trajectories |
|
Draw an energy diagram from numeric values |
|
Detect and report covalent bond changes between consecutive structures |
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 |
|
Files each command writes |
|
Keys of |
|
Running on several GPU nodes (PBS + Ray) |
|
Using pdb2reaction from an AI agent |
|
Code structure (for developers) |
|
Terminology |
System requirements¶
Hardware¶
OS: Linux (on Windows, install it in Linux under WSL2).
GPU: an NVIDIA driver compatible with the backend and PyTorch wheel. CPU execution is also supported but slower.
VRAM / RAM: depends on the model, the system size, and the Hessian mode; measure the peak on a representative run.
Software¶
Python >= 3.11.
CPU or CUDA-enabled PyTorch. Prebuilt wheels include their CUDA runtime; a local toolkit is normally needed only for source builds.
See Installation for setup.
Agent skills¶
skills/ contains guides for CLI commands, structure I/O, backends, 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 ACS Omega 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.5.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.