20 m.set_log_level(IMP.base.SILENT)
29 chainr.set_name(
"The chain restraint")
30 m.add_restraint(chainr)
34 for p
in m.get_particles():
40 nbl.add_pair_filter(bpc)
48 tie.set_name(
"tie ends")
52 s.set_number_of_attempts(10)
53 m.set_maximum_score(1)
54 confs = s.get_sample()
55 print "Found", confs.get_number_of_configurations(),
"configurations"
56 for i
in range(0, confs.get_number_of_configurations()):
57 confs.load_configuration(i)
59 for p
in chain.get_particles():
Write geometry to a python file for Chimera to read.
See IMP.container for more information.
void set_log_level(LogLevel l)
Set the current global log level.
A container which contains all consecutive pairs from an input list.
Return all close unordered pairs of particles taken from the SingletonContainer.
XYZRs create_xyzr_particles(kernel::Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
See IMP.core for more information.
Applies a PairScore to a Pair.
See IMP.display for more information.
Applies a PairScore to each Pair in a list.
Class for storing model, its restraints, constraints, and particles.
Display an IMP::core::XYZR particle as a ball.