11m.set_log_level(IMP.SILENT)
22for i, p
in enumerate(ps[1:]):
43d0.set_coordinates_are_optimized(
True)
46opt.set_scoring_function(sf)
48print(
"score is ", sf.evaluate(
False))
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Store a list of ParticleIndexes.
Simple conjugate gradients optimizer.
Prevent a set of particles and rigid bodies from inter-penetrating.
static Reference setup_particle(Model *m, ParticleIndex pi, ParticleIndexAdaptor reference)
Create a scoring function on a list of restraints.
Apply a SingletonFunction to a Singleton.
static XYZR setup_particle(Model *m, ParticleIndex pi)
A decorator for a particle with x,y,z coordinates.
static XYZ setup_particle(Model *m, ParticleIndex pi)
Rotation3D get_rotation_about_axis(const Vector3D &axis, double angle)
Generate a Rotation3D object from a rotation around an axis.
Various classes to hold sets of particles.
Basic functionality that is expected to be used by a wide variety of IMP users.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.