Learn R Programming

RCytoscape (version 1.22.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
  cw <- CytoscapeWindow ('getGraphFromCyWindow.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw)
  redraw (cw)
  g.cy <- getGraphFromCyWindow (cw, 'getGraphFromCyWindow.test')
  print (g.cy)  # 3 nodes, 3 edges

Run the code above in your browser using DataLab