setEdgeSourceArrowRule: specify the arrow types to be used at the end of an edge at...

Description Usage Arguments Value Author(s) See Also Examples

Description

Specify how data attributes – for the specified named attribute – are mapped to the source arrow type.

Usage

1
2
setEdgeSourceArrowRule(obj, edge.attribute.name, attribute.values, arrows,
                       default='ARROW', vizmap.style.name = 'default')

Arguments

obj

a CytoscapeWindowClass object.

edge.attribute.name

the edge attribute whose values will determine the source arrow of each edge when this rule is applied.

attribute.values

A list of scalar, discrete values. For instance, interaction types:'phosphorylates', 'ubiquinates', 'represses', 'activates'

arrows

One arrow type for each of the attribute.values

default

The arrow type 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

getArrowShapes setNodeBorderColorRule (detailed example) setEdgeColorRule setNodeShapeRule 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 ('setEdgeSourceArrowRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  arrows <- c('Arrow', 'Diamond', 'Circle')
  edgeType.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
  setEdgeSourceArrowRule (cw, 'edgeType', edgeType.values, arrows)

## End(Not run)

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