getLayoutNameMapping: getLayoutNameMapping

Description Usage Arguments Value Author(s) See Also Examples

Description

The Cytoscape 'Layout' menu lists many layout algorithms, but the names presented there are different from the names by which these algorithms are known to layout method. This method returns a named list in which the names are from the GUI, and the values identify the names you must use to choose an algorithms in the programmatic interface.

Usage

1

Arguments

obj

a CytoscapeConnectionClass object.

Value

A named list of strings.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getLayoutNames getLayoutPropertyNames getLayoutPropertyType getLayoutPropertyValue setLayoutProperties

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cy <- CytoscapeConnection ()
  layout.name.map <- getLayoutNameMapping (cy)
  print (head (names (layout.name.map), n=3))
    # [1] "Attribute Circle Layout"     "Stacked Node Layout"        
    # [3] "Degree Sorted Circle Layout"
  print (head (as.character (layout.name.map), n=3))
    # [1] "attribute-circle"    "stacked-node-layout" "degree-circle"

## End(Not run)

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