Learn R Programming

RCytoscape (version 1.22.0)

selectNodes: selectNodes

Description

Select the specified nodes.

Usage

selectNodes(obj, node.names, preserve.current.selection=TRUE)

Arguments

obj
a CytoscapeWindowClass object.
node.names
a list of strings, the names of nodes to select.
preserve.current.selection
a logical object.

Value

None.

See Also

clearSelection getSelectedNodeCount getSelectedNodes hideSelectedNodes

Examples

Run this code
  cw <- new.CytoscapeWindow ('selectNodes.test', graph=makeSimpleGraph())
  clearSelection (cw)
  selectNodes (cw, c ('A', 'B'))
  getSelectedNodes (cw)
    # [1] "A" "B"

Run the code above in your browser using DataLab