This example shows how to use the multiresolution support available in IMP.atom via the IMP.atom.Resolution decorator and IMP.atom.Selection
5 from __future__
import print_function
16 m, m.add_particle(
"rigid body"),
22 print(
"adding rigid body for atoms")
27 print(
"creating residue level rep")
29 print(
"adding rigid body for residues")
31 resolutions.add_representation(residues)
33 print(
"creating triplet residue level rep")
35 resolutions.add_representation(triplets)
36 print(
"adding rigid body for triplets")
40 resolutions.add_representation(whole)
42 print(
"resolutions are", resolutions)
47 root, residue_index=15, resolution=1).get_selected_particles())
50 root, residue_index=15, resolution=.3).get_selected_particles())
51 print(
"several residues")
53 root, residue_index=15, resolution=.2).get_selected_particles())
56 root, residue_index=15, resolution=.01).get_selected_particles())
59 root, residue_index=15,
60 resolution=IMP.atom.ALL_RESOLUTIONS).get_selected_particles())