createNodeFrame: Create A Data.frame To Represent All Vertices in fullNetwork.

View source: R/constructFullNetwork.R

createNodeFrameR Documentation

Create A Data.frame To Represent All Vertices in fullNetwork.

Description

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.

Usage

createNodeFrame(edgeFrame)

Arguments

edgeFrame

A data frame created by createEdgeFrame, must have "Substrate" and "Product" columns, case sensitive.

Examples

## Not run: 
 ER <- microCompet::EnzymaticReactions
 relevantReactions <- ER[ER$Sugar == "ribose", ]
 edgeFrame <- createEdgeFrame(relevantReactions)
 nodeFrame <- createNodeFrame(edgeFrame)
 nodeFrame

## End(Not run)


MolyWang/microCompet documentation built on Feb. 26, 2023, 9:29 p.m.