Description Usage Arguments Value Author(s) See Also Examples
Specify how data attributes – for the specified named attribute – are mapped to edge line style.
1 | setEdgeLineStyleRule(obj, edge.attribute.name, attribute.values, line.styles, default.style='SOLID')
|
obj |
a |
edge.attribute.name |
the edge attribute whose values will, when this rule is applied, determine the lineStyle of each edge. |
attribute.values |
A list of scalar, discrete values. For instance, interaction types: 'phosphorylates', 'ubiquinates', 'represses', 'activates' |
line.styles |
One line style for each of the attribute.values |
default.style |
The style to use when an explicit mapping is not provided. |
None.
Paul Shannon
1 2 3 4 5 6 | cw <- new.CytoscapeWindow ('setEdgeLineStyleRule.test', graph=makeSimpleGraph())
displayGraph (cw)
line.styles <- c ('SINEWAVE', 'DOT', 'PARALLEL_LINES')
edgeType.values <- c ('phosphorylates', 'synthetic lethal', 'undefined')
setEdgeLineStyleRule (cw, 'edgeType', edgeType.values, line.styles)
redraw (cw)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.