17 "Use the IMP::misc::DecayPairContainerOptimizerState to gradually "
18 "break the bonds in a bd simulation")
39 p = m.add_particle(
"p")
44 d.set_coordinates_are_optimized(
True)
53 pp = random.sample(ps, 2)
54 if pp
not in bds
and [pp[1], pp[0]]
not in bds:
60dos.set_log_level(IMP.SILENT)
70 dos.get_output_container(),
77bd.set_maximum_time_step(1000)
78bd.set_scoring_function(rs + [ev])
79bd.add_optimizer_state(dos)
83rmf = RMF.create_rmf_file(fn)
84print(
"setting up file")
90os.set_period(max(steps / 100, 1))
91bd.add_optimizer_state(os)
Class for storing model, its restraints, constraints, and particles.
Simple Brownian dynamics simulator.
static Diffusion setup_particle(Model *m, ParticleIndex pi, Float D)
Setup the particle with the specified diffusion coefficient.
static Hierarchy setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor children=ParticleIndexesAdaptor())
Create a Hierarchy of level t by adding the needed attributes.
static Mass setup_particle(Model *m, ParticleIndex pi, Float mass)
Store a list of ParticleIndexes.
Applies a PairScore to each Pair in a list.
Applies a SingletonScore to each Singleton in a list.
Return true (1) with a fixed probability.
Prevent a set of particles and rigid bodies from inter-penetrating.
A harmonic upper bound on the distance between two spheres.
Upper bound harmonic function (non-zero when feature > mean).
static XYZR setup_particle(Model *m, ParticleIndex pi)
static Colored setup_particle(Model *m, ParticleIndex pi, Color color)
Maintain a pair container with a decaying list of pairs.
Periodically dump the state of all associated objects into the RMF file.
Functionality for loading, creating, manipulating and scoring atomic structures.
Various classes to hold sets of particles.
Output IMP model data in various file formats.
Color get_display_color(unsigned int i)
Miscellaneous functionality that is not expected to be used by many IMP users.
Support for the RMF file format for storing hierarchical molecular data and markup.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
void add_hierarchies(RMF::FileHandle fh, const atom::Hierarchies &hs)
void set_log_level(LogLevel l)
Set the current global log level.
bool get_bool_flag(std::string name)
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.