oniom-export¶
Export an Amber-topology ML/MM system into an external QM/MM input file — Gaussian ONIOM (--mode g16, with link-atom annotations) or ORCA QM/MM (--mode orca, with ORCAFF handling). It combines an Amber parm7 topology and an MLMM layered PDB into a single ready-to-run input file. The layered PDB B-factors define the movable/frozen partition; --model-pdb, when supplied, overrides its QM-region membership.
Both export modes require a CMAP-free parm7. Gaussian ONIOM cannot
represent these terms faithfully, and ORCA’s MM engine does not apply them;
the exporter therefore fails before writing when the topology contains CMAP.
This is an export-format limitation—normal mlmm calculations may keep CMAP
enabled in both MM layers. See CMAP-free preparation.
Examples¶
# Gaussian ONIOM input
mlmm oniom-export --parm real.parm7 -i pocket_layered.pdb --model-pdb ml.pdb \
-o out.gjf --mode g16 -q 0 -m 1
# ORCA QM/MM input (mode inferred from the .inp suffix)
mlmm oniom-export --parm real.parm7 -i pocket_layered.pdb --model-pdb ml.pdb \
-o out.inp -q 0 -m 1
# Gaussian input with a custom method/basis and resources
mlmm oniom-export --parm real.parm7 -i pocket_layered.pdb --model-pdb ml.pdb \
-o out.gjf --mode g16 --method 'wb97xd/def2-svp' --nproc 16 --mem 32GB -q 0 -m 1
Workflow¶
Topology + layers — read the
parm7and the layered PDB passed to-i(atom order must match the topology;--element-checkvalidates the element sequence). B-factors near 0/10/20 define ML, movable MM, and frozen MM atoms.QM region — use the B-factor ML layer unless
--model-pdbexplicitly defines the QM atoms. Movable/frozen membership always comes from the layered PDB.QM/MM boundary — Gaussian uses
--link-atom-method scaled(the default Morokuma/Dapprich g-factor) orfixed(1.09/1.01 Å) to place link H atoms. ORCA usesQMAtoms/ORCAFFfor capping; exported link coordinates are diagnostic comments only.Write — emit the target-format input file at
-o. ORCA mode additionally resolvesORCAFF.prms. With--convert-orcaff, conversion is attempted throughorca_mm -convff -AMBER; if conversion is disabled or unavailable, the.inpis still written and reports the parameter file that must be supplied before ORCA is run.
Outputs¶
<output>.{gjf,com}(g16) or<output>.inp(ORCA) — the QM/MM input fileORCA mode references
<parm7_stem>.ORCAFF.prms; it reuses an existing file or creates one only when automatic conversion is enabled and available
CLI options¶
The full flag list is in the generated command reference; the table below covers the options that need explanation.
Option |
Description |
Default |
|---|---|---|
|
Amber parm7 topology file. |
Required |
|
MLMM layered PDB; atom order must match the parm7 and B-factors define movable/frozen atoms. |
Required |
|
PDB defining the QM-region atoms. |
None |
|
Output file path ( |
Required |
|
Export mode; inferred from the |
inferred |
|
QM method and basis set. |
mode-dependent |
|
Charge of the QM region. |
Required |
|
Multiplicity of the QM region. |
|
|
Number of processors. |
|
|
Memory allocation (g16 mode). |
|
|
Total charge / multiplicity of the full QM+MM system (ORCA |
topology-derived / same as |
|
Path to |
None |
|
Auto-convert a missing |
|
|
Validate the |
|
|
Gaussian link-H placement; ORCA records the corresponding coordinates only as diagnostics and creates caps from |
|
mlmm oniom-export --help shows core options; mlmm oniom-export --help-advanced shows the full list.
Notes¶
Mode selection:
--modeis highest priority. If--modeis omitted, the mode is inferred from-o:.gjf/.com→g16.inp→orca
If
--modeis omitted and the-osuffix is unknown, the command fails.For PDB/ENT input, the exported file embeds
MLMM_REF_PDB_ORDER_V1_SHA256=<digest>. Coordinates, occupancy, and B-factor are excluded, while fixed atom/residue/chain/insertion/element identity is covered.oniom-import --ref-pdbverifies this marker before positional metadata restoration.
See Also¶
Common Error Recipes — Symptom-first failure routing
Troubleshooting — Detailed troubleshooting guide
oniom-gaussian — Gaussian-mode details (
--mode g16)oniom-orca — ORCA-mode details (
--mode orca)oniom-import — Reconstruct XYZ/layered PDB from ONIOM inputs
mm-parm — Build Amber topology
define-layer — Build/check layer annotations