Description Usage Arguments Value Author(s) See Also Examples
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.
1 | saveNetwork(obj, file.name, format='cys')
|
obj |
a |
file.name |
a |
format |
a |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
saveImage
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.