loadNetwork: Loads a network from a file.

Description Usage Arguments Details Value See Also Examples

View source: R/utils.R

Description

loadNetwork loads a network from a file and returns the network object.

Usage

1
loadNetwork(pathToFile)

Arguments

pathToFile

The path points to a file

Details

This function loads a network from a Tab-separated values text file and returns the network object. The file format contains three columns: source, interaction type, and target. "Source" and "target" are gene/protein identifiers that are used to define nodes, while "interaction type" labels the edges connecting each pair of nodes. The returned network object contains the network name, three data frames used for storing the nodes/edges and network attributes, respectively.

Value

The network object

See Also

output, createRBNs, calSensitivity

Examples

1
2
amrn <- loadNetwork("D:\\AMRN.sif")
print(amrn)

csclab/RMut documentation built on May 14, 2019, 12:07 p.m.