draw_network: Generate a ".gv" figure of the shortest path in a network

Description Usage Arguments Details Value See Also Examples

Description

Generate a ".gv" figure of the shortest path in a network. This file is can be visualized in software able to read the DOT format.

Usage

1
draw_network(in_network, pathway, outfile = "pathway.gv", level = "zero")

Arguments

in_network

The network used for analysis

pathway

The pathway between two genes, usually generated by the find_path function

outfile

A character string naming the output file

level

Level "zero" and level "one" currently supported. The figure with level zero include only the nodes in the specified path. The figure with level one include all the nodes in the specified path and all the nodes that they in turn interact with.

Details

Generates a file containing a text description of the sub-network returned by the find_path function. The output file is in the DOT format, which can be visualised by a number of Graphviz compatible software packages.

Value

Generates a ".gv" file in the working directory.

See Also

See Also find_path, import_network

Examples

1
2
3
4
5
6
7
8
## Not run: 
network <- import_network("example_network_Cyt.txt")

path_k_to_e <- find_path(network,"k","e")

draw_network(network,path_k_to_e)

## End(Not run)

CandidateBacon documentation built on May 2, 2019, 6:11 p.m.