addCyEdge: addCyEdge

Description Usage Arguments Value Author(s) See Also Examples

Description

Given a CytoscapeWindow containing a (possibly empty) graph, this method adds an edge. Edge attributes are added separately, via successive calls to sendEdgeAttributesDirect. The two nodes must already exist in the Cytoscape network.

Usage

1
addCyEdge(obj, sourceNode, targetNode, edgeType, directed)

Arguments

obj

a CytoscapeWindowClass object.

sourceNode

a character string object.

targetNode

a character string object.

edgeType

a character string object.

directed

a boolean object.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

sendEdgeAttributesDirect addCyNode

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())
  window.name <- 'demo addCyEdge'
  cw <- CytoscapeWindow (window.name, graph=makeSimpleGraph ())
  displayGraph (cw)
  layoutNetwork(cw)
  directed = TRUE
  addCyEdge (cw, 'A', 'B', 'synthetic rescue', directed)

## End(Not run)

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