29 for i
in range(0, int(2.0 / resolution))]
35 p.set_radius(resolution / 2.0)
37 p.set_radius(.4 * resolution)
38 order = [eps[0]] + ps + [eps[1]]
41 for i, p
in enumerate(order):
52 r.set_maximum_score(0.01)
56 resolution, IMP.algebra.get_unit_bounding_box_3d())
58 vs = [g.get_center(i)
for i
in g.get_all_indexes()]
59 print "States are", vs
63 pst.set_particle_states(p, states)
69 r.set_log_level(IMP.base.SILENT)
70 rc.add_restraints([r])
73 s.set_check_level(IMP.base.NONE)
78 s.set_subset_filter_tables([ef, rssft])
86 sts = s.get_sample_assignments(alls)
89 rmf = RMF.create_rmf_file(IMP.create_temporary_file_name(
"cache",
".rmf"))
90 print "saving configurations to", rmf.get_name()
97 domino_restraints = rc.get_restraints()
99 for r
in domino_restraints:
100 IMP.show_restraint_hierarchy(r)
104 print "found assignments", sts
106 for i, s
in enumerate(sts):
110 for r
in domino_restraints:
111 rc.load_last_score(r, alls, s)
Grid3D< float, DenseGridStorage3D< float > > DenseFloatGrid3D
A harmonic upper bound on the distance between two spheres.
void save_frame(RMF::FileHandle file, unsigned int, std::string name="")
void add_restraints(RMF::NodeHandle fh, const kernel::Restraints &hs)
Various classes to hold sets of particles.
A container which contains all consecutive particle pairs from an input list.
Sample best solutions using Domino.
Filter a configuration of the subset using the kernel::Model thresholds.
Represent a subset of the particles being optimized.
A class to change and restore log state.
Do not allow two particles to be in the same state.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
static Colored setup_particle(kernel::Model *m, ParticleIndex pi, Color color)
Class to handle individual model particles.
static Mass setup_particle(kernel::Model *m, ParticleIndex pi, Float mass)
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Color get_jet_color(double f)
Return the color for f from the jet color map.
void load_particle_states(const Subset &s, const Assignment &ss, const ParticleStatesTable *pst)
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.
Divide-and-conquer inferential optimization in discrete space.
Class for storing model, its restraints, constraints, and particles.