GetNodeName: get node name

Description Usage Arguments Value Examples

View source: R/GetNodeName.r

Description

Returns the node name from one or more node IDs, or substitute node names for node IDs, given in first column of a matrix typically of predictions or experimental data

Usage

1
GetNodeName(network, nodeID, signed = FALSE)

Arguments

network

Built from igraph

nodeID

a node ID or a matrix containing node IDs in its first column

signed

whether or not the node name should be signed. Setting this value to TRUE gives a signed name indicating whether the gene is up or down regulated in the network

Value

a node name or a vector of node names depending if the input is an matrix.

Examples

1
2
3
4
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif')
ccg = CreateCCG(network)
nodeID <- 10
GetNodeName(ccg, nodeID)

CausalR documentation built on Nov. 8, 2020, 5:25 p.m.