Learn R Programming

RCy3 (version 1.2.0)

selectEdges: selectEdges

Description

Select the specified edges.

Usage

selectEdges(obj, edge.names, preserve.current.selection=TRUE)

Arguments

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

Value

None.

See Also

clearSelection getSelectedEdgeCount getSelectedEdges hideSelectedEdges

Examples

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

  cw <- CytoscapeWindow ('selectEdges.test', graph=makeSimpleGraph())
  displayGraph (cw); layoutNetwork(cw); redraw (cw)
  clearSelection (cw)
  selectEdges (cw, c ("A (phosphorylates) B", "B (synthetic lethal) C"))
  getSelectedEdges (cw)

Run the code above in your browser using DataLab