5 from __future__
import print_function, division
24 for i
in range(0, np)]
28 p.set_coordinates_are_optimized(
True)
35 for i
in range(0, len(ps) // 2):
36 pp = (ps[2 * i], ps[2 * i + 1])
61 bd.set_log_level(IMP.SILENT)
62 bd.set_scoring_function(sf)
64 bd.set_maximum_time_step(10)
67 rmf = RMF.create_rmf_file(name)
68 rmf.set_description(
"Brownian dyanmics trajectory with 10fs timestep.\n")
74 os.update_always(
"initial conformation")
75 os.set_log_level(IMP.SILENT)
77 bd.add_optimizer_state(os)
81 print(
"file is", rmf.get_name())
Applies a SingletonScore to each Singleton in a list.
A harmonic upper bound on the distance between two spheres.
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Various classes to hold sets of particles.
Upper bound harmonic function (non-zero when feature > mean)
static XYZR setup_particle(Model *m, ParticleIndex pi)
Score particles based on how far outside a box they are.
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
Class for storing model, its restraints, constraints, and particles.
static Hierarchy setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor children=ParticleIndexesAdaptor())
Create a Hierarchy of level t by adding the needed attributes.
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
Simple Brownian dynamics simulator.
static Mass setup_particle(Model *m, ParticleIndex pi, Float mass)
Color get_display_color(unsigned int i)
static Colored setup_particle(Model *m, ParticleIndex pi, Color color)
void add_restraints(RMF::NodeHandle fh, const Restraints &hs)
static Diffusion setup_particle(Model *m, ParticleIndex pi, Float D)
Prevent a set of particles and rigid bodies from inter-penetrating.
Class to handle individual model particles.
VectorD< D > get_random_vector_on(const SphereD< D > &s)
Generate a random vector on a sphere with uniform density.
Output IMP model data in various file formats.
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.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.