Quickstart: pdb2reaction all --tsopt (TS-only mode)¶
TS-only mode checks one transition-state (TS) candidate without a minimum energy path (MEP) search. pdb2reaction all --tsopt optimizes the TS, follows the intrinsic reaction coordinate (IRC) in both directions, and optimizes the two endpoints, the reactant (R) and the product (P). --thermo adds vibrational analysis and thermochemistry, and --dft adds DFT single points on R, TS, and P. If you already have a TS candidate, use this mode to start the TS search directly.
What it is for¶
Refining a candidate from a scan or an MEP: optimize the top of a scan or the selected structure (HEI) of an MEP into a TS.
Checking a candidate made another way: confirm that a structure from another program, or one built by hand, is a TS (n_imag = 1) that connects the intended R and P.
Checking an MLIP TS before DFT: confirm a TS from the machine-learning interatomic potential (MLIP) before you refine it with DFT.
Minimal command¶
Pass one TS candidate with -i and add --tsopt. The bundled examples have no TS candidate, so the command below uses the HEI from the all quickstart run; for your own reaction, pass your own candidate.
pdb2reaction all -i result_all/_work/path_opt/hei_seg_01.pdb -l 'SAM:1,GPP:-3' \
--tsopt --thermo -o ./result_ts_only
The run succeeded when the ====== Pipeline summary ====== block near the end of the console shows Scientific status: success; summary.json holds the same value in scientific_status.
For an XYZ file, such as a candidate from another program, give the total charge of the model with -q (0 for the model of the all quickstart).
pdb2reaction all -i ts_candidate.xyz -q 0 \
--tsopt --thermo -o ./result_ts_only
(Optional) Add DFT single-points¶
--dft adds DFT single points on R, TS, and P, and --func-basis sets the functional and basis (default wb97m-v/def2-svp).
pdb2reaction all -i result_all/_work/path_opt/hei_seg_01.pdb -l 'SAM:1,GPP:-3' \
--tsopt --thermo --dft --func-basis 'wb97m-v/def2-tzvpd' \
-o ./result_ts_only
Before you run¶
Input: one TS candidate as PDB/mmCIF, XYZ, or GJF. A cluster model is cut out only when
-cis given; otherwise the structure is used as is.Charge and multiplicity: give the charge with
-q,-l(PDB/mmCIF only), YAMLcalc.charge, or a GJF header. The multiplicity comes from-m, then YAMLcalc.spin, then the GJF header, then 1.When TS-only mode runs: one input,
--tsopt, and no--scan-lists. Two or more inputs run the MEP search, and one input with--scan-listsruns a scan.
Expected output¶
A successful run writes:
result_ts_only/
├── summary.log # Run summary
├── summary.json # Results, with scientific_status
└── segments/
└── seg_01/
├── reactant.pdb # R/TS/P structures (.xyz for XYZ input, .gjf for GJF input)
├── ts.pdb
├── product.pdb
├── energy_diagram_MLIP.png # R–TS–P energy diagram (plus energy_diagram_G_MLIP.png with --thermo)
├── ts/
│ ├── final_geometry.{xyz,pdb}
│ └── vib/imag_*_trj.xyz # Animation of each imaginary mode
├── irc/
│ └── {forward,backward,finished}_irc_trj.xyz
├── freq/{R,TS,P}/ # --thermo
│ ├── frequencies_cm-1.txt
│ └── thermoanalysis.yaml
└── dft/{R,TS,P}/ # --dft
└── result.yaml
Checking the result¶
Completion:
scientific_statusissuccesswhen every requested stage converged; otherwise it ispartialorfailed, with the reasons inscientific_status_reasons. Two checks are left for you: that the imaginary mode moves the bonds that form or break, and that the endpoints are the intended R and P.TS mode: a successful TS optimization gives one imaginary mode along the reaction coordinate. The console then prints
[Imaginary modes] n=1 (...), andsummary.jsonrecords the count inpost_segments[0].tsopt.n_imaginary_modes. Opensegments/seg_01/ts/vib/imag_*_trj.xyzin a viewer and check that the mode moves the bonds that form or break.Endpoints: open
segments/seg_01/irc/finished_irc_trj.xyzand the R/TS/P structures (reactant.pdb,ts.pdb,product.pdb), and readsegments[0].bond_changes. The endpoints should be the intended R and P. Even if the IRC does not converge, the result is usable when the endpoint optimizations reach the intended R and P.Endpoint frequencies: with
--thermo,segments/seg_01/freq/{R,TS,P}/frequencies_cm-1.txtlists every frequency with its sign. R and P should have no imaginary mode (no value below −5.00 cm⁻¹).
Result |
What to try |
|---|---|
n_imag = 0 |
Start from a better candidate, such as the HEI of an MEP or the top of a scan; TS-only mode has no path to guide it. |
n_imag ≥ 2 |
Watch every imaginary mode. Re-optimize with |
|
Check the TS mode and the IRC; the path may connect other minima. |
R or P keeps an imaginary mode |
Check the endpoint geometry and the mode. Tighten the endpoint optimization with |
If the TS is still not found, see Check the TS and When the TS search fails.
Notes¶
Cap hydrogens with XYZ or GJF: their parent atoms are frozen only when a PDB of the same atoms is given with
--ref-pdb; see Freeze atoms and restrain distances.Hessian mode: keep the default
--hessian-calc-mode FiniteDifference. Set--hessian-calc-mode Analyticalonly after checking its speed, memory use, and results for your backend, model, and system.Energies:
post_segments[0].mlip.barrier_kcalis ΔE‡ (TS − R) and.delta_kcalis ΔE (P − R) in kcal/mol, from the optimized TS and endpoints. Since there is no MEP,segments[0].barrier_kcaland.delta_kcalhold the same values. With--thermo,post_segments[0].gibbs_mlip.barrier_kcaland.delta_kcalgive ΔG‡ and ΔG; with--dft,post_segments[0].dft.barrier_kcaland.delta_kcalgive the DFT values.R and P labels: without an MEP the direction of the reaction is unknown, so TS-only mode labels the higher-energy IRC endpoint R and the lower one P, and records this rule in
endpoint_assignmentinsummary.json. The labels are not the chemical direction; the barrier from P isbarrier_kcal − delta_kcal.Imaginary modes at R or P: thermochemistry is computed even when R or P keeps an imaginary mode, and that mode is left out of ZPE and G. Check the mode before treating the structure as a minimum.
When IRC runs:
allgoes on to IRC only when the TS optimization converged, its final Hessian finished, and n_imag ≥ 1. With n_imag ≥ 2 the IRC follows one imaginary mode as a diagnostic; it does not make the structure a first-order saddle point.More
tsoptsettings: for--opt-mode,--max-cycles, and Hessian options, runtsopton its own.pdb2reaction all --help-advancedlists every option ofall.DFT: to optimize the TS itself with DFT, and for the DFT extra and GPU memory, see Validate the MLIP TS structure with DFT.
Next steps¶
Validate the MLIP TS structure with DFT: refine and check the TS with DFT
Tips for studying reaction mechanisms: check the TS, and what to try when the TS search fails
Quickstart:
pdb2reaction all: build an MEP from R and PQuickstart: scan: build a path from one structure
Troubleshooting: find an error message or symptom and its fix