View printFuxVector_iJO1366.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initCobraToolbox | |
model = readCbModel('iJO1366.mat'); | |
changeCobraSolver('gurobi'); % this example uses Gurobi, but you may use any other solver | |
FBAsolution = optimizeCbModel(model,'max',0,0); | |
printFluxVector(model,FBAsolution.x, true, true); |
View exampleFVAR2017a.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initCobraToolbox | |
% Input the E.coli core model | |
model = readCbModel('ecoli_core_model.mat'); | |
model = changeRxnBounds(model,'EX_glc(e)',0,'l'); | |
model = changeRxnBounds(model,'EX_succ(e)',-20,'l'); | |
% Set objective function | |
model = changeObjective(model,'EX_etoh(e)'); | |
% model = changeObjective(model,'Biomass_Ecoli_core_N(w/GAM)_Nmet2'); |
View createCbModel.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using COBRA | |
# define the stoichiometric matrix | |
S = [ | |
1 0 0 0 0 0 0 | |
1 -1 0 0 0 0 0 | |
0 -1 0 -1 0 0 0 | |
0 1 0 1 0 0 0 | |
0 1 0 1 0 0 0 | |
0 1 -1 0 0 0 0 |
View gource.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/acaudwell/Gource | |
# 1.install gource using HomeBrew | |
$ brew install gource | |
# 2.install avconv | |
git clone git://git.libav.org/libav.git | |
cd libav | |
# it will take 3-5 minutes to complie, be patient. | |
./configure --disable-yasm | |
make && make install |