Learn R Programming

CausalR (version 1.4.3)

WriteExplainedNodesToSifFile: Write explained nodes to Sif file

Description

Outputs a network of explained nodes in .sif file format for producing visualisations using Cytoscape

Usage

WriteExplainedNodesToSifFile(hypothesisnode, signOfHypothesis, network, data, delta, file, display = TRUE)

Arguments

hypothesisnode
a hypothesis node
signOfHypothesis
the direction of change of hypothesis node
network
a computational causal graph
data
a data file
delta
the number of edges across which the hypothesis should be followed
file
a character string (without extension) that determines the names of the files created. Extension is added automatically. Set to NA if not writing to file.
display
determines if the output written to file is also displayed

Value

two files containing paths from hypothesis node to explained nodes in sif format

Examples

Run this code
hypothesisnode <- "Node0"
signOfHypothesis <- +1
network <- system.file(package='CausalR', 'extdata', 'testNetwork1.sif')
ccg <- CreateCCG(network)
data <- system.file(package='CausalR', 'extdata', 'testData1.txt')
delta <- 2
WriteExplainedNodesToSifFile(hypothesisnode, signOfHypothesis, ccg, data,  delta,
                             file=NA, display=TRUE)

Run the code above in your browser using DataLab