invertNodeSelection: invertNodeSelection

Description Usage Arguments Value Author(s) See Also Examples

Description

Invert the node selection, i.e. select all nodes that were not selected and deselect all nodes that were selected.

Usage

1

Arguments

obj

a CytoscapeWindowClass object.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

clearSelection invertEdgeSelection

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('invertNodeSelection demo', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  invertNodeSelection (cw)
     # all nodes should be selected, since none were before
  invertNodeSelection (cw)
     # no node should be selected, since all were before
  selectNodes (cw, 'A')
  invertNodeSelection (cw)
    # only B and C should be selected

## End(Not run)

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