clearSelectionR Documentation

clearSelection

Description

If any nodes are selected in the current Cytocape window, they will be unselected.

Usage

clearSelection(obj)

Arguments

obj a CytoscapeWindowClass object.

Value

Nothing

Author(s)

Paul Shannon

Examples

  cw<- CytoscapeWindow ('clearSelection.test', graph=makeSimpleGraph())
  displayGraph (cw)
  selectNodes (cw, 'A')
  print (getSelectedNodeCount (cw))   # should be 1
  clearSelection (cw)
  print (getSelectedNodeCount (cw))   # should be 0