/ . / chimera / selection
The selection module provides tools for managing selection set and
maintains the current selection.
The module constants are:
- REPLACE
- replace selection with new selection
EXTEND -- extend selection with new selection
REMOVE -- remove new selection from selection
INTERSECT -- intersect new selection with selection
Functions
|
|
|
invertCurrent
|
invertCurrent ( allModels=True )
|
|
addCurrent
|
addCurrent ( items )
add given item or items to current selection
|
|
copyCurrent
|
copyCurrent ()
Return a copy of the current selection
|
|
mergeCurrent
|
mergeCurrent ( method, selection )
Merge given selection into the current selection
mergeCurrent(method, selection) => None
method is one of module constants REPLACE, EXTEND, REMOVE, or INTERSECT.
selection is a instance of a subclass of Selection.
|
|
currentVertices
|
currentVertices ( **kw )
Return vertices in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.vertices()
|
|
currentResidues
|
currentResidues ( **kw )
Return residues in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.residues()
|
|
currentGraphs
|
currentGraphs ( **kw )
Return graphs in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.graphs()
|
|
setCurrent
|
setCurrent ( selection )
Set current selection to the given selection.
setCurrent(what) => None
selection is a instance of a subclass of Selection, or a list
of objects, or a single object (object's must have an oslLevel
function).
|
|
currentBonds
|
currentBonds ( **kw )
Return bonds in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.bonds()
|
|
mergeUsingCurrent
|
mergeUsingCurrent ( method, selection )
Merge the current selection into the given selection
mergeWithCurrent(method, selection) => None
method is one of module constants REPLACE, EXTEND, REMOVE, or INTERSECT.
selection is a instance of a subclass of Selection.
|
|
addImpliedCurrent
|
addImpliedCurrent ( vertices=True, edges=True )
add implied vertices and/or edges to current selection
An edge is implied if both endpoints are in the selection.
A vertex is implied if any of its edges are in the selection.
The method is "one pass", so edges between implied vertices
won't be added if not already present.
|
|
currentSubgraphs
|
currentSubgraphs ( **kw )
Return subgraphs in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.subgraphs()
|
|
clearCurrent
|
clearCurrent ()
empty the selection
|
|
toggleInCurrent
|
toggleInCurrent ( objs )
|
|
currentEdges
|
currentEdges ( **kw )
Return edges in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.edges()
|
|
currentContents
|
currentContents ( **kw )
Return contents of current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.contents()
|
|
applyCurrent
|
applyCurrent ( vFunc=None, eFunc=None )
Apply functions to current selection at corresponding graph level
functions are for vertices and edges, respectively,
and receive a single vertex or edge argument
|
|
containedInCurrent
|
containedInCurrent ( obj )
|
|
currentEmpty
|
currentEmpty ()
|
|
saveSel
|
saveSel (
saveName,
sel=None,
updateGui=True,
)
|
|
removeCurrent
|
removeCurrent ( items )
remove given item or items from current selection
|
|
currentMolecules
|
currentMolecules ( **kw )
Return molecules in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.molecules()
|
|
currentAtoms
|
currentAtoms ( **kw )
Return atoms in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.atoms()
|
|
currentChains
|
currentChains ( **kw )
Return chains in current selection (Sequence objects).
Takes the same arguments and returns the same values as
ItemizedSelection.chains()
|
|
|