exportNetwork: Save network in various formats

Description Usage Arguments Examples

View source: R/exportNetwork.R

Description

Save graph into HTML, json or xgmml format.

Usage

1
exportNetwork(network, file, format = c("HTML", "json", "XGMML"), ...)

Arguments

network

output of browseNetwork

file

Name of the file to save to.

format

type in which graph shall be saved. Could be one of HTML, json or XGMML.

...

Parameter could be used by saveWidget for HTML or writeLines for json or saveXML for XGMML.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data("ce.miRNA.map")
data("example.data")
data("ce.interactionmap")
data("ce.IDsMap")
sifNetwork<-buildNetwork(example.data$ce.bind, ce.interactionmap, level=2)
cifNetwork<-filterNetwork(rootgene=ce.IDsMap["DAF-16"], sifNetwork=sifNetwork, 
  exprsData=uniqueExprsData(example.data$ce.exprData, "Max", condenseName='logFC'),
  mergeBy="symbols",
  miRNAlist=as.character(ce.miRNA.map[ , 1]), tolerance=1)
gR<-polishNetwork(cifNetwork)
network <- browseNetwork(gR)
exportNetwork(network, "sample.html")

GeneNetworkBuilder documentation built on Nov. 8, 2020, 8:24 p.m.