This function is deprecated. github.com/Fl0Sch/ROI.plugin.gurobi is recommended instead.

reactiontbl_to_gurobi(reaction_table, regex_arrow = "<?[-=]+>")

Arguments

reaction_table

A data frame describing the metabolic model.

regex_arrow

Regular expression for the arrow splitting sides of the reaction equation.

Value

A list suitable for input to Gurobi.

Details

Parses a reaction table to give a list in Gurobi's input format. This function is a shorthand for reactiontbl_to_expanded followed by expanded_to_gurobi.

The reaction_table must have columns:

  • abbreviation,

  • equation,

  • uppbnd,

  • lowbnd, and

  • obj_coef.

See also