Spaces:
Sleeping
Sleeping
Upload refine.py
Browse files- 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 |
-
|
|
|
|
| 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)
|