Learn R Programming

CausalR (version 1.4.3)

GetNodeName: get node name

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

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

Run this code
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif')
ccg = CreateCCG(network)
nodeID <- 10
GetNodeName(ccg, nodeID)

Run the code above in your browser using DataLab