View source: R/competeMicrobiota.R
calculateStepsForOneSugar | R Documentation |
Given a vector of gene names that contain all sugar degradation enzymes from a genome of interest, count of number of different enzymes encoded by these genes that involve in the degradation of one specified sugar. Enzymes with same catalytic function (Reaction.EC) but encoded by different genes are counted once.
calculateStepsForOneSugar(geneVec, sugar, ER)
geneVec |
A vector of gene encoding sugar degradation enzymes. |
sugar |
The desired sugar degradation pathway. A simple sugar such as "fructose". |
ER |
A data.frame describing enzymatic reactions with at least 3 columns: "Gene" for gene encoding an enzyme, "Reaction.EC" for categorization of catalytic reactions, and "Sugar" for degradation pathway. Column names need to be EXACTLY the same, case sensitive. |
An integer. Number of different sugar specific enzymes present in the geneVec.
## Not run: geneVec <- c("rpe", "rpiB", "eno", "fruK") ER <- EnzymaticReactions sugarScore <- calculateStepsForOneSugar(geneVec, "fructose", ER) sugarScore ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.