setNodeShapeRule: setNodeShapeRule

Description Usage Arguments Value Author(s) See Also Examples

Description

Specify how data attributes – the specified node attribute values – determine the node shape.

Usage

1
2
setNodeShapeRule (obj, node.attribute.name=, attribute.values, node.shapes,
                  default.shape, vizmap.style.name = 'default')

Arguments

obj

a CytoscapeWindowClass object.

node.attribute.name

the node attribute whose values will determine the shape of each node when this rule is applied.

attribute.values

A list of scalar, discrete values. For instance, molecule types: 'transporter', 'receptor', 'kinase'

node.shapes

A list of nodes selected from among those supported.

default.shape

A single String, the shape used if no explicit mapping is provided.

vizmap.style.name

visual style name, defaults to the style 'default'.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setNodeColorRule setNodeLabelRule

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 ('setNodeShapeRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  shapes <- c("TRIANGLE", "ROUND_RECTANGLE", "ELLIPSE")
  molecule.types <- c("kinase", "transcription factor", "glycoprotein")
  setNodeShapeRule (cw, node.attribute.name='type', molecule.types, shapes)

## End(Not run)

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