initNodeAttribute: initNodeAttribute

Description Usage Arguments Value Author(s) See Also Examples

Description

Create the node attribute slot that the Bioconductor graph class requires, including a default value, and then specifying what the base type (or 'class') is – 'char', 'integer', or 'numeric' – which is needed by RCy3. This method converts these standard R data type names, to the forms needed by Cytoscape.

Usage

1
initNodeAttribute(graph, attribute.name, attribute.type, default.value)

Arguments

graph

a Bioconductor graph object.

attribute.name

a string, the name of the new node attribute.

attribute.type

a string, either 'char', 'integer', or 'numeric'

default.value

something sensible, of the right type

Value

Returns the modified graph.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

initEdgeAttribute makeSimpleGraph

Examples

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

  g = new ('graphNEL', edgemode='directed')
  g = initNodeAttribute (g, 'lfc', 'numeric', 1.0)

## End(Not run)

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