CreateCG: create a Computational Graph (CG)

Description Usage Arguments Value Examples

View source: R/CreateCG.r

Description

Creates a CG network from a .sif file. Takes in a .sif file output from Cytoscape, and creates an 'igraph' representing the network. The edges will be annotated with the type of interaction and a weight (1 for activation and -1 for inhibition)

Usage

1
CreateCG(sifFile)

Arguments

sifFile

the path of the .sif file that contains all the information about the network Load in .sif file

Value

a CG network

Examples

1
2
3
4
# get path to example .sif file
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif')
#create cg
cg = CreateCG(network)

Example output

[1] "File read complete - read in 40 lines. Now constructing network"
[1] "Network has been created - now adding edge properties"
[1] "Added weights to edges"

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