18 p = m.add_particle(
"p")
22 d.set_coordinates_are_optimized(
True)
28m.set_log_level(IMP.WARNING)
31pis = lsc.get_contents()
34s.set_scoring_function(sf)
35s.set_number_of_attempts(10)
37s.set_log_level(IMP.TERSE)
38s.set_number_of_monte_carlo_steps(10)
40configs = s.create_sample()
41for i
in range(0, configs.get_number_of_configurations()):
42 configs.load_configuration(i)
54for i
in range(0, clustering.get_number_of_clusters()):
56 configs.load_configuration(clustering.get_cluster_representative(i))
Class for storing model, its restraints, constraints, and particles.
Return all close unordered pairs of particles taken from the SingletonContainer.
Store a list of ParticleIndexes.
Applies a PairScore to each Pair in a list.
Score a pair of particles based on the distance between their centers.
Lower bound harmonic function (non-zero when feature < mean).
Create a scoring function on a list of restraints.
static XYZR setup_particle(Model *m, ParticleIndex pi)
Embed a configuration using the XYZ coordinates of a set of particles.
VectorD< D > get_random_vector_in(const BoundingBoxD< D > &bb)
Generate a random vector in a box with uniform density.
Various classes to hold sets of particles.
algebra::Sphere3D get_enclosing_sphere(const XYZs &v)
Get a sphere enclosing the set of XYZRs.
Code to compute statistical measures.
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.