16 children = hchain.get_children()
23 for x
in children[:10]])
24 for c
in children[:10]:
25 hchain.remove_child(c)
30 for x
in children[10:20]])
31 for c
in children[10:20]:
32 hchain.remove_child(c)
36 for c
in children[20:]:
37 hchain.remove_child(c)
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
static Fragment setup_particle(Model *m, ParticleIndex pi)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
HierarchyTree get_hierarchy_tree(Hierarchy h)
Get a graph for the passed Hierarchy.
void read_pdb(TextInput input, int model, Hierarchy h)
Class for storing model, its restraints, constraints, and particles.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Hierarchies get_by_type(Hierarchy mhd, GetByType t)
Gather all the molecular particles of a certain level in the hierarchy.
A decorator for a residue.
Basic functionality that is expected to be used by a wide variety of IMP users.
std::string show_graphviz(Graph g)
Functionality for loading, creating, manipulating and scoring atomic structures.