This demonstrates using Modeller restraints as additional terms in the IMP scoring function, so that existing Modeller restraints can be used in combination with new IMP restraints and optimization protocols.
7 from __future__
import print_function
13 e = modeller.environ()
14 e.edat.dynamic_sphere =
False
15 e.libs.topology.read(
'${LIB}/top_heav.lib')
16 e.libs.parameters.read(
'${LIB}/par.lib')
17 modmodel = modeller.model(e)
18 modmodel.build_sequence(
'GGCC')
21 feat = modeller.features.distance(modmodel.atoms[0], modmodel.atoms[-1])
22 r = modeller.forms.gaussian(feature=feat, mean=10.0, stdev=1.0,
23 group=modeller.physical.xy_distance)
24 modmodel.restraints.add(r)
37 print(m.evaluate(
False))