Learn R Programming

RCytoscape (version 1.22.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
  cy <- CytoscapeConnection ()
  count.at.start = getWindowCount (cy)
  cw2 <- CytoscapeWindow ('getWindowCount.test1', graph=makeSimpleGraph())
  cw3 <- CytoscapeWindow ('getWindowCount.test2', graph=makeSimpleGraph())
  getWindowCount (cy)
    # should be two greater than 'count.at.start'

Run the code above in your browser using DataLab