################ DESCRIPTION ############### Example for how to generate and run a simulation with the All-atom model using SMOG 2 and OpenSMOG In this example, we will use the default All-atom SMOG model, and we will introduce a disulfide bond. ############### PREREQUISITES ############## - SMOG 2 must be configured and all SMOG tools must be in your PATH. If you are using a SMOG container, this will be satisfied. - the alias "python" must map to a version for which the OpenSMOG libraries are available. Conda environments can be helpful to set this up. ######### USING SMOG2 AND SMOG-TOOLS ####### Begin with the file 2hi7.pdb, obtained directly from RCSB. For your convenience, it is in the current directory. We will make a few modifications to this PDB file, so that SMOG can process it. First, make a copy called 2hi7.mod.pdb Required manual modification to PDB file: remove lines that contain UQ1 or ZN residues. These residues are not defined in the default AA model. SMOG 2 allows you to define new residues/ligands, if you like, but we will not do that in this example. Preprocess the PDB file >smog_adjustPDB -i 2hi7.mod.pdb -o 2hi7.adjusted.pdb -insertTER Explainer: The -insertTER flags tell adjustPDB to not exit if residues are not sequentially numbered. Instead, if non-sequential residue numbers are detected, you will be prompted to insert a TER, or not. Basically, you need to indicate whether these two residues should be considered different chains. In this example, the gap will be between residue 126 and 142. Since these residues were not resolved, we will simply treat the two fragments as separate chains. Now we need to make a manual change to 2hi7.adjusted.pdb, in order to indicate where the disulfide bonds are located. In this structure, there is a disulfide bond between residue 30 (original PDB) in the first chain and residue 104 in the second chain. There is a second SS bond between residues 41 and 44 of the second chain. Since SS bonds are between side chains, we will also want to add any dihedrals to the amino acid side chain energy group (sc_a). To add these bonds, we will add the following 2 lines, but the atom numbers will correspond to the numbering in 2hi7.adjusted.pdb (you must check the adjusted PDB to get the numbers): BOND 1 241 2 719 sc_a BOND 2 226 2 247 sc_a Generate your force field with smog2: - The -AA flag indicates that the Whitford all-atom model should be used. - The -OpenSMOG flag indicates that the input files should be prepared for use with OpenSMOG/OpenMM - "-warn 2" indicates that two of the warnings should not be treated as fatal. This is specific to this particular structure and model. That is, an error is thrown when using the default model, if a bond is longer than, or equal to, 2 Angstroms. Disulfide bonds are right around this threshold, so they can trigger a fatal warning. Since we know that these two warnings are due to legitimate SS bonds (see stdout of SMOG 2 to verify the bond is added between the correct atoms), we can safely ignore these two warnings. One could also define generic bonded distances to avoid these warnings. >smog2 -i 2hi7.adjusted.pdb -AA -OpenSMOG -dname 2hi7.OpenSMOG.AA+disulfide -warn 2 #### RUNNING A SIMULATION WITH OPENSMOG #### At this point, you have all files needed to start your calculations in OpenSMOG. Using the script run.2hi7.OpenSMOG.AA+disulfide.py (in this directory), you can load, energy minimize and simulate the system. See comments in .py file for explanation of settings. >python run.2hi7.OpenSMOG.AA+disulfide.py