setNodeShapeRule: setNodeShapeRule

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

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

Arguments

obj

a CytoscapeWindowClass object.

node.attribute.name

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

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.

Value

None.

Author(s)

Paul Shannon

See Also

setNodeColorRule setNodeLabelRule

Examples

1
2
3
4
5
6
  cw <- new.CytoscapeWindow ('setNodeShapeRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  shapes <- c ("trapezoid", "round_rect", "ellipse")
  molecule.types <- c ("kinase", "transcription factor", "glycoprotein")
  setNodeShapeRule (cw, node.attribute.name='type', molecule.types,  shapes)
  redraw (cw)

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.