make_contrib_network: Convert edge list and node list to class network object for...

View source: R/postProcessing.R

make_contrib_networkR Documentation

Convert edge list and node list to class network object for plotting with ggnetwork

Description

Convert edge list and node list to class network object for plotting with ggnetwork

Usage

make_contrib_network(gene_contribs, node_data, node_attrs, edge_attrs)

Arguments

gene_contribs

output of gene_contributions

node_data

output of run_all_metabolites

node_attrs

vector of node attributes to include in network

edge_attrs

vector of edge attributes to include in network

Value

network object

Examples

make_contrib_network(gene_contribs_all, node_data, c("Dataset", "Correlation", "Metabolite", "PredictionType2", "SuperPath"), c("KO", "Cor", "Dataset", "stoichReac", "stoichProd"))

borenstein-lab/mimosa2 documentation built on Dec. 19, 2024, 12:44 a.m.