GetNodeName {CausalR} | R Documentation |
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
GetNodeName(network, nodeID, signed = FALSE)
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 |
a node name or a vector of node names depending if the input is an matrix.
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif') ccg = CreateCCG(network) nodeID <- 10 GetNodeName(ccg, nodeID)