Description Usage Arguments Value Author(s) See Also Examples
The function can combine networks computed from e.g. fetchNetwork
, fetchHetNetwork
, computeCorrelation
,
computeParCorrelation
, and computeSimilarity
.
1 | combineNetworks(networks, returnas)
|
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. |
list of nodes and edges. Return empty list if error or found nothing.
Kwanjeera W kwanich@ucdavis.edu
fetchNetwork
, fetchHetNetwork
, computeCorrelation
, computeParCorrelation
, computeSimilarity
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.