Description Usage Arguments Value Examples
View source: R/metabolite_utilities.R
Decompose a metabolite table into the metabolite stub itself and the compartment it is in
1 2 3 4 | decompose_metabolites(
met_table,
compartment_regex = "(\\[[a-zA-Z0-9]+]$)|(_[a-zA-Z]$)"
)
|
met_table |
A metabolite table, with one column, |
compartment_regex |
Regular expression to identify compartments in model |
a metabolite table with the columns chemical
and compartment
1 2 3 4 5 6 7 | data(ecoli_core)
mod <- reactiontbl_to_expanded(ecoli_core)
decompose_metabolites(mod$mets)
recompose_metabolites(decompose_metabolites(mod$mets))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.