saveNetwork: saveNetwork

Description Usage Arguments Value Author(s) See Also Examples

Description

Write a network of the specified type to the specified file, at the specified scaling factor. Note:the file is written to the file system of the computer upon which R is running, not Cytoscape – in those cases where they are different. It is saved to the working directory.

Usage

1
saveNetwork(obj, file.name, format='cys')

Arguments

obj

a CytoscapeWindowClass object.

file.name

a char object.

format

a char object. 'cys' is the only type currently supported

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

saveImage

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 ('saveNetwork.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  redraw (cw)
  filename <- paste (getwd (), 'saveNetworkTest', sep='/')
  saveNetwork (cw, filename) # overwrites files with the same name
  # check if the file exists
  file.exists (paste0(filename, '.cys'))

## End(Not run)

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