Learn R Programming

RCy3 (version 1.2.0)

CytoscapeWindow: CytoscapeWindow

Description

The constructor for the CytoscapeWindowClass

Usage

CytoscapeWindow(title, graph = new("graphNEL", edgemode='directed'), host = "localhost", port = 1234, create.window = TRUE, overwriteWindow=FALSE, collectTimings=FALSE)

Arguments

title
A character string, this is the name you will see on the Cytoscape network window. Multiple windows with the same name are not permitted.
graph
A Bioconductor graph.
host
Defaults to 'localhost', this is the domain name of a machine which is running Cytoscape with the appropriate CyREST plugin.
port
Defaults to 1234, this may be any port to which CyREST is listening.
create.window
Defaults to TRUE, but if you want a CytoscapeWindow just to call what in Java we would call 'class methods' -- getWindowList (), for instance, a CytoscapeWindow without an actual window can be useful.
overwriteWindow
Every Cytoscape window must have a unique title. If the title that you supply is already in use, this method will fail unless you specify TRUE for this parameter, in which case the pre-existing window with the same title will be deleted before this new one is created.
collectTimings
Defaults to FALSE. Will record and report the time required to send a graph to Cytoscape.

Value

An object of the CytoscapeWindow Class.

See Also

CytoscapeWindow existing.CytoscapeWindow, predictTimeToDisplayGraph

Examples

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

  cw <- CytoscapeWindow ('new.demo', new ('graphNEL'))

Run the code above in your browser using DataLab