Learn R Programming

RCy3 (version 1.2.0)

getGraphFromCyWindow: getGraphFromCyWindow

Description

Returns the Cytoscape network as a Bioconductor graph

Usage

getGraphFromCyWindow(obj, window.title)

Arguments

obj
a CytoscapeConnectionClass object.
window.title
a string object.

Value

A Bioconductor graph object.

Examples

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

  cw <- CytoscapeWindow ('getGraphFromCyWindow.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw)
  g.cy <- getGraphFromCyWindow (cw, 'getGraphFromCyWindow.test')
  print (g.cy)  # 3 nodes, 3 edges

Run the code above in your browser using DataLab