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, a coordinate file, and the ML-region (QM) definition into a single ready-to-run input file: the QM region is taken from --model-pdb, and the surrounding MM environment is emitted in the target program’s native format with link-atom annotations at the QM/MM cut.
Examples¶
# Gaussian ONIOM input
mlmm oniom-export --parm real.parm7 -i pocket.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.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.pdb --model-pdb ml.pdb \
-o out.gjf --mode g16 --method 'wb97xd/def2-svp' --nproc 16 --mem 32GB -q 0 -m 1
Workflow¶
Topology + coordinates — read the
parm7and the-icoordinate file (atom order must match the topology;--element-checkvalidates the element sequence).QM region —
--model-pdbdefines the QM (ML-region) atoms;--nearsets the movable/active MM cutoff (Å).Link atoms — placed at each severed QM/MM bond.
--link-atom-method scaled(default) uses the Morokuma/Dapprich g-factor (matches theMLMMCoreruntime);fixeduses fixed 1.09/1.01 Å bond lengths.Write — emit the target-format input file at
-o. ORCA mode additionally resolvesORCAFF.prms(auto-converting from Amber viaorca_mm -convff -AMBERwhen--convert-orcaffis on).
Outputs¶
<output>.{gjf,com}(g16) or<output>.inp(ORCA) — the QM/MM input fileORCA mode also reads/creates
<parm7_stem>.ORCAFF.prmsin the output directory (force-field parameters)
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 |
|
Coordinate file ( |
None |
|
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. |
|
|
Distance cutoff (Å) for movable/active MM atoms. |
|
|
Number of processors. |
|
|
Memory allocation (g16 mode). |
|
|
Total charge / multiplicity of the full QM+MM system (ORCA |
None |
|
Path to |
None |
|
Auto-convert a missing |
|
|
Validate the |
|
|
Link-H placement: |
|
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.
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