writeNetsSIF {netDx} | R Documentation

## write patient networks in Cytoscape's .sif format

### Description

write patient networks in Cytoscape's .sif format

### Usage

    writeNetsSIF(netPath, outFile = paste(tempdir(), "out.sif", sep =
      getFileSep()), netSfx = "_cont.txt")

### Arguments

`netPath` | (char): vector of path to network files; file suffix should be '_cont.txt' networks should be in format: A B 1 where A and B are nodes, and 1 indicates an edge between them
`outFile` | (char) path to .sif file
`netSfx` | (char) suffix for network file name

### Details

Converts a set of binary interaction networks into Cytoscape's sif format. (http://wiki.cytoscape.org/Cytoscape_User_Manual/Network_Formats) This utility permits visualization of feature selected networks.

### Value

No value. Side effect of writing all networks to `outFile`

### Examples

    netDir <- system.file("extdata","example_nets",package="netDx")
    netFiles <- paste(netDir,dir(netDir,pattern='txt$'),
    sep=getFileSep())
    writeNetsSIF(netFiles,'merged.sif',netSfx='.txt')

[Package netDx version 1.0.3 Index]