In this example, we read a protein from a PDB file and then add a layer of atom::Fragments below the chain.
14 children = hchain.get_children()
21 for x
in children[:10]])
22 for c
in children[:10]:
23 hchain.remove_child(c)
28 for x
in children[10:20]])
29 for c
in children[10:20]:
30 hchain.remove_child(c)
34 for c
in children[20:]:
35 hchain.remove_child(c)
44 IMP.base.show_graphviz(ept)