.add_products | R Documentation |
Helper function for create_reaction
.
The function .add_products
returns a data.frame of substrates and
products. The products are taken and modified from the substrates.
.add_products(substrates, reaction = "RHEA:15421")
substrates |
|
reaction |
|
The string replacement depend on the reaction
argument.
Depending on the argument
, different columns (i.e. substrates)
are required and different columns (i.e. products) are returned.
The function calls internally the function
stringi::stri_replace_all_fixed
.
data.frame
Michael Witting, michael.witting@helmholtz-muenchen.de and Thomas Naake, thomasnaake@googlemail.com
FA <- c("FA(14:0(12Me))", "FA(16:0(14Me))", "FA(15:1(9Z)(14Me))",
"FA(15:0(14Me))", "FA(16:0(15Me))", "FA(12:0)", "FA(14:0)")
substrates <- list(FA = FA)
## create template
template <- LipidNetworkPredictR:::.create_template(template = list(),
reaction = "RHEA:15421")
## create data.frame of substrates
df_substrates <- LipidNetworkPredictR:::.create_substrates_combinations(
substrates = substrates,
constraints = "", negate = FALSE)
## add products to data.frame
LipidNetworkPredictR:::.add_products(substrates = df_substrates,
reaction = "RHEA:15421")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.