sp (single point)¶
sp computes the ML/MM ONIOM energy and atomic forces of one structure, and with --hess also the Hessian of the movable atoms. The ML region is computed with the selected backend and the rest of the enzyme with the Amber force field of --parm7. It runs no optimization: the geometry stays as given.
What it is for¶
Check before an optimization: confirm that the ML region, charge, and multiplicity are accepted and that the backend returns a finite energy and forces.
Compare backends: evaluate the same structure and ML region with UMA, ORB, MACE, AIMNet2, or DFT (
-b dft).Reference values: forces and Hessians as
.npyfiles, and the energy in the console orresult.json, for your own analysis.
Examples¶
1. Energy and forces¶
Evaluate a neutral singlet ML region with the default backend (UMA). enzyme.pdb is the full system, real.parm7 its Amber topology, and ml_region.pdb the atoms of the ML region. -q and -m are the charge and multiplicity of the ML region.
mlmm sp -i enzyme.pdb --parm7 real.parm7 --model-pdb ml_region.pdb -q 0 -m 1 --out-json
The console prints [sp] energy = … a.u. |force|_max = … a.u./bohr, and result_sp/ has forces.npy and result.json with energy_au.
2. Add the Hessian¶
--hess also computes the Hessian of the movable atoms.
mlmm sp -i enzyme.pdb --parm7 real.parm7 --model-pdb ml_region.pdb -q 0 -m 1 --hess
How it works¶
Building the ML/MM system:
spreads the full system from-i, the Amber topology from--parm7, and the ML region from--model-pdb,--model-indices, or the B-factors of the input. The charge comes from-q, or from-lwith PDB/mmCIF input. The Frozen-MM layer and the atoms given with--freeze-atomsare frozen.Energy and forces: The backend computes the ML region and the force field the MM atoms, once at the input geometry, and the two are combined into the ONIOM energy and forces.
spprints the energy and the largest force component and saves the forces toforces.npy; frozen atoms get zero force.Hessian (with
--hess): The Hessian covers the ML region and the movable MM atoms, without frozen atoms.--hessian-calc-mode FiniteDifference(the default) differentiates the forces numerically;Analyticaluses the analytical Hessian of UMA, ORB, MACE, AIMNet2, or DFT (without--embedcharge) for the ML region and cannot run with--uma-workers(parallel MLIP predictor workers) above 1. The MM part uses finite differences by default; YAMLcalc.mm_fd: falseselects the analytical MM Hessian ofhessian_ff.
Output files¶
sp writes these files to --out-dir:
File |
Contents |
Written |
|---|---|---|
|
ONIOM forces as an |
Always |
|
ONIOM Hessian without mass weighting (Hartree/bohr²): |
With |
|
Energy ( |
With |
|
Same content as |
With |
Main options¶
The options shared by every ML/MM calculation command are explained once in ML/MM options; the table below lists only the options specific to sp.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
path |
(required) |
Full-system structure ( |
|
integer |
|
Charge of the ML region. Required unless |
|
integer |
|
Spin multiplicity (2S+1) of the ML region |
|
text |
|
Per-residue formal charges (e.g. |
|
text |
|
ML-region backend ( |
|
flag |
|
Also compute the Hessian and write |
|
|
|
Hessian method (finite difference / analytical); used with |
|
float |
|
Put only the movable MM atoms within this distance (Å) of the ML region into the Hessian; by default all movable MM atoms |
|
text |
|
Atoms to freeze (1-based, comma-separated, e.g. |
|
flag |
|
Electrostatic embedding of the MM point charges (xTB correction for an MLIP, PySCF point charges for |
|
path |
|
Output directory |
|
flag |
|
Write |
See the generated CLI reference for every option.
Note: In YAML (
--config),calcsets the backend andgeom.freeze_atomsadds frozen atoms (1-based), merged with--freeze-atoms.
Notes¶
Failed run: a failed run prints a one-line
Error: …, such asML region electron count inconsistent, orUnhandled error during single-point:with a traceback, and exits with a nonzero code.Energy looks wrong: if the energy is finite but looks wrong, re-check the ML region and its charge and multiplicity.
Frozen atoms: indices are 1-based, and frozen atoms get zero force. The Frozen-MM layer is frozen as well.
Atomic charges:
sp -b dftgives the ML(DFT)/MM energy and forces only. For Mulliken, meta-Löwdin, and IAO charges of the ML region, usedft.Exit codes: see Exit codes.
See also¶
opt — optimize the structure
tsopt — optimize a transition-state (TS) candidate
freq — vibrational analysis and thermochemistry
dft — DFT single point of the ML region with atomic charges
Validate the MLIP TS structure with DFT —
-b dftsettings (--func-basis,--dft-engine) and GPU memoryMLIP Backends — choosing a backend, precision, and workers
Troubleshooting — what to do when a run fails