Description Usage Arguments Value Author(s) See Also Examples
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 RCy3. This method converts these standard R data type names, to the forms needed by Cytoscape.
1 | initEdgeAttribute(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.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
initNodeAttribute makeSimpleGraph
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 = initEdgeAttribute (g, 'edgeType', 'char', 'associates with')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.