MakePredictions: make predictions

Description Usage Arguments Value Examples

View source: R/MakePredictions.r

Description

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.

Usage

1
2
MakePredictions(hypothesisnode, signOfHypothesis, network, delta,
  nodesInExperimentalData = NULL)

Arguments

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.

Value

a matrix of predictions for the given particular hypothesis

Examples

1
2
3
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif')
ccg <- CreateCCG(network)
predictions <- MakePredictions('NodeA', +1, ccg, 2)

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