View source: R/constructFullNetwork.R
createNodeFrame | R Documentation |
Given an edge frame (have columns "Substrate" and "Product), count total unique compounds involved in all reactions, and their weight (how many reactions this compound is involved in.) This is a helper function defined for constructFullNetwork and is called only internally.
createNodeFrame(edgeFrame)
edgeFrame |
A data frame created by createEdgeFrame, must have "Substrate" and "Product" columns, case sensitive. |
## Not run: ER <- microCompet::EnzymaticReactions relevantReactions <- ER[ER$Sugar == "ribose", ] edgeFrame <- createEdgeFrame(relevantReactions) nodeFrame <- createNodeFrame(edgeFrame) nodeFrame ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.