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))
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Create a scoring function on a list of restraints.
An IMP restraint using all defined Modeller restraints.
Class for storing model, its restraints, constraints, and particles.
Interface to the Modeller comparative modeling package.
Read a Modeller model into IMP.