Learn R Programming

fbar (version 0.6.0)

recompose_metabolites: Merge metabolite stub and compartment to form an id

Description

Merge metabolite stub and compartment to form an id

Usage

recompose_metabolites(
  expanded_metabolites,
  before_signifier = "_",
  after_signifier = ""
)

Arguments

expanded_metabolites

a metabolite table as created by decompose_metabolites

before_signifier

a string that is inserted before the compartment identifier

after_signifier

a string that is inserted after the compartment identifier

Value

A merged metabolite table with one column, met

Examples

Run this code
# NOT RUN {
data(ecoli_core)

mod <- reactiontbl_to_expanded(ecoli_core)

decompose_metabolites(mod$mets)

recompose_metabolites(decompose_metabolites(mod$mets))
# }

Run the code above in your browser using DataLab