Selecting can be done via atom expressions or based on topology or geometry. The selection expressions used in Jmol can be used for the "select" and the "display within" commands.
In the reference the full list of atom expressions can be found.
Some examples of using topologies as selection criteria: (check the reference for more options)
- select molecule = 1 selects the first set of covalently bound atoms in the file.
- select connected(3) selects all atoms that are connected by bonds to 3 other atoms.
- select substructure("C(O)C") selects all ketone groups in the system. Any substructure strings in the SMILE format are accepted.
Combining selection statements
The combination of selection statements in Jmol is based on Boolean logic, using the statements And, Or, and Not, in a slightly different way than these are used in conversational language.
Example: We have a system consisting of water and a peptide chain. We are interested in selecting oxygen atoms. Let's call the set of atoms in the peptide chain A, and all oxygen atoms B.
Select A or B