42Cummer commited on
Commit
14bee30
·
verified ·
1 Parent(s): cd1d82d

Upload refine.py

Browse files
Files changed (1) hide show
  1. scripts/refine.py +2 -1
scripts/refine.py CHANGED
@@ -35,7 +35,8 @@ def polish_design(target_pdb_id, uploaded_file_path):
35
  modeller.addHydrogens(forcefield)
36
 
37
  # Setup the system using the REPAIRED modeller topology
38
- system = forcefield.createSystem(modeller.topology)
 
39
  integrator = LangevinIntegrator(300*kelvin, 1/picosecond, 0.002*picosecond)
40
  simulation = Simulation(modeller.topology, system, integrator)
41
  simulation.context.setPositions(modeller.positions)
 
35
  modeller.addHydrogens(forcefield)
36
 
37
  # Setup the system using the REPAIRED modeller topology
38
+ # Note: ignoreExternalBonds=True kills the LYS 155 error
39
+ system = forcefield.createSystem(modeller.topology, ignoreExternalBonds=True)
40
  integrator = LangevinIntegrator(300*kelvin, 1/picosecond, 0.002*picosecond)
41
  simulation = Simulation(modeller.topology, system, integrator)
42
  simulation.context.setPositions(modeller.positions)