Learn R Programming

RCy3 (version 1.2.0)

hideSelectedNodes: hideSelectedNodes

Description

Hide (but do not delete) the currently selected nodes. We strongly recommened that you save the current layout before hiding any nodes: 'unhideAll' previously often placed restored nodes in unpredictable positions.

Usage

hideSelectedNodes(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

None.

See Also

unhideAll

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('hideSelectedNodes.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed')
  saveLayout (cw, 'layout.tmp.RData')
  selectNodes (cw, c ('A', 'B'))
  hideSelectedNodes (cw)
  unhideAll (cw)
  restoreLayout (cw, 'layout.tmp.RData')

Run the code above in your browser using DataLab