sp¶
mlmm sp evaluates the ML/MM ONIOM energy + atomic forces (optionally the full ONIOM Hessian) at a single geometry. Use it for fast inspection of a layered structure before running an optimization, for comparing backends directly on the same ONIOM partition, or for generating reference Hessians outside the optimizer loop.
Examples¶
Energy + forces on a layered PDB (B-factor encodes ML / movable-MM / frozen-MM):
# energy + forces on a layered PDB (B-factor encodes ML / movable-MM / frozen-MM)
mlmm sp -i layered.pdb --parm real.parm7 -q 0 -m 1
Also compute the full ONIOM Hessian (analytical when --backend uma):
# also compute the full ONIOM Hessian (Analytical when --backend uma)
mlmm sp -i layered.pdb --parm real.parm7 -q 0 -m 1 --hess
Outputs¶
sp writes outputs under result_sp/ by default. The ONIOM energy is also printed to stdout; the JSON files (written to both result.json and summary.json with identical content) are emitted only when --out-json is passed.
file |
contents |
written |
|---|---|---|
|
|
always |
|
|
only with |
|
ONIOM energy (a.u.), backend, charge/spin, paths to npy outputs, elapsed time |
only with |
sp does not write a summary.log.
CLI options¶
Command form:
mlmm sp -i INPUT --parm PARM7 -q CHARGE [options]
Input |
Required |
Notes |
|---|---|---|
|
yes |
layered PDB (or XYZ) defining the ML / movable-MM / frozen-MM partition |
|
yes |
Amber |
|
yes (unless |
ML region total charge |
|
no |
per-ligand charge mapping (e.g. |
|
no |
ML region spin multiplicity, 2S+1 (default |
ML region selection¶
Either embed the partition in the input PDB’s B-factor (ML=0.0, movable-MM=10.0, frozen-MM=20.0) with --detect-layer (the default), or pass it explicitly:
flag |
meaning |
|---|---|
|
use B-factor encoding (default |
|
alternative PDB defining ML atoms |
|
comma-separated 1-based atom indices (e.g. |
Hessian backend¶
When --hess is set, the backend choice picks the Hessian computation strategy:
--backend uma(default) →AnalyticalHessian for the ML region via the UMA torch autograd path; the MM region uses thehessian_ffanalytical Hessian--backend orb/mace/aimnet2→ falls back toFiniteDifferencefor the ML region
--hessian-calc-mode lets you override per-call.
Other options¶
The full flag list is in the generated command reference; the table below covers the options that need explanation.
flag |
default |
meaning |
|---|---|---|
|
|
MLIP backend for the ML region |
|
|
also compute and write |
|
auto |
force a specific Hessian mode (only with |
|
off |
xTB point-charge embedding correction for MM→ML coupling |
|
|
link-atom positioning |
|
|
MM backend (analytical vs finite-difference Hessian) |
|
|
output directory |
|
|
numeric precision passed to the backend |
|
— |
YAML config providing |
|
off |
print effective merged config / validate without running |
Run mlmm sp --help-advanced for the full list (hess-cutoff override, MCP-style result.json, etc.).