dot-create_substrates_combinations: Create substrates combinations

.create_substrates_combinationsR Documentation

Create substrates combinations

Description

The function returns a data.frame with all combinations from substrates.

Usage

.create_substrates_combinations(substrates = substrates, template = template)

Arguments

substrates

list of character vector(s)

template

list

Details

The string replacement depend on the reaction argument.

The function will internally expand.grid to create the combinations.

Value

data.frame

Author(s)

Michael Witting, michael.witting@helmholtz-muenchen.de and Thomas Naake, thomasnaake@googlemail.com

Examples

 FA <- c("FA(14:0(12Me))", "FA(16:0(14Me))", "FA(15:1(9Z)(14Me))",        
    "FA(17:0(16Me))", "FA(12:0(11Me))", "FA(13:0(12Me))", "FA(14:0(13Me))",
    "FA(15:0(14Me))", "FA(16:0(15Me))", "FA(12:0)", "FA(14:0)")
substrates <- list(FA = FA)

## create data.frame of substrates
template <- LipidNetworkPredictR:::.create_template(template = NULL, 
    reaction = "RHEA:15421")
LipidNetworkPredictR:::.create_substrates_combinations(
    substrates = substrates, template = template)

michaelwitting/wormLipidPredictR documentation built on Dec. 20, 2024, 5:35 a.m.