getFirstNeighbors: getFirstNeighbors

Description Usage Arguments Value Author(s) See Also Examples

Description

Returns a non-redundant ('uniquified') list of all of the first neighbors of the supplied list of nodes.

Usage

1
getFirstNeighbors(obj, node.names, as.nested.list = FALSE)

Arguments

obj

a CytoscapeWindowClass object.

as.nested.list

a Boolean object of if a nested list or a concatenated list should be returned

node.names

a String list object.

Value

A list of node names.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

selectNodes selectFirstNeighborsOfSelectedNodes

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 ('getFirstNeighbors.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'grid')
  print (getFirstNeighbors (cw, 'A'))
  selectNodes (cw, getFirstNeighbors (cw, 'A'))  # note that A is not selected

## End(Not run)

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