Convert HEINZ output to graph

Share:

Description

Function to convert the HEINZ output to a graph object, or if the output is in matrix form, it will create a list of graphs. The function needs the node and the original network, from which the module is calculated.

Usage

1
readHeinzGraph(node.file, network, format=c("graphNEL", "igraph"))

Arguments

node.file

Heinz node output file.

network

Original network from which Heinz input was created.

format

Graph format of output, either igraph or graphNEL.

Value

Graph object.

Author(s)

Daniela Beisser

Examples

1
2
3
4
5
6
7
8
library(DLBCL)
data(interactome)
# precomputed Heinz output files
## Not run: lib <- file.path(.path.package("BioNet"), "extdata") 
module <- readHeinzGraph(node.file=file.path(lib, "lymphoma_nodes_001.txt.0.hnz"), network=interactome, format="graphNEL");
plotModule(module);

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.