The selection module provides tools for managing selection set and
maintains the current selection.
|
Imported modules
|
|
import chimera
from chimera import SelEdge, SelVertex, SelSubgraph, SelGraph, lenses, oslParser
import copy
import types
|
|
Functions
|
|
|
|
|
|
addCurrent
|
addCurrent ( items )
add given item or items to current 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.
|
|
|
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
|
|
|
clearCurrent
|
clearCurrent ()
empty the selection
|
|
|
copyCurrent
|
copyCurrent ()
Return a copy of the current selection
|
|
|
currentAtoms
|
currentAtoms ( **kw )
Return atoms in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.atoms()
|
|
|
currentBonds
|
currentBonds ( **kw )
Return bonds in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.bonds()
|
|
|
currentContents
|
currentContents ( **kw )
Return contents of current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.contents()
|
|
|
currentEdges
|
currentEdges ( **kw )
Return edges in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.edges()
|
|
|
currentEmpty
|
currentEmpty ()
|
|
|
currentGraphs
|
currentGraphs ( **kw )
Return graphs in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.graphs()
|
|
|
currentMolecules
|
currentMolecules ( **kw )
Return molecules in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.molecules()
|
|
|
currentResidues
|
currentResidues ( **kw )
Return residues in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.residues()
|
|
|
currentSubgraphs
|
currentSubgraphs ( **kw )
Return subgraphs in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.subgraphs()
|
|
|
currentVertices
|
currentVertices ( **kw )
Return vertices in current selection.
Takes the same arguments and returns the same values as
ItemizedSelection.vertices()
|
|
|
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.
|
|
|
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.
|
|
|
removeCurrent
|
removeCurrent ( items )
remove given item or items from current selection
|
|
|
restrictSelection
|
restrictSelection ()
restrict selections to models in the restriction set
|
|
|
selectionModels
|
selectionModels ( opt=1 )
Return set of models to make selection in
|
|
|
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).
|
|
|
setRestrictionSet
|
setRestrictionSet ( models )
Set which models selections will restrict to when restriction on
|
|
|
toggleInCurrent
|
toggleInCurrent ( objs )
|
|
|
unrestrictSelection
|
unrestrictSelection ( init=0 )
have selections work across all open models
|
|
Classes
|
|
|
|