Learn R Programming

RCy3 (version 1.2.0)

getLayoutPropertyType: getLayoutPropertyType

Description

Returns the type of one of the tunable properties (property.name) for the specified layout.

Usage

getLayoutPropertyType(obj, layout.name, property.name)

Arguments

obj
a CytoscapeConnectionClass object.
layout.name
a string object.
property.name
a string object.

Value

A character string specifying the type. These types do not always necessarily need to be R types.

See Also

layout getLayoutNames getLayoutNameMapping getLayoutPropertyNames getLayoutPropertyValue setLayoutProperties

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cy <- CytoscapeConnection ()
  prop.names <- getLayoutPropertyNames (cy, 'isom')
  print (prop.names)
    # "maxEpoch"           "radiusConstantTime" "radius"             "minRadius"
    # "initialAdaptation"  "minAdaptation"      "sizeFactor"         "coolingFactor"
    # "singlePartition" 

  sapply (prop.names, function (pn) getLayoutPropertyType (cy, 'isom', pn))
    # maxEpoch radiusConstantTime             radius          minRadius
    #           "int"              "int"              "int"              "int"
    # initialAdaptation      minAdaptation         sizeFactor      coolingFactor
    #        "double"           "double"           "double"           "double"
    # singlePartition 
    #       "boolean" 

Run the code above in your browser using DataLab