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.
15 e = modeller.Environ()
16 e.edat.dynamic_sphere =
False
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')
23 feat = modeller.features.Distance(modmodel.atoms[0], modmodel.atoms[-1])
24 r = modeller.forms.Gaussian(feature=feat, mean=10.0, stdev=1.0,
25 group=modeller.physical.xy_distance)
26 modmodel.restraints.add(r)
31 atoms = IMP.atom.get_by_type(protein, IMP.atom.ATOM_TYPE)
39 print(sf.evaluate(
False))