Quickstart: pdb2reaction all --scan-lists (Scan mode)¶
Goal¶
Run the full pdb2reaction all workflow from a single structure by driving one or more bond distances via --scan-lists/-s. This automatically chains: staged scan → minimum energy path (MEP) refinement → (optional) transition state (TS) optimization and intrinsic reaction coordinate (IRC).
Prerequisites¶
Input structure:
.pdbCharge (
-q/--chargeor--ligand-charge/-l) and multiplicity (-m) for the target state
Scan targets via --scan-lists/-s inline literal (default)¶
--scan-lists/-s accepts Python-literal strings directly on the command line. For atom selector syntax (residue/atom tokens, separators, ordering) and outer/inner quoting rules, see CLI Conventions: Scan-list spec.
Basic syntax¶
Each literal is a list of 3-tuples (atom1, atom2, target_distance_Å). Exactly three elements per tuple are required; the third is always the target distance in ångströms. One literal = one stage.
# Single stage, integer atom indices (1-based by default)
pdb2reaction -i input.pdb -c 'SAM,GPP,MG' -l 'SAM:1,GPP:-3' -m 1 \
-s '[(1, 5, 1.35)]' -o ./result_scan
# Single stage, PDB selector strings
pdb2reaction -i input.pdb -c 'SAM,GPP,MG' -l 'SAM:1,GPP:-3' -m 1 \
-s '[("TYR,285,CA", "SAM,309,C10", 1.35)]' -o ./result_scan
The -c/--center cluster selector is required when running on a protein–ligand PDB; omit -c (and pass -q directly instead of -l) for small-molecule .pdb / .xyz inputs. -m/--multiplicity defaults to 1 (singlet) but is shown explicitly here for clarity.
Multiple stages¶
Pass multiple literals — each becomes one sequential stage:
# Stage 1: drive one bond to 1.35 Å
# Stage 2: drive two bonds simultaneously
pdb2reaction -i input.pdb -c 'SAM,GPP,MG' -l 'SAM:1,GPP:-3' -m 1 -s \
'[("TYR,285,CA","SAM,309,C10",1.35)]' \
'[("TYR,285,CA","SAM,309,C10",2.20),("TYR,285,CB","SAM,309,C11",1.80)]' \
-o ./result_scan
Stages run sequentially; each starts from the previous stage’s relaxed result.
Expected output¶
result_scan/
├── summary.log
├── summary.json
├── mep.pdb # Full MEP path (promoted to the root)
├── energy_diagram_MEP.png # MEP energy plot (promoted to the root)
├── segments/
│ └── seg_01/ # Per-reactive-segment deliverables
└── _work/ # Pipeline scratch (safe to delete)
├── scan/
│ ├── preopt/ # Pre-optimized structure
│ ├── stage_01/ # Scan stage 1 results
│ │ ├── scan_trj.xyz # Scan trajectory
│ │ └── scan.pdb
│ └── stage_02/ # Scan stage 2 (if multi-stage)
└── path_opt/ # MEP search (path_search/ with --refine-path True)
What to check:
_work/scan/stage_01/scan_trj.xyz— open in PyMOL to verify bond distances change as expectedmep.pdb— the optimized MEP trajectory (promoted to the output root)summary.log— barrier heights and bond change summary
Tip: Use --print-parsed (and abort with Ctrl-C) to verify scan targets before letting the full run proceed:
pdb2reaction scan -i input.pdb -q 0 -s '[(1, 5, 1.35)]' --print-parsed
Notes¶
-s/--scan-listsaccepts inline Python literals when used withall. The standalonescansubcommand additionally accepts a YAML/JSON spec file path (see scan).Default scan stepping is the same for both commands; only the flag names differ (prefixed under
all, un-prefixed under standalonescan):Command
Per-distance step
Harmonic bias strength
pdb2reaction all--scan-max-step-size 0.20 Å--scan-bias-k 300 eV/Ųstandalone
pdb2reaction scan--max-step-size 0.20 Å--bias-k 300 eV/ŲOverride via either flag form or via the YAML
biasblock. See scan and yaml-reference for the per-stage controls.Each scan stage ends with a bond-change check (
has_bond_change) on the final relaxed geometry. The per-stage result is recorded in the scan log, and — when--out-jsonis set — also in the aggregateresult.json(under itsstagesarray) written to the scan out-dir.The recursive MEP refinement (
path-search) consumes the scan endpoints unconditionally. Whether it runs is gated by--refine-path, not by the scan-stage bond-change flag (has_bond_change).Use
pdb2reaction all --help-advancedto inspect all options including scan controls.For the standalone
scansubcommand (without MEP refinement), see scan.
Next step¶
Full option reference: all
TS candidate validation: Quickstart: TS-only mode
Term definitions (MEP, TS, IRC, …): Glossary