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 2 | setEdgeLineStyleRule(obj, edge.attribute.name, attribute.values, line.styles,
default.style='SOLID', vizmap.style.name = 'default')
|
obj |
a |
edge.attribute.name |
the edge attribute whose values will determine the line style of each edge when this rule is applied. |
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. |
vizmap.style.name |
visual style name, defaults to the style 'default'. |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
getLineStyles
setNodeBorderColorRule
(detailed example)
getVisualStyleNames
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setEdgeLineStyleRule.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
line.styles <- c('SINEWAVE', 'DOT', 'PARALLEL_LINES')
edgeType.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
setEdgeLineStyleRule (cw, 'edgeType', edgeType.values, line.styles)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.