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
15 e = modeller.Environ()
16 e.edat.dynamic_sphere =
True
17 e.libs.topology.read(
'${LIB}/top_heav.lib')
18 e.libs.parameters.read(
'${LIB}/par.lib')
19 modmodel = modeller.Model(e)
20 modmodel.build_sequence(
'GGCC')
22 sel = modeller.Selection(modmodel)
23 modmodel.restraints.make(sel, restraint_type=
'STEREO', spline_on_site=
False)
29 protein = loader.load_atoms(m)
34 list(loader.load_static_restraints())
35 + list(loader.load_dynamic_restraints()))
37 print(sf.evaluate(
False))