combineNetworks: Combine networks

Description Usage Arguments Value Author(s) See Also Examples

Description

The function can combine networks computed from e.g. fetchNetwork, fetchHetNetwork, computeCorrelation, computeParCorrelation, and computeSimilarity.

Usage

1
combineNetworks(networks, returnas)

Arguments

networks

list of networks. Each network contains data frame of nodes and data frame of edges.

returnas

a string specifying output type. It can be one of dataframe, list, json. Default is dataframe.

Value

list of nodes and edges. Return empty list if error or found nothing.

Author(s)

Kwanjeera W kwanich@ucdavis.edu

See Also

fetchNetwork, fetchHetNetwork, computeCorrelation, computeParCorrelation, computeSimilarity

Examples

1
2
3
4
#simnw <- computeSimilarity(c(1110,10413,196,51,311,43,764,790)) #compute similarity network for given pubchem compounds
#dt <- data.frame(id=seq(32), mtcars, row.names = NULL) #data frame of x
#cornw <- computeCorrelation(x = dt, xtype = "compound", coef=0.9, pval = 1e-10) #compute correlation network
#result <- combineNetworks(list(simnw, cornw))

kwanjeeraw/metabox documentation built on May 20, 2019, 7:07 p.m.