writeNetsSIF: write patient networks in Cytoscape's .sif format

Description Usage Arguments Details Value Examples

View source: R/Nets_writeSIF.R

Description

write patient networks in Cytoscape's .sif format

Usage

1
2
3
4
5
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

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

BaderLab/netDx documentation built on Sept. 26, 2021, 9:13 a.m.