deleteWindow: deleteWindow

Description Usage Arguments Value Author(s) Examples

Description

Delete the window associated with the supplied CytoscapeConnection object. In addition, Cytoscape's copy of the network is deleted from Cytoscape's memory store, but the R graph object is unaffected. There are two different ways to use this method. First, if you call it on a CytoscapeWindow object, using the default window.title value of NA, the Cytoscape window itself will be deleted. Alternatively, if you supply a window.title as the second argument – independent of whether or not the first argument is a CytoscapeConnection object, or its subclass, a CytoscapeWindow object, the named window is deleted.

Usage

1
deleteWindow(obj, window.title=NA)

Arguments

obj

a CytoscapeConnectionClass object, or subclass

window.title

a string object, optional title

Value

Nothing.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

Examples

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

  window.title <- 'demo deleteWindow'
  cw <- CytoscapeWindow (window.title, graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw)
  deleteWindow (cw)
  cw2 <- CytoscapeWindow ('demo 2')
  cy = CytoscapeConnection ()
  deleteWindow (cy, 'demo 2')

## End(Not run)

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