writeNetsSIF {netDx} | R Documentation |
write patient networks in Cytoscape's .sif format
writeNetsSIF(netPath, outFile = paste(tempdir(), "out.sif", sep = getFileSep()), netSfx = "_cont.txt")
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 |
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.
No value. Side effect of writing all networks to outFile
netDir <- system.file("extdata","example_nets",package="netDx") netFiles <- paste(netDir,dir(netDir,pattern='txt$'), sep=getFileSep()) writeNetsSIF(netFiles,'merged.sif',netSfx='.txt')