You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--inpdb=<pdb> Input PDB file of protein as obtained from previous process
@@ -14,6 +14,7 @@
14
14
--relax_steps=<relax_steps> Initial reported trajectory steps focused on protein structure relax without restraints
15
15
--relax_report_every=<relax_report_every> Structure sampling rate of initial reported trajectory
16
16
--no_restraints Allow movement of all atoms
17
+
--test_conditions Apply test conditions, reducing initial phase significantly
17
18
"""
18
19
19
20
importlogging
@@ -33,7 +34,7 @@
33
34
fromopenmm.unitimport*
34
35
fromopenmm.appimportelement
35
36
36
-
#Process to clean the original PDB, find missing atoms, remove heterogens and assign a protonation state to mimic selected pH, and output fixed PDB file
37
+
# process to clean the original PDB, find missing atoms, remove heterogens and assign a protonation state to mimic selected pH, and output fixed PDB file
#Carries out minimisation on protein in vacuum to optimise not only covalent bonding structure but also important hydrogen bonds responsable for secondary structure. PDB file and final energy are outputted at the end. Similation parameters are self-contained in the process to avoid interference with later setup of solvation box.
50
+
# carries out minimisation on protein in vacuum to optimise not only covalent bonding structure but also important hydrogen bonds responsable for secondary structure. PDB file and final energy are outputted at the end. Similation parameters are self-contained in the process to avoid interference with later setup of solvation box.
#Similar to the above, carries out minimisation on protein in vacuum to optimise not only covalent bonding structure but also important hydrogen bonds responsable for secondary structure. However coordinates, instead of PDB file, along with final energy are outputted at the end, to allow sampling of minimised states and select the most optimised. Similation parameters are self-contained in the process to avoid interference with later setup of solvation box.
66
+
# similar to the above, carries out minimisation on protein in vacuum to optimise not only covalent bonding structure but also important hydrogen bonds responsable for secondary structure. However coordinates, instead of PDB file, along with final energy are outputted at the end, to allow sampling of minimised states and select the most optimised. Similation parameters are self-contained in the process to avoid interference with later setup of solvation box.
#integrate modeller and forcefied into a defined system. Before integration, solvent molecules are added to the box, with box vectors defined such that water density at a given pressure (normally standard pressure of 1atm) can be simulated. Padding is added, with excess molecules removed to achieve 1atm density
112
+
#integrate modeller and forcefied into a defined system. Before integration, solvent molecules are added to the box, with box vectors defined such that water density at a given pressure (normally standard pressure of 1atm) can be simulated. Padding is added, with excess molecules removed to achieve 1atm density
#Combine setup_forcefield and setup_system functions, redefine box vectors ahead of local minimisation. Output final minimised topology and mimimisation, and return simulation after minimisation
142
+
# combine setup_forcefield and setup_system functions, redefine box vectors ahead of local minimisation. Output final minimised topology and mimimisation, and return simulation after minimisation
file.write(f'Initial potential energy of solution: {init_pe}\n')
167
+
file.write(f'Minimised potential energy of solution: {final_pe}\n')
172
168
returnsimulation.topology, final_state.getPositions(), final_pe, simulation, integrator, system
173
169
174
-
#Takes minimised solvation box to run grand canonical ensemble (NVT), with initial temperature increase in 100-step intervals. 0,5ns of equilibration is allowed to achieve equilibrium state. After which the requested number of steps is run, with reporting corresponding to the number of steps in the --report_every option
# takes minimised solvation box to run grand canonical ensemble (NVT), with initial temperature increase in 100-step intervals. 0,5ns of equilibration is allowed to achieve equilibrium state. After which the requested number of steps is run, with reporting corresponding to the number of steps in the --report_every option
#set system, simulation and integrator parameters to run main trajectory, define output CSV and trajectory PDB names, set total steps, report rate and initial steps (for equilibration), set as inputs to NVT simulation function (md_nvt)
267
+
#set system, simulation and integrator parameters to run main trajectory, define output CSV and trajectory PDB names, set total steps, report rate and initial steps (for equilibration), set as inputs to NVT simulation function (md_nvt)
265
268
simulation=min_pdb[3]
266
269
integrator=min_pdb[4]
267
270
system=min_pdb[5]
@@ -271,20 +274,23 @@ def main():
271
274
steps=int(arguments['--steps'])
272
275
report_every=int(arguments['--report_every'])
273
276
init_steps=int(arguments['--init_steps']) # total unreported step during solvent equilibration/protein restrained
274
-
temp_steps=310000#total number of steps for heating from 0K to 310K
277
+
ifarguments['--test_conditions']:
278
+
temp_steps=3100# total number of steps for heating from 0K to 310K
279
+
else:
280
+
temp_steps=310000# total number of steps for heating from 0K to 310K
0 commit comments