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.

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).

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).

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.

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).

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

Clone this wiki locally