2 """This script demonstrates a few different ways you can perform selection in PMI.
3 In PMI we first set up molecules at various resolutions.
4 Then you call System.build() and this creates all requested representations.
26 mol = st.create_molecule(
"Rpb4",seqs[
"1WCM:D"],chain_id=
"D")
36 myres2 = mol.residue_range(
'1',
'10')
43 atomic = mol.get_atomic_residues()
44 non_atomic = mol.get_non_atomic_residues()
47 myres3 = mol[0:50] - atomic
48 myres4 = mol[0:50] & atomic
51 mol.add_representation(myres3,
53 mol.add_representation(myres4,
74 dof.create_rigid_body(mol,
75 nonrigid_parts = non_atomic,
81 sel =
IMP.atom.Selection(hier,resolution=10,molecule=
"Rpb4",residue_indexes=range(1,10))
82 particles = sel.get_selected_particles()
86 all_mol_copies = st.molecules[
"Rpb4"]
87 mol = all_mol_copies[0]