Table of Contents

Module: __init__ chimera/selection/__init__.py

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

Imported modules   
import chimera
from chimera import SelEdge, SelVertex, SelSubgraph, SelGraph, lenses, oslParser
import types
Functions   
addCurrent
addImpliedCurrent
applyCurrent
copyCurrent
currentAtoms
currentBonds
currentContents
currentEdges
currentEmpty
currentGraphs
currentMolecules
currentResidues
currentSubgraphs
currentVertices
mergeCurrent
mergeUsingCurrent
removeCurrent
restrictSelection
selectionModels
setCurrent
setRestrictionSet
toggleInCurrent
unrestrictSelection
  addCurrent 
addCurrent ( items )

add given item or items to current selection

  addImpliedCurrent 
addImpliedCurrent ( vertices=YES,  edges=YES )

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

  copyCurrent 
copyCurrent ()

Return a copy of the current selection

  currentAtoms 
currentAtoms ( ordered=0 )

Return instances in current selection.

  currentBonds 
currentBonds ( ordered=0 )

Return instances in current selection.

  currentContents 
currentContents ( asDict=NO,  ordered=0 )

Return contents of current selection.

Returns a 2-tuple composed of a list of vertices and a list of edges. If asDict is true, then dictionaries whose keys are vertices/edges are returned instead of lists.

if ordered is true and lists are being returned, the lists are in the same order as the edges and vertices were added to the selection. If dictionaries are being returned, the values are integers that indicate the ordering (may be non-consecutive integers).

  currentEdges 
currentEdges ( asDict=NO,  ordered=0 )

Return instances in current selection.

  currentEmpty 
currentEmpty ()

  currentGraphs 
currentGraphs ( fullySelected=NO )

Return instances in current selection.

  currentMolecules 
currentMolecules ()

Return instances in current selection.

  currentResidues 
currentResidues ()

Return instances in current selection.

  currentSubgraphs 
currentSubgraphs ( fullySelected=NO )

Return instances in current selection.

  currentVertices 
currentVertices ( asDict=NO,  ordered=0 )

Return instances in 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.

  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   

CodeSelection

CodeSelection class

ItemizedSelection

Itemized Selection class

OSLSelection

Object Selection Language selection

Selection

Base class for selections.


Table of Contents

This document was automatically generated on Wed Mar 26 19:03:05 2003 by HappyDoc version 2.1