getNCIPathways: Loads networks from Cytoscape and parses them

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getNCIPathways.R

Description

Loads networks from Cytoscape and parses them.

Usage

1
getNCIPathways(cyList=NULL, parseNetworks=TRUE, entrezOnly=TRUE, verbose=FALSE)

Arguments

cyList

a list providing the networks loaded from Cytoscape. If NULL, the function will try to build the list from Cytoscape.

verbose

If TRUE, extra information is output.

parseNetworks

A logical. If FALSE, the raw NCI networks are returned as graphNEL objects. If TRUE, some additional parsing is performed by the parseNCInetwork function.

entrezOnly

A logical. If TRUE, only keep nodes with an entrezID property.

Value

A list of two elements: pList, a list of graphNEL objects, and failedW a list containing the names of the networks that R failed to read from cytoscape.

Author(s)

Laurent Jacob

See Also

parseNCInetwork()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##------------------------------
## Load NCIgraph
##------------------------------

library(NCIgraph)

##------------------------------
## Example 1: with Cytoscape
##------------------------------

## Must have Cytoscape running with some networks open and CyREST plugin started.

## In this case, getNCIPathways will both read the raw networks from Cytoscape and parse them.

## Not run: 
grList <- getNCIPathways(cyList=NULL, parseNetworks=TRUE, entrezOnly=TRUE, verbose=TRUE)$pList

## End(Not run)

##------------------------------
## Example 2: without Cytoscape
##------------------------------

## Get some raw networks

data("NCIgraphVignette", package="NCIgraph")

## When passed a non null cyList argument (a list of networks),
## getNCIPathways will simply parse the list of networks

grList <- getNCIPathways(cyList=NCI.demo.cyList, parseNetworks=TRUE, entrezOnly=TRUE, verbose=TRUE)$pList

NCIgraph documentation built on Nov. 8, 2020, 5:54 p.m.