This example shows how to use the multiresolution support available in IMP.atom via the IMP.atom.Resolution decorator and IMP.atom.Selection
15 m, m.add_particle(
"rigid body"),
21 print(
"adding rigid body for atoms")
26 print(
"creating residue level rep")
28 print(
"adding rigid body for residues")
30 resolutions.add_representation(residues)
32 print(
"creating triplet residue level rep")
34 resolutions.add_representation(triplets)
35 print(
"adding rigid body for triplets")
39 resolutions.add_representation(whole)
41 print(
"resolutions are", resolutions)
46 root, residue_index=15, resolution=1).get_selected_particles())
49 root, residue_index=15, resolution=.3).get_selected_particles())
50 print(
"several residues")
52 root, residue_index=15, resolution=.2).get_selected_particles())
55 root, residue_index=15, resolution=.01).get_selected_particles())
58 root, residue_index=15,
59 resolution=IMP.atom.ALL_RESOLUTIONS).get_selected_particles())