20                       for x 
in range(0, 3)])
 
   24     m, [(ps[i[0]], ps[i[1]]) 
for i 
in [(0, 1), (1, 2)]])
 
   25 print([(m.get_particle_name(p[0]), m.get_particle_name(p[1]))
 
   26        for p 
in lpc.get_contents()])
 
   28 r.set_maximum_score(.1)
 
   35     pst.set_particle_states(m.get_particle(p), space)
 
   37 m.set_log_level(IMP.SILENT)
 
   44     print(
"Unable to display graph using 'dot'")
 
   46 rc.add_restraints([r])
 
   53 root = RMF.HDF5.create_file(name)
 
   58 def get_assignments(vertex):
 
   59     on = mt.get_out_neighbors(vertex)
 
   60     ss = mt.get_vertex_name(vertex)
 
   61     print(
"computing assignments for", ss)
 
   63     dataset = root.add_child_index_data_set_2d(ssn)
 
   64     dataset.set_size([0, len(ss)])
 
   66         dataset, ss, pst.get_particles(), ssn)
 
   72         (ss0, a0) = get_assignments(on[0])
 
   73         (ss1, a1) = get_assignments(on[1])
 
   75     print(ss, mine.get_number_of_assignments())
 
   80             dataset, ss, pst.get_particles(), ssn))
 
   85 all = get_assignments(mt.get_vertices()[-1])
 
   86 all[1].set_was_used(
True)
 
   88 print(
'try: h5dump', name)
 
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
 
Various classes to hold sets of particles. 
 
Filter a configuration of the subset using the Model thresholds. 
 
Store the assignments in an HDF5DataSet. 
 
Score distance between two particle centers using a harmonic function. 
 
static XYZ setup_particle(Model *m, ParticleIndex pi)
 
Class for storing model, its restraints, constraints, and particles. 
 
Do not allow two particles to be in the same state. 
 
Store a list of ParticleIndexPairs. 
 
ParticleIndexPairs get_indexes(const ParticlePairsTemp &ps)
Get the indexes from a list of particle pairs. 
 
void load_leaf_assignments(const Subset &subset, AssignmentsTable *at, AssignmentContainer *ac)
Fill in assignments for a leaf. 
 
void load_merged_assignments(const Subset &first_subset, AssignmentContainer *first, const Subset &second_subset, AssignmentContainer *second, const SubsetFilterTablesTemp &filters, AssignmentContainer *ret)
Fill in assignments for an internal node. 
 
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
 
MergeTree get_merge_tree(const SubsetGraph &junction_tree)
 
Class to handle individual particles of a Model object. 
 
std::string show_graphviz(Graph g)
 
Store the assignments in an HDF5DataSet. 
 
Applies a PairScore to each Pair in a list. 
 
Divide-and-conquer inferential optimization in discrete space. 
 
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.