View source: R/competeMicrobiota.R
allSugarScoresForOneGenome | R Documentation |
Use the calculateStepsForOneSugar function for all sugar pathways one by one, and build a named vector for all pathways.
allSugarScoresForOneGenome(geneVec, allSugars, ER)
geneVec |
A vector of gene names, representing all sugar degradation enzymes present in one genome of interest. |
allSugars |
A vector of all sugar degradation pathways. |
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. |
A vector containing a genome's score for all sugar degradation pathways.
## Not run: geneVec <- c("rpe", "rpiB", "eno", "fucK") ER <- microCompet::EnzymaticReactions ED <- microCompet::EnzymeDistribution allSugars <- sort(unique(ED$Sugar)) sugarScoreVec <- allSugarScoresForOneGenome(geneVec, allSugars, ER) sugarScoreVec ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.