recompose_metabolites {fbar}R Documentation

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

data(ecoli_core)

mod <- reactiontbl_to_expanded(ecoli_core)

decompose_metabolites(mod$mets)

recompose_metabolites(decompose_metabolites(mod$mets))

[Package fbar version 0.6.0 Index]