View source: R/core_functions.R
gene_contributions | R Documentation |
Identify potential important gene contributors for each metabolite.
gene_contributions(j, cmps_sub_good, all_rxns, subjects, norm_kos, ko_net)
j |
index (from lapply usually) |
cmps_sub_good |
CMP scores for metabolites to be analyzed |
all_rxns |
list of reaction tables for each compound |
subjects |
vector of subject names |
norm_kos |
gene abundance matrix |
ko_net |
full network |
list of information on contributors. Item 1 is the table of correlations between scores with and without each gene (also written to a file). Item 2 is a table of the associated reactions for each of the contributor genes. Item 3 is an integer equal to 1 if the metabolite scores are predicted primarily by synthesis, -1 if scores are predicted primarily by degradation, or 0 if neither. Item 4 is a vector of the number of genes and contributor genes involved in synthesis and degradation reactions.
lapply(1:length(good_mets), cmp_contributions, cmps_sub_good = cmps_sub_good, all_rxns = all_rxns[[j]],
subjects=subjects, norm_kos = norm_kos, ko_net = ko_net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.