setEdgeAttributes: setEdgeAttributes

Description Usage Arguments Value Author(s) See Also Examples

Description

Transfer the named edge attribute from the R graph (found in obj@graph) to Cytoscape.This method is typically called by displayGraph, which will suffice for most users' needs. It transfers the specified edge attributes, for all edges, from the cw@graph slot to Cytoscape.

Usage

1
setEdgeAttributes(obj, attribute.name)

Arguments

obj

a CytoscapeWindowClass object.

attribute.name

a string, one of the attributes defined on the edges.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setEdgeAttributesDirect setNodeAttributes setNodeAttributesDirect

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 ('setEdgeAttributes.test', graph=makeSimpleGraph())
  attribute.names <- eda.names (cw@graph)
  sendNodes (cw)
  sendEdges (cw)
  
  for (attribute.name in attribute.names){
    setEdgeAttributes (cw, attribute.name)
  }

## End(Not run)

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