Learn R Programming

RCy3 (version 1.2.0)

getSelectedEdges: getSelectedEdges

Description

Retrieve the identifiers of all the edges selected in the current graph.

Usage

getSelectedEdges(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

A list of character strings.

Examples

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

  cw <- CytoscapeWindow ('getSelectedEdges.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  redraw (cw)
    # in Cytoscape, interactively select an edge or call the selectEdges function
  selectEdges (cw, "A (phosphorylates) B")
  getSelectedEdges (cw)
    # [1] "A (phosphorylates) B"

Run the code above in your browser using DataLab