getSelectedEdgeCount: getSelectedEdgeCount

Description Usage Arguments Value Author(s) Examples

Description

Returns the number of edges currently selected.

Usage

1

Arguments

obj

a CytoscapeWindowClass object.

Value

An integer.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

Examples

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

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

## End(Not run)

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