initEdgeAttribute: initEdgeAttribute

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RCytoscape.R

Description

Create the edge 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 RCytoscape. This method converts these standard R data type names, to the forms needed by Cytoscape.

Usage

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

Arguments

graph

a Bioconductor graph object.

attribute.name

a string, the name of the new edge 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)

Paul Shannon

See Also

initNodeAttribute makeSimpleGraph

Examples

1
2
  g = new ('graphNEL', edgemode='directed')
  g = initEdgeAttribute (g, 'edgeType', 'char', 'associates with')

RCytoscape documentation built on May 20, 2017, 10:11 p.m.

Search within the RCytoscape package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.