networkFromFile: Load transcription network from file

View source: R/load.R

networkFromFileR Documentation

Load transcription network from file

Description

Function for loading a transcription network. Input should be an edge list

Usage

networkFromFile(file,sep = "",header = F,simple = T)

Arguments

file

the file name for the network edge list

sep

the delimiter separating the columns in the input file

header

a boolean value indicating whether the input file contains header. TRUE for yes, FALSE for no. Default value is FALSE

simple

a boolean value indicating whether to load the network as simple graph. TRUE for yes, FALSE for no. Default value is TRUE. simple = TRUE means the self-loops and multiple edges will be removed once the network is loaded.

Details

This function loads the network from file. Network should be fomated into a two-column edge list in the file. The first column represents the gene ID for transcription factor and the second column represents the gene ID for the correspoinding target. Two columns should be separated by a delimiter (tab, comma, space, etc.). The input network will be loaded as a directed network.

Value

An "igraph" object storing the network

Author(s)

Qi Song

References

Csardi G, Nepusz T: The igraph software package for complex network research, InterJournal, Complex Systems 1695. 2006.

See Also

CoReg


LiLabAtVT/CoReg documentation built on May 8, 2022, 10:17 a.m.