exportNetwork {GeneNetworkBuilder} | R Documentation

## Save network in various formats

### Description

Save graph into HTML, json or xgmml format.

### Usage

    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

    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")

[Package GeneNetworkBuilder version 1.28.1 Index]