Selection
type
- type
Selection
- A
Selection
is used to select a group of atoms. Examples of selections are
“name H” and “(x < 45 and name O) or name C”. See the full documentation for more
information about the selection language.
- function
Selection
(selection::AbstractString) - Create a
Selection
from a selection string.
- function
deepcopy
(selection::Selection) - Make a deep copy of a
selection
.
- function
size
(selection::Selection) - Get the size of a
selection
, i.e. the number of atoms we are selecting
together.
- function
evaluate
(selection::Selection, frame::Frame) - Evaluate a
selection
on a given frame
. This function return a list of
indexes or tuples of indexes of atoms in the frame matching the selection.
- function
selection_string
(selection::Selection) - Get the selection string used to create a given
selection
.