setEdgeLineStyleRule: specify the line styles to be used in drawing edges

Description Usage Arguments Value Author(s) See Also Examples

Description

Specify how data attributes – for the specified named attribute – are mapped to edge line style.

Usage

1
2
setEdgeLineStyleRule(obj, edge.attribute.name, attribute.values, line.styles,
                     default.style='SOLID', vizmap.style.name = 'default')

Arguments

obj

a CytoscapeWindowClass object.

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'.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getLineStyles setNodeBorderColorRule (detailed example) getVisualStyleNames

Examples

 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)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.