This demonstrates reading in an existing Modeller model, and converting the Modeller restraints (both static and dynamic) into equivalent IMP restraints.
6 from __future__
import print_function
12 e = modeller.environ()
13 e.edat.dynamic_sphere =
True
14 e.libs.topology.read(
'${LIB}/top_heav.lib')
15 e.libs.parameters.read(
'${LIB}/par.lib')
16 modmodel = modeller.model(e)
17 modmodel.build_sequence(
'GGCC')
19 sel = modeller.selection(modmodel)
20 modmodel.restraints.make(sel, restraint_type=
'STEREO', spline_on_site=
False)
26 protein = loader.load_atoms(m)
29 for r
in loader.load_static_restraints():
34 for r
in loader.load_dynamic_restraints():
37 print(m.evaluate(
False))