clearSelection: clearSelection

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1

Arguments

obj

a CytoscapeWindowClass object.

Value

Nothing

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())
  cw <- CytoscapeWindow ('clearSelection.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw)
  selectNodes (cw, 'A')
  print (getSelectedNodeCount (cw))   # should be 1
  clearSelection (cw)
  print (getSelectedNodeCount (cw))   # should be 0

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.