View source: R/constructFullNetwork.R
createEdgeFrame | R Documentation |
Given a list of enzymatic reactions, extract unique reactions, count number of genes encoding enzymes that catalyze each reaction. This is a helper function defined for constructFullNetwork and is called only internally.
createEdgeFrame(relevantReactions)
relevantReactions |
A data.frame of enzymatic reactions, containing the required columns: Gene, Substrate, Product, Sugar (case sensitive). |
A data.frame with 4 columns. Substrate and Product are tail and head of each edge; NumOfEnzymes is count of enzymes that can catalyze the reaction; Sugar is the simple sugar degradation pathway this reaction is one step of.
## Not run: library("microCompet") ER <- microCompet::EnzymaticReactions relevantReactions <- ER[ER$Sugar == "ribose", ] edgeFrame <- createEdgeFrame(relevantReactions) edgeFrame ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.