View source: R/postProcessing.R
make_contrib_network | R Documentation |
Convert edge list and node list to class network object for plotting with ggnetwork
make_contrib_network(gene_contribs, node_data, node_attrs, edge_attrs)
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 |
network object
make_contrib_network(gene_contribs_all, node_data, c("Dataset", "Correlation", "Metabolite", "PredictionType2", "SuperPath"), c("KO", "Cor", "Dataset", "stoichReac", "stoichProd"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.