View source: R/core_mimosa2_funcs.R
fit_cmp_net_edit | R Documentation |
Greedy algorithm to test network improvements /refine rxn network
fit_cmp_net_edit(
network,
species,
mets_melt,
manual_agora = F,
rsq_factor = 1.15,
min_rsq = 0.1,
min_rxns = 3,
max_rxns_test = 40,
rank_based = F,
species_specific = T
)
network |
Edge list reaction table (including reversibility info) |
species |
Table of species abundances |
mets_melt |
Table of metabolite concentrations |
manual_agora |
Whether to leave in agora/bigg format |
rsq_factor |
Improvement in R squared needed to keep going |
min_rsq |
Minimum r squared needed to accept an improvement |
min_rxns |
Minimum number of reactions remaining to continue iterating |
rank_based |
Whether to use rank-based regression |
species_specific |
Whether to adjust rxns in a species-specific or whole-community manner |
max_rxns |
Maximum number of reactions to try |
A list of model fitting results as well as revised versions of the community metabolic network model and the updated CMP scores
get_best_rxn_subset(met1, species, met_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.