saveLayout: saveLayout

Description Usage Arguments Value Author(s) See Also Examples

Description

Save the current layout (that is, node positions) to the specified file.

Usage

1
saveLayout(obj, filename, timestamp.in.filename=FALSE)

Arguments

obj

a CytoscapeWindowClass object.

filename

a string.

timestamp.in.filename

logical.

Value

Nothing.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

restoreLayout

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('saveLayout.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  saveLayout (cw, 'layout.RData')
  layoutNetwork(cw, 'fruchterman-rheingold')
  restoreLayout (cw, 'layout.RData')
  # you might need to adjust the zoom
  saveLayout (cw, 'layout2', timestamp.in.filename=TRUE)

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.