setNodeAttributesDirect: setNodeAttributesDirect

Description Usage Arguments Value Author(s) See Also Examples

Description

Transfer the named node attribute, for all named nodes, to Cytoscape. The attribute must be previously defined on the nodes of the graph: see nodeDataDefaults in the graph class.This method is useful if you wish to run a 'movie'. For example, if you have a timecourse experiment, with different values at successive time points of the 'lfc' (log fold change) measurements or 'pValue' of each node. With a node color and node size rule already specified, you can animate the display of the nodes across time in the graph by pumping new values of the attributes using this method.

Usage

1
setNodeAttributesDirect(obj, attribute.name, attribute.type, node.names, values)

Arguments

obj

a CytoscapeWindowClass object.

attribute.name

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

attribute.type

a string from one of these three groups: (floating, numeric, double), (integer, int), (string, char, character). This parameter is required because RCy3 cannot always infer the type of an attribute.

node.names

a list of strings, node names

values

a list of objects of the type specified by 'attribute.name', one per node

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setNodeAttributes setEdgeAttributes setEdgeAttributesDirect

Examples

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

  cw <- CytoscapeWindow ('setNodeAttributesDirect.test', graph=makeSimpleGraph())
  sendNodes(cw)
  setNodeAttributesDirect (cw, 'count', 'int', c ('A', 'B', 'C'), c (4, 8, 12))

## End(Not run)

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