Description Usage Arguments Value Author(s) See Also Examples
Specify how edge attributes – that is, data values of the specified edge attribute – control the color of the target arrow, found at the end of an edge, where it connects to the target node.
1 | setEdgeTargetArrowColorRule(obj, edge.attribute.name, attribute.values, colors, default.color='#000000')
|
obj |
a |
edge.attribute.name |
the edge attribute whose values will, when this ColorRule is applied, determine the color of the target arrow of each edge. |
attribute.values |
A list of scalar, discrete values. For instance, interaction types: 'phosphorylates', 'ubiquinates', 'represses', 'activates' |
colors |
A color for each of the attribute.values |
default.color |
The color to use when an explicit mapping is not provided. (Note: this is broken in Cytoscape 2.7) |
None.
Paul Shannon
1 2 3 4 | cw <- new.CytoscapeWindow ('setEdgeTargetArrowColorRule.test', graph=makeSimpleGraph())
colors <- c ("#AA00AA", "#AAAA00", "#AA0000")
edgeType.values <- c ('phosphorylates', 'synthetic lethal', 'undefined')
setEdgeTargetArrowColorRule (cw, 'edgeType', edgeType.values, colors)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.