Description Usage Arguments Value Examples
View source: R/MakePredictions.r
Creates a matrix of predictions for a particular hypothesis. The output is an array containing the relationship between each node and the hypothesis. The hypothesis provided will be the vertex id of one of the nodes in the network (as an integer node ID or name, including + or - for up/down regulation in the case of a CCG). The signOfHypothesis variable should be a 1 or -1, indicating up/down regulation.
1 2 | MakePredictions(hypothesisnode, signOfHypothesis, network, delta,
nodesInExperimentalData = NULL)
|
hypothesisnode |
the node in the causal graph from which predictions should be made. Can be either a (numerical) node ID or a (string) node name. |
signOfHypothesis |
whether the hypothesis node is up- or down-regulated. Should be +1 or -1. |
network |
a (Computational) Causal Graph, as an igraph. |
delta |
the distance to search within the causal graph. |
nodesInExperimentalData |
optional. Nodes to include in the output. Should be a list of node IDs. |
a matrix of predictions for the given particular hypothesis
1 2 3 | network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif')
ccg <- CreateCCG(network)
predictions <- MakePredictions('NodeA', +1, ccg, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.