6 from __future__
import print_function
26 m.set_log_level(IMP.base.SILENT)
42 chainr.set_name(
"The chain restraint")
43 restraints.append(chainr)
48 nbl.add_pair_filter(bpc)
56 tie.set_name(
"tie ends")
57 restraints.append(tie)
62 r.set_maximum_score(.1)
63 s.set_scoring_function(restraints)
64 s.set_number_of_attempts(10)
66 confs = s.create_sample()
67 print(
"Found", confs.get_number_of_configurations(),
"configurations")
68 fh = RMF.create_rmf_file(
"solutions.rmfz")
70 for i
in range(0, confs.get_number_of_configurations()):
71 confs.load_configuration(i)
void save_frame(RMF::FileHandle file, unsigned int, std::string name="")
Various classes to hold sets of particles.
void set_log_level(LogLevel l)
Set the current global log level.
A container which contains all consecutive particle pairs from an input list.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
Return all close unordered pairs of particles taken from the SingletonContainer.
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
Store a kernel::ParticleIndexes.
Base functionality and abstract base classes for representation, scoring and sampling.
XYZRs create_xyzr_particles(kernel::Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
static Mass setup_particle(kernel::Model *m, ParticleIndex pi, Float mass)
Basic functionality that is expected to be used by a wide variety of IMP users.
Applies a PairScore to a Pair.
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.
Applies a PairScore to each Pair in a list.
Class for storing model, its restraints, constraints, and particles.