Description Usage Arguments Value Author(s) See Also Examples
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 RCytoscape. This method converts these standard R data type names, to the forms needed by Cytoscape.
1 | initNodeAttribute(graph, attribute.name, attribute.type, default.value)
|
graph |
a Bioconductor |
attribute.name |
a |
attribute.type |
a |
default.value |
something sensible, of the right type |
Returns the modified graph.
Paul Shannon
initEdgeAttribute makeSimpleGraph
1 2 | g = new ('graphNEL', edgemode='directed')
g = initNodeAttribute (g, 'lfc', 'numeric', 1.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.