addCyNode: addCyNode

Description Usage Arguments Value Author(s) See Also Examples

Description

Given a CytoscapeWindow containing a (possibly empty) graph, this method adds a node. Node attributes are added separately, via successive calls to sendNodeAttributesDirect. The new node must be unique – not already a member of the graph as known to Cytoscape.

Usage

1
addCyNode(obj, nodeName)

Arguments

obj

a CytoscapeWindowClass object.

nodeName

a character string object.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

sendNodeAttributesDirect addCyEdge

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())
  window.name <- 'demo addCyNode'
  cw <- CytoscapeWindow (window.name, graph=makeSimpleGraph ())
  displayGraph (cw)
  layoutNetwork (cw)
  addCyNode (cw, 'A NEW NODE')
  layoutNetwork (cw)
  # redraw (cw) --> function no longer required

## End(Not run)

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