networkFromEdgeLIst: Convert an edge list to a graph object

networkFromEdgeListR Documentation

Convert an edge list to a graph object

Description

Function for converting an edge list into a graph object. Input should be a data frame containing two columns. The first column contains the IDs for transcription factors and second the IDs for target genes

Usage

networkFromEdgeList(edgeList,simple = T)

Arguments

edgeList

Data frame of the network edge list.

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 converts data frame to an igraph graph object. Data frame should contain two columns. The first column contains the IDs for transcription factors and second the IDs for target genes.

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.