Description Usage Arguments Details See Also Examples
The generic function changeFobj
changes the objective function, which is used for the linear programming in optimizeLP
.
1 2 3 4 | changeFobj(object, new_fobj, model, alg = "fba")
## S4 method for signature 'Human'
changeFobj(object, new_fobj, model, alg = "fba")
|
object |
An object of class Human. |
new_fobj |
A character vector giving the reaction name of the new objective function. |
model |
The original model structure which is converted into a problem object used for the next optimization. |
alg |
A character vector giving the algorithm which should be used for the optimization (default is flux balance analysis). |
To avoid the bias to just one particular objective function, the objective can be changed dynamically in this function.
1 2 3 4 | data(Ec_core, envir = environment()) #get Escherichia coli core metabolic model
human <- Human(Ec_core,deathrate=0.05,
minweight=0.05,growtype="exponential") #initialize a bacterium
changeFobj(human,'EX_glc(e)',Ec_core)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.