Frozen Atoms¶
Overview¶
Cluster models need a small set of atoms held in place at the truncation boundary so the optimizer cannot pull the dangling fragment into something unphysical. pdb2reaction handles this through cap hydrogens (added at severed bonds by extract) and three sources of freeze_atoms specification.
When a residue is sliced out of a larger protein using the extract sub-command, the bond at the boundary is capped with a cap hydrogen (residue LKH, atom HL, 1.09 Å along the original bond vector). If the parent atom of that cap hydrogen is left free, gradient descent will quietly relax the cap+parent pair into a different geometry, deforming the boundary. Freezing the relevant atoms keeps the boundary stationary throughout optimization, MEP search, IRC, and vibrational analysis.
Three ways to specify frozen atoms¶
1. --freeze-links/--no-freeze-links (default True)¶
Auto-freezes the parent atoms of cap hydrogens added by extract in the
subcommands listed below. sp does not auto-freeze link parents; it honors an
explicit geom.freeze_atoms list. Recipe:
pdb2reaction extract -i complex.pdb -c 'SAM,GPP' -l 'SAM:1,GPP:-3' -o model.pdb
pdb2reaction opt -i model.pdb -q 0 -m 1 # --freeze-links is True; LKH parents auto-frozen
For XYZ/GJF inputs, no LKH atoms are present, so --freeze-links has no effect; use the next two methods instead. --ref-pdb FILE lets XYZ/GJF runs inherit a PDB topology and re-enable cap-hydrogen detection.
2. --freeze-atoms 'i,j,k,...' (CLI explicit list)¶
Comma-separated 1-based atom indices, applicable to any input format. Complements --freeze-links (the union is frozen at run time).
For all with active-site extraction, both this CLI list and YAML
geom.freeze_atoms use the original full input ordering and are mapped to
the extracted model automatically. Other commands use the ordering of the
structure passed directly to that command.
pdb2reaction tsopt -i ts_candidate.xyz -q 0 -m 1 \
--freeze-atoms '12,15,28,29,42'
3. YAML geom.freeze_atoms (via --config)¶
geom:
freeze_atoms: [12, 15, 28, 29, 42] # 1-based indices
Useful when the list is long or you want to ship it with the rest of the run configuration. CLI and YAML lists are merged, not replaced.
pdb2reaction tsopt -i ts.xyz -q 0 -m 1 --config tsopt.yaml
How the three sources combine¶
The frozen-atom set used at run time is the union of:
YAML
geom.freeze_atoms(--config FILE), plusCLI
--freeze-atoms, plusatoms detected as
LKHparents when--freeze-linksis on.
There is no mode that substitutes one for another; every entry that appears in any source is frozen.
Effect on the calculation¶
Forces: zeroed for every frozen DOF in
opt/tsopt/scan/freq/ircand inpath-opt/path-search--mep-mode gsm(hard freeze; the optimizer cannot move them).Hessian: rows and columns of frozen DOFs are either removed (
calc.return_partial_hessian: true, the global calculator default; explicitly forced again byopt/tsopt/scan/freq/irc) or zeroed in the full matrix.Vibrational analysis: when frozen atoms are present,
freqautomatically performs partial Hessian vibrational analysis (PHVA) on the active block. The rigid-mode treatment is described below.path-opt --mep-mode dmfandpath-search --mep-mode dmf(soft restraint): instead of zeroing forces, these stages add aHarmonicFixAtomscalculator (defaultk_fix = 300 eV/Ų, ASE units) per image so frozen atoms relax with a harmonic restraint, not a hard constraint. Coordinates may drift slightly from the input geometry.MEP / IRC:
path-opt/path-search--mep-mode gsmandircapply the hard freeze along the resolved path / IRC trajectory;--mep-mode dmf(path-opt or path-search) uses the soft restraint above.
Rigid modes with frozen boundaries¶
Cartesian PHVA-related eigensolvers use the constrained rigid-mode treatment: construct the full-system rigid motions and remove only combinations that leave every frozen anchor fixed. For a generic nonlinear geometry, the effective rank is 6, 3, 1, or 0 with 0, 1, 2, or at least 3 non-collinear frozen anchors, respectively. Production cluster boundaries usually contain several non-collinear anchors, so their effective rank is normally 0 and no active mode is removed.
The same treatment is used by freq, irc, TS exact-PHVA checks and Dimer orientation, and opt/tsopt flattening. It is unrelated to tsopt --ref-mode, which supplies a Cartesian reaction direction from an MEP. An all-frozen system has no active vibrational DOF and raises an explicit error.
When JSON output is enabled, result.json["rigid_projection"] records the treatment, effective rank, and Hessian source and shape. freq --dump records the same provenance in thermoanalysis.yaml; see JSON Output Schema.
Subcommand coverage¶
Subcommand |
|
|
YAML |
|---|---|---|---|
(inserts |
n/a |
n/a |
|
yes |
yes |
yes |
|
yes |
yes |
yes |
|
yes (triggers PHVA) |
yes |
yes |
|
yes |
yes |
yes |
|
yes |
yes |
yes |
|
yes |
yes |
yes |
|
yes |
yes |
yes |
|
yes |
yes |
yes |
Common pitfalls¶
Manually deleted
LKH/HLrecords.--freeze-linksfinds nothing to freeze. Use--freeze-atomsto specify the boundary explicitly, or rerunextract.Re-numbered atoms.
--freeze-atomsandgeom.freeze_atomsare 1-based and tied to the applicable input order.allmaps the original full input to its extracted model; a separately run command on an already extracted model uses that model’s order.XYZ/GJF without a topology. No
LKHrecords exist, so--freeze-linksis a no-op. Provide--ref-pdb FILEor an explicit--freeze-atomslist.--no-freeze-links. Disables the auto-freeze. Useful only for diagnostic runs that intentionally let the boundary relax; production cluster-model runs should leave--freeze-linkson.All atoms frozen. PHVA and IRC require at least one active atom and stop with an explicit error. Reduce the freeze set rather than suppressing the check.
See Also¶
extract— Where cap hydrogens are inserted (residueLKH, atomHL, 1.09 Å along severed bond vector). Full algorithmic detail at Cap hydrogen and frozen atoms.YAML Reference —
geom.freeze_atomsschema and merge order.CLI Conventions — flag conventions shared across subcommands.
Glossary — Active Site Model, Cluster Model, Cap Hydrogen.