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.
28 mol = st.create_molecule(
"Rpb4",seqs[
"1WCM:D"],chain_id=
"D")
38 myres2 = mol.residue_range(
'1',
'10')
45 atomic = mol.get_atomic_residues()
46 non_atomic = mol.get_non_atomic_residues()
49 myres3 = mol[0:50] - atomic
50 myres4 = mol[0:50] & atomic
53 mol.add_representation(myres3,
55 mol.add_representation(myres4,
76 dof.create_rigid_body(mol,
77 nonrigid_parts = non_atomic,
83 sel =
IMP.atom.Selection(hier,resolution=10,molecule=
"Rpb4",residue_indexes=range(1,10))
84 particles = sel.get_selected_particles()
88 all_mol_copies = st.molecules[
"Rpb4"]
89 mol = all_mol_copies[0]