Learn R Programming

RCy3 (version 1.2.0)

getWindowCount: getWindowCount

Description

Returns the number of windows which currently exist in the Cytoscape Desktop.

Usage

getWindowCount(obj)

Arguments

obj
a CytoscapeConnectionClass object.

Value

An integer.

Examples

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

  cy <- CytoscapeConnection ()
  getWindowCount (cy)
    # [1] 0
  cw2 <- CytoscapeWindow ('getWindowCount.test1', graph=makeSimpleGraph())
  cw3 <- CytoscapeWindow ('getWindowCount.test2', graph=makeSimpleGraph())
  getWindowCount (cy)
    # [1] 2

Run the code above in your browser using DataLab