13 m, m.add_particle(
"rigid body"),
19 print "adding rigid body for atoms"
24 print "creating residue level rep"
26 print "adding rigid body for residues"
28 resolutions.add_representation(residues)
30 print "creating triplet residue level rep"
32 resolutions.add_representation(triplets)
33 print "adding rigid body for triplets"
37 resolutions.add_representation(whole)
39 print "resolutions are", resolutions
43 print IMP.atom.Selection(root, residue_index=15, resolution=1).get_selected_particles()
45 print IMP.atom.Selection(root, residue_index=15, resolution=.3).get_selected_particles()
46 print "several residues"
47 print IMP.atom.Selection(root, residue_index=15, resolution=.2).get_selected_particles()
49 print IMP.atom.Selection(root, residue_index=15, resolution=.01).get_selected_particles()
51 print IMP.atom.Selection(root, residue_index=15, resolution=IMP.atom.ALL_RESOLUTIONS).get_selected_particles()
Select non water and non hydrogen atoms.
static RigidBody setup_particle(kernel::Model *m, ParticleIndex pi, kernel::ParticleIndexesAdaptor ps)
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
static Hierarchy setup_particle(kernel::Model *m, kernel::ParticleIndex pi, kernel::ParticleIndexesAdaptor children=kernel::ParticleIndexesAdaptor())
static Representation setup_particle(kernel::Model *m, ParticleIndex pi)
Hierarchy create_simplified_along_backbone(Chain input, const IntRanges &residue_segments, bool keep_detailed=false)
IMP::core::RigidBody create_rigid_body(Hierarchy h)
See IMP.atom for more information.
void read_pdb(base::TextInput input, int model, Hierarchy h)
Class for storing model, its restraints, constraints, and particles.