Skip to content

Examples preparing structures

Juvenal Yosa edited this page Nov 20, 2026 · 4 revisions

MOZYME needs every hydrogen atom and a sound Lewis structure. MOPAC adds hydrogens itself, and an automatic check stops inputs with broken groups before the SCF.

Figures: calculations with the CPU build of v1.2.1-gpu, laptop (Intel Core i7-8850H), one core unless a caption says otherwise, or published numbers where the caption says so. Scripts: scripts/wiki_figures.

10. Add hydrogens to a PDB file (neutral groups)

Crystal structures have no hydrogens; MOPAC adds them. 0SCF stops after the preparation and PDBOUT writes the result as a PDB file (<input>.pdb). Remove waters and alternate conformations first.

Copy next to the input: benchmarks/publication_inputs/pdb_clean/protein_crambin_1crn.pdb

PM7 ADD-H PDBOUT NEWPDB 0SCF GEO-OK GEO_DAT="protein_crambin_1crn.pdb"
Add hydrogens to crambin

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

Crambin before and after ADD-H.

Crambin before and after ADD-H.

11. Add hydrogens with charged groups (pH ≈ 7)

SITE=(IONIZE) protonates Arg/Lys, deprotonates Asp/Glu and the termini. The protein then carries a net charge; MOZYME computes it from the Lewis structure and reports it.

Copy next to the input: benchmarks/publication_inputs/pdb_clean/protein_crambin_1crn.pdb

PM7 ADD-H SITE=(IONIZE) PDBOUT NEWPDB 0SCF GEO-OK GEO_DAT="protein_crambin_1crn.pdb"
Add hydrogens to crambin, pH 7

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

The sites that SITE=(IONIZE) changed in crambin, as listed in the output (Changes in Ionization caused by keyword SITE).

The sites that SITE=(IONIZE) changed in crambin, as listed in the output (Changes in Ionization caused by keyword SITE).

12. The input chemistry check stops a broken structure

PDB entry 1G6X has half sulfate groups on a symmetry axis. The check reports them as errors and stops the job before the SCF; the report is in the output.

Copy next to the input: benchmarks/publication_inputs/mop/protein_1g6x.pdb

PM7 ADD-H PDBOUT NEWPDB 0SCF GEO-OK GEO_DAT="protein_1g6x.pdb"
BPTI 1G6X with its sulfates

Checked: the CPU build of release v1.2-gpu (commit 323b6076) stops this job with the chemistry-check report.

The sulfate groups of 1G6X (grey) and the two incomplete ones that the input chemistry check reports (red).

The sulfate groups of 1G6X (grey) and the two incomplete ones that the input chemistry check reports (red).

13. Run anyway with LET

LET (a standard MOPAC keyword) runs despite the errors; the report stays in the output. Prefer fixing the PDB: in 1G6X the half sulfates made the SCF take 112 iterations instead of 29.

Copy next to the input: benchmarks/publication_inputs/mop/protein_1g6x.pdb

PM7 ADD-H PDBOUT NEWPDB 0SCF GEO-OK LET GEO_DAT="protein_1g6x.pdb"
BPTI 1G6X, check overridden

Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20).

SCF of 1G6X (MOZYME, PM7) with the two half sulfates, run with LET, and with them removed: energy change per iteration

SCF of 1G6X (MOZYME, PM7) with the two half sulfates, run with LET, and with them removed: energy change per iteration. These are CPU runs; the README's 112 and 29 iterations are from GPU runs.

14. Prepare, optimize and run dynamics from a PDB file (Python)

scripts/mozyme_md_workflow.py downloads nothing; give it a PDB file. It removes waters and alternate conformations, adds hydrogens, optimizes, and runs NVT and NVE, printing one summary line per stage.

wget https://files.rcsb.org/download/1CRN.pdb
python3 scripts/mozyme_md_workflow.py build/mopac 1CRN.pdb --work-dir crambin_md \
    --temperature 300 --opt-cycles 100 --nvt-points 200 --nve-points 200
# --eps 78.4 for implicit water, --ionize for pH-7 protonation
scripts/mozyme_md_workflow.py on chignolin with hydrogens added to its heavy atoms: 30 optimization cycles, then 60 NVT and 60 NVE points (shorter than the command above).

scripts/mozyme_md_workflow.py on chignolin with hydrogens added to its heavy atoms: 30 optimization cycles, then 60 NVT and 60 NVE points (shorter than the command above).

Clone this wiki locally