get_metabolites_exchange_fluxes: Get metabolites exchange fluxes

Description Usage Arguments Value Examples

View source: R/MetabolicModelFunctions.R

Description

Get metabolites exchange fluxes

Usage

1
2
3
get_metabolites_exchange_fluxes(model, metabolites,
  exchange_met = build_exchange_met(model), backward_fluxes = "_b",
  forward_fluxes = "_f")

Arguments

model

An object of class modelOrg, the genome scale metabolic model

metabolites

A data.frame containing the names and concentrations of metabolites

exchange_met

A data.frame as build by the function build_exchange_met

backward_fluxes

Optional parameter for irreversible model to indicate backward fluxes

forward_fluxes

Optional parameter for irreversible model to indicate forward fluxes

Value

a data.frame containing the exchange metabolite model id and the equivalent name

Examples

1
2
3
4
data("iMM904")
metabolites<-data.frame("name"=c("D-Glucose","Glycerol"),
                        "concentrations"=c(16,0))
get_metabolites_exchange_fluxes(iMM904,metabolites)

Example output

Joining by: metabolites_id
       name concentrations model_name metabolites_id flux_position  reaction_id
1 D-Glucose             16  glc__D[e]      glc__D[e]           550 EX_glc__D(e)
2  Glycerol              0    glyc[e]        glyc[e]           555   EX_glyc(e)

CoRegFlux documentation built on Nov. 8, 2020, 5:21 p.m.