selectNodes: Select nodes

Description Usage Arguments Value Examples

View source: R/selectNodes.R

Description

Select nodes based on name, SUID or any other column.

Usage

1
2
selectNodes(nodes, by.col = "name", keep.selected = FALSE,
  network = "current", base.url = "http://localhost:1234/v1")

Arguments

nodes

a list of nodes that you want to select

by.col

column by which to perform selection (e.g., SUID, name); default is "name"

keep.selected

(boolean) whether to add to existing selection (TRUE) or clear prior selection (FALSE); default is FALSE

network

name or suid of the network; default is "current" network

base.url

cyrest base url for communicating with cytoscape

Value

list of SUIDs for nodes selected, excluding those that did not match provided list and those previously selected (even if keep.selected=TRUE)

Examples

1
2
3
4
example(createNetwork)

selectNodes(c('node 0','node 1'))
selectNodes('B', by.col='group')

cytoscape/r2cytoscape documentation built on May 4, 2019, 6:36 p.m.