xCombineNet: Function to combine networks from a list of igraph objects

Description Usage Arguments Value Note See Also Examples

View source: R/xCombineNet.r

Description

xCombineNet is supposed to combine networks from a list of igraph objects.

Usage

1
2
3
4
5
6
7
xCombineNet(
list_ig,
combineBy = c("union", "intersect"),
attrBy = c("intersect", "union"),
keep.all.vertices = FALSE,
verbose = TRUE
)

Arguments

list_ig

a list of "igraph" objects or a "igraph" object

combineBy

how to resolve edges from a list of "igraph" objects. It can be "intersect" for intersecting edges and "union" for unionising edges (by default)

attrBy

the method used to extract node attributes. It can be "intersect" for intersecting node attributes (by default) and "union" for unionising node attributes

keep.all.vertices

logical to indicate whether all nodes are kept when intersecting edges. By default, it sets to false

verbose

logical to indicate whether the messages will be displayed in the screen. By default, it sets to true for display

Value

an object of class "igraph"

Note

none

See Also

xDefineNet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
RData.location <- "http://galahad.well.ox.ac.uk/bigdata"
## Not run: 
g1 <- xDefineNet(network="KEGG_environmental",
RData.location=RData.location)
g2 <- xDefineNet(network="KEGG_organismal",
RData.location=RData.location)
ls_ig <- list(g1, g2)
ig <- xCombineNet(ls_ig, combineBy='union', attrBy="intersect",
verbose=TRUE)

## End(Not run)

Pi documentation built on Nov. 26, 2020, 2:01 a.m.