View source: R/competeMicrobiota.R
completenessForAllPathways | R Documentation |
Given a genome of interest, described by genomeName and a vector of sugar degradation genes, evaluate the completeness of all sugar degradation pathways. The completeness is evaluated by (steps can be catalyzed) over (total steps within a pathway), and this score should always be between 0 and 1 (inclusive).
completenessForAllPathways(geneVec, allSugars, ER, totalSteps)
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. |
totalSteps |
A vector containing counts of total steps for all sugar degradation
pathways. Result of helper function |
A named vector containing completeness score for all sugar degradation pathways.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.