16children = hchain.get_children()
23 for x
in children[:10]])
24for c
in children[:10]:
25 hchain.remove_child(c)
30 for x
in children[10:20]])
31for c
in children[10:20]:
32 hchain.remove_child(c)
36for c
in children[20:]:
37 hchain.remove_child(c)
Class for storing model, its restraints, constraints, and particles.
static Fragment setup_particle(Model *m, ParticleIndex pi)
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.
Functionality for loading, creating, manipulating and scoring atomic structures.
HierarchyTree get_hierarchy_tree(Hierarchy h)
Get a graph for the passed Hierarchy.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
Basic functionality that is expected to be used by a wide variety of IMP users.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.
std::string show_graphviz(Graph g)