getMetGraph: Transform the edges list of each sample in graphml format...

Description Usage Arguments Value Examples

View source: R/getMetGraph.R

Description

This function creates a graph for each sample where metabolites are nodes and the enzymes are the edges, whose weight is given by the expression value. It simplifies the multiedges in single ones by taking the mean of enzyme catalyzing the same reaction and summing up those coming from different reactions.

Usage

1
getMetGraph(input_dir, output_dir)

Arguments

input_dir

path to input directory containing the samples edge lists

output_dir

path to output directory

Value

graphs in graphml format

Examples

1
2
3
4
5
## Not run: 
input_dir <- system.file("extdata/edges_list/", package = "MetabolitesGraphs")
output_dir <- "/path/to/ouput/"
getMetGraph(input_dir,output_dir)
## End(Not run)

cds-group/MetabolitesGraphs documentation built on Dec. 19, 2021, 2:52 p.m.