View source: R/exportNetwork.R
exportNetwork | R Documentation |
Save graph into HTML, json or xgmml format.
exportNetwork(network, file, format = c("HTML", "json", "XGMML"), ...)
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. |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.