validCyWinR Documentation

validCyWin

Description

Checks all the slots of the object, printing error messages as needed, returning TRUE or FALSE. In particular, RCytoscape imposes some requirements on graphs, including the use of an 'edgeType' edge attribute, and a call to initNodeAttribute and initEdgeAttribute for every attribute. These requirements are checked here.

Usage

validCyWin(obj)

Arguments

obj An instance of the CytoscapeWindow class

Value

TRUE or FALSE. Error messages are written to stderr.

Author(s)

Paul Shannon

Examples

  g <- new ('graphNEL', edgemode='directed')
  cw <- new.CytoscapeWindow ('test validCyWin', graph=g)
  validCyWin (cw)  # should see warning about absence of the privileged edge attribute 'edgeType'; returns FALSE