pdb2reaction Documentation

Version: v0.8.0 GitHub ACS Omega paper

pdb2reaction workflow overview

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.

Getting Started Installation Open in Google Colab

Quick start

Analyze the mechanism end to end from the structures before and after the reaction

Quickstart: all in Endpoint mode

Analyze the mechanism end to end from one structure

Quickstart: all in Scan-list mode

Analyze the mechanism end to end from a TS structure

Quickstart: TS-only mode

Goal

Page

Build the cluster model

Building the cluster model

Analyze reaction mechanisms of small molecules

Small-molecule reactions

Analyze reaction mechanisms and search for transition states

Tips for studying reaction mechanisms

Optimize the MLIP TS structure with DFT

Validate the MLIP TS structure with DFT

Investigate why a calculation failed

Troubleshooting

Subcommands

Subcommand

Description

all

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.

extract

Build a cluster model by cutting the active site out of a protein–ligand complex

opt

Single-structure geometry optimization (L-BFGS or RFO available)

tsopt

Transition state (TS) optimization of a single structure (Dimer or RS-P-RFO), giving a structure with one imaginary mode.

path-opt

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.

path-search

Recursive MEP search that automatically detects multistep reactions and builds a multistep minimum energy path. Accepts reactant, intermediate, and product structures.

scan

Scan the energy change with distances, angles, or dihedrals as variables (concerted and multistage scans supported)

scan2d

Two-dimensional energy-landscape exploration and 2D PES mapping

scan3d

Three-dimensional energy-landscape exploration and 3D PES mapping

freq

Vibrational frequency analysis and thermochemical analysis

irc

Intrinsic Reaction Coordinate calculation

dft

Single-point DFT calculations (GPU4PySCF / PySCF)

fix-altloc

Resolve PDB alternate locations

add-elem-info

Repair PDB element columns (77–78)

sp

Single-point calculation with an MLIP (energy + forces / Hessian)

trj2fig

Plot energy profiles from XYZ trajectories written by pdb2reaction

energy-diagram

Draw an energy diagram from numeric values

bond-summary

Detect and report covalent bond changes between structures of multiple states

Configuration and reference

Topic

Page

Common options and input requirements

Common options and selectors

Frozen atoms and distance restraints (--freeze-atoms, --distance-restraint)

Freeze atoms and restrain distances

Common errors and fixes

Troubleshooting

CLI command reference

Command Reference

YAML configuration options

YAML Reference

MLIP backend settings

MLIP Backends

Details of the files and directories each command writes

Output Directory Layout

Details of the keys in the JSON result files

JSON Output Reference

Example job scripts for PBS and Slurm

HPC example

Let an AI agent use pdb2reaction

Agent skills

Code structure (for developers)

Architecture

Terminology

Glossary

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/skills as skills, and install pdb2reaction by following pdb2reaction-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.