mlmm-toolkit Documentation

Version: v0.7.0 GitHub ChemRxiv paper

mlmm-toolkit workflow overview

mlmm-toolkit is a Python CLI toolkit for analyzing reaction mechanisms in enzyme complexes with ML/MM, an ONIOM combination of machine-learning interatomic potentials (MLIPs) and molecular mechanics (MM), starting from PDB/mmCIF structures.

New to mlmm-toolkit? 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

Choose the ML region and layers, or make a run lighter

Building the ML region and layers

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

ML/MM model setup and MEP search; optional TS, IRC, thermochemistry, and DFT

mm-parm

Build Amber parm7/rst7 topology and coordinates

extract

Define the ML region from a protein–ligand complex

define-layer

Assign ML / Movable-MM / Frozen-MM B-factor layers

opt

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

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

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.

tsopt

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

irc

Intrinsic Reaction Coordinate calculation

freq

Vibrational frequency analysis and thermochemical analysis

dft

Single-point DFT calculations (GPU4PySCF / PySCF)

fix-altloc

Resolve PDB alternate locations

add-elem-info

Repair PDB element columns (77–78)

sp

ML/MM ONIOM energy and forces; optional Hessian

bond-summary

Detect and report covalent bond changes between structures of multiple states

trj2fig

Plot energy profiles from XYZ trajectories written by mlmm-toolkit

energy-diagram

Draw an energy diagram from numeric values

oniom-export

Generate Gaussian ONIOM or ORCA QM/MM input

oniom-import

Read an ONIOM input into XYZ / layered PDB

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 · Curated YAML subset

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

GPU and CPU assignment, HPC

Device Configuration & HPC Setup

Use the ML/MM calculator from Python

ML/MM Calculator

Let an AI agent use mlmm-toolkit

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 8 GB of RAM and 8 GB of VRAM for ~3,400 atoms (~650 in the ML region) and ~9,200 atoms (~600 in the ML region), and 16 GB of RAM and 8 GB of VRAM for ~14,000 atoms (~370 in the ML region); a Hessian needs about the same. RAM grows with the whole system and VRAM with the ML region.

  • AmberTools, which mm-parm uses to build the Amber topology.

See Installation for setup.

Key concepts

The three layers (ML, Movable-MM, Frozen-MM) and how ONIOM combines them are explained in Getting Started; how to choose the ML region and layers is in Building the ML region and layers.

Agent skills

mlmm-toolkit 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/mlmm_toolkit/tree/main/skills as skills, and install mlmm-toolkit by following mlmm-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 mlmm-toolkit skills.

For details, see Skills for AI Agents.

Citation

If you use mlmm-toolkit in your research, cite the following paper:

@article{ohmura2025mlmm,
  author  = {Ohmura, Takuto and Inoue, Sei and Terada, Tohru},
  title   = {ML/MM toolkit -- Towards Accelerated Mechanistic Investigation of Enzymatic Reactions},
  journal = {ChemRxiv}, year = {2025}, doi = {10.26434/chemrxiv-2025-jft1k}
}

To cite the software or a specific release, use the Zenodo record:

@software{ohmura2026mlmm_software,
  author       = {Ohmura, Takuto},
  title        = {mlmm-toolkit},
  year         = {2026},
  version      = {0.7.0},
  url          = {https://github.com/t-0hmura/mlmm_toolkit},
  license      = {GPL-3.0-or-later},
  doi          = {10.5281/zenodo.19197863}
}

License

GNU General Public License v3 or later (GPL-3.0-or-later).

Getting Help

# General help
mlmm --help

# Command help
mlmm <subcommand> --help

# Advanced options (internal tuning)
mlmm <subcommand> --help-advanced

Report problems and feature requests on GitHub Issues.