Selection

Chemfiles.SelectionType

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 <http://chemfiles.org/chemfiles/latest/selections.html>_ for more information about the selection language.

source
Base.deepcopyMethod
deepcopy(selection::Selection) -> Selection


Make a deep copy of a selection.

source
Base.sizeMethod
size(selection::Selection) -> UInt64


Get the size of a selection, i.e. the number of atoms we are selecting together.

source
Chemfiles.evaluateMethod
evaluate(selection::Selection, frame::Frame) -> Array{Any,1}


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.

source