25 def recursive_approximation(res):
26 print "approximating", res
31 me = recursive_approximation(res[0:lr / 4])\
32 + recursive_approximation(res[lr / 4: lr / 2])\
33 + recursive_approximation(res[lr / 2: 3 * lr / 4])\
34 + recursive_approximation(res[3 * lr / 4: lr])
54 me = recursive_approximation(res[0:lr / 4])\
55 + recursive_approximation(res[lr / 4: lr / 2])\
56 + recursive_approximation(res[lr / 2: 3 * lr / 4])\
57 + recursive_approximation(res[3 * lr / 4: lr])
63 rmf = RMF.create_rmf_file(fn)
Ints get_index(const kernel::ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
void setup_as_approximation(Hierarchy h)
bool get_bool_flag(std::string name)
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
See IMP.base for more information.
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
Hierarchies get_by_type(Hierarchy mhd, GetByType t)
void add_hierarchies(RMF::NodeHandle fh, const atom::Hierarchies &hs)
Class to handle individual model particles.
A decorator for a residue.
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
See IMP.atom for more information.
void read_pdb(base::TextInput input, int model, Hierarchy h)
Hierarchies get_leaves(const Selection &h)
See IMP.rmf for more information.
void add_bonds(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters())
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Class for storing model, its restraints, constraints, and particles.