Learn R Programming

NCIgraph (version 1.20.0)

translateNCI2GeneID: Gives the entrezID corresponding to the nodes of a graph

Description

Gives the entrezID corresponding to the nodes of a graph.

Usage

translateNCI2GeneID(g)

Arguments

g
A graph object.

Value

character giving the entrez ID of the nodes of g.

See Also

parseNCInetwork()

Examples

Run this code
##------------------------------
## Load NCIgraph
##------------------------------

library(NCIgraph)

## Get some raw networks

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

## Parse them

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

## Get the gene ids for the first of them

gids <- translateNCI2GeneID(grList[[1]])

Run the code above in your browser using DataLab