亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dynamicfba.m

?? 基于約束的化學計量模型
?? M
字號:
function [concentrationMatrix,excRxnNames,timeVec,biomassVec] = ...
    dynamicFBA(model,substrateRxns,initConcentrations,initBiomass,timeStep,nSteps,plotRxns,exclUptakeRxns)
%dynamicFBA Perform dynamic FBA simulation using the static optimization
%approach
%
% [concentrationMatrix,excRxnNames,timeVec,biomassVec]
% dynamicFBA(model,substrateRxns,initConcentrations,initBiomass,timeStep,nSteps,plotRxns,exclUptakeRxns)
%
% model                 CB model
% substrateRxns         List of exchange reaction names for substrates
%                       initially in the media that may change (e.g. not
%                       h2o or co2)
% initConcentrations    Initial concentrations of substrates (in the same
%                       structure as substrateRxns)
% initBiomass           Initial biomass
% timeStep              Time step size
% nSteps                Maximum number of time steps
% plotRxns              Reactions to be plotted
% exclUptakeRxns        List of uptake reactions whose substrate
%                       concentrations do not change (opt, default
%                       {'EX_co2(e)','EX_o2(e)','EX_h2o(e)','EX_h(e)'})
% maxFluxChange
% 
% concentrationMatrix   Matrix of extracellular metabolite concentrations
% excRxnNames           Names of exchange reactions for the EC metabolites
% timeVec               Vector of time points
% biomassVec            Vector of biomass values
%
% If no initial concentration is given for a substrate that has an open
% uptake in the model (i.e. model.lb < 0) the concentration is assumed to
% be high enough to not be limiting. If the uptake rate for a nutrient is
% calculated to exceed the maximum uptake rate for that nutrient specified
% in the model and the max uptake rate specified is > 0, the maximum uptake 
% rate specified in the model is used instead of the calculated uptake rate.
%
% NOTE: The dynamic FBA method implemented in this function is essentially 
% the same as the method described in
% [Varma, A., and B. O. Palsson. Appl. Environ. Microbiol. 60:3724 (1994)].
% This function does not implement the dynamic FBA using dynamic optimization approach
% described in [Mahadevan, R. et al. Biophys J, 83:1331-1340 (2003)].
%
% Markus Herrgard 8/22/06

if (nargin < 7)
    plotRxns = {'EX_glc(e)','EX_ac(e)','EX_for(e)'};
end

% Uptake reactions whose substrate concentrations do not change
if (nargin < 8)
    exclUptakeRxns = {'EX_co2(e)','EX_o2(e)','EX_h2o(e)','EX_h(e)'};
end

% Find exchange rxns
excInd = findExcRxns(model,false);
excInd = excInd & ~ismember(model.rxns,exclUptakeRxns);
excRxnNames = model.rxns(excInd);

% Figure out if substrate reactions are correct
missingInd = find(~ismember(substrateRxns,excRxnNames));
if (~isempty(missingInd))
    for i = 1:length(missingInd)
        fprintf('%s\n',substrateRxns{missingInd(i)});
    end
    error('Invalid substrate uptake reaction!');
end

% Initialize concentrations
substrateMatchInd = ismember(excRxnNames,substrateRxns);
concentrations = zeros(length(excRxnNames),1);
concentrations(substrateMatchInd) = initConcentrations;

% Deal with reactions for which there are no initial concentrations
originalBound = -model.lb(excInd);
noInitConcentration = (concentrations == 0 & originalBound > 0);
concentrations(noInitConcentration) = 1000;

biomass = initBiomass;

% Initialize bounds
uptakeBound =  concentrations/(biomass*timeStep);

% Make sure bounds are not higher than what are specified in the model
aboveOriginal = (uptakeBound > originalBound) & (originalBound > 0);
uptakeBound(aboveOriginal) = originalBound(aboveOriginal);
model.lb(excInd) = -uptakeBound;

concentrationMatrix = sparse(concentrations);
biomassVec = biomass;
timeVec(1) = 0;

fprintf('Step number\tBiomass\n');
h = waitbar(0,'Dynamic FBA analysis in progress ...');
for stepNo = 1:nSteps
    % Run FBA
    sol = optimizeCbModel(model,'max',true,true);
    mu = sol.f;
    if (sol.stat ~= 1 | mu == 0)
        fprintf('No feasible solution - nutrients exhausted\n');
        break;
    end
    uptakeFlux = sol.x(excInd);
    biomass = biomass*exp(mu*timeStep);
    %biomass = biomass*(1+mu*timeStep);
    biomassVec(end+1) = biomass;
    
    % Update concentrations
    concentrations = concentrations - uptakeFlux/mu*biomass*(1-exp(mu*timeStep));
    %concentrations = concentrations + uptakeFlux*biomass*timeStep;
    concentrations(concentrations <= 0) = 0;
    concentrationMatrix(:,end+1) = sparse(concentrations);
    
    % Update bounds for uptake reactions
    uptakeBound =  concentrations/(biomass*timeStep);
    % This is to avoid any numerical issues
    uptakeBound(uptakeBound > 1000) = 1000;
    % Figure out if the computed bounds were above the original bounds
    aboveOriginal = (uptakeBound > originalBound) & (originalBound > 0);
    % Revert to original bounds if the rate was too high
    uptakeBound(aboveOriginal) = originalBound(aboveOriginal);
    uptakeBound(abs(uptakeBound) < 1e-9) = 0;

    model.lb(excInd) = -uptakeBound;  
    
    fprintf('%d\t%f\n',stepNo,biomass);
    waitbar(stepNo/nSteps,h);
    timeVec(stepNo+1) = stepNo*timeStep;
end
close(h);

selNonZero = any(concentrationMatrix>0,2);
concentrationMatrix = concentrationMatrix(selNonZero,:);
excRxnNames = excRxnNames(selNonZero);
selPlot = ismember(excRxnNames,plotRxns);

% Plot concentrations as a function of time
clf
subplot(1,2,1);
plot(timeVec,biomassVec);
axis tight
title('Biomass');
subplot(1,2,2);
plot(timeVec,concentrationMatrix(selPlot,:));
axis tight
legend(strrep(excRxnNames(selPlot),'EX_',''));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影在线看| 色呦呦国产精品| 色综合咪咪久久| 日韩欧美精品在线| 亚洲图片欧美色图| 成人永久aaa| 精品国产精品一区二区夜夜嗨| 亚洲日本电影在线| 国产一区二区三区精品欧美日韩一区二区三区 | 久久国产精品无码网站| 777a∨成人精品桃花网| 国产网红主播福利一区二区| 五月激情综合网| 在线视频一区二区三| 久久久久国产精品人| 蜜臀久久久久久久| 欧美日韩亚洲国产综合| 亚洲码国产岛国毛片在线| 国产黄色91视频| www国产亚洲精品久久麻豆| 丝袜诱惑亚洲看片 | 国产福利一区二区| 欧美日韩精品一区二区三区四区 | 盗摄精品av一区二区三区| 欧美一级爆毛片| 日韩精品电影一区亚洲| 欧美精品亚洲一区二区在线播放| 亚洲色图色小说| 97精品电影院| 精品在线你懂的| 日韩一区二区影院| 麻豆国产精品官网| 日韩欧美国产系列| 精品一区二区三区视频| 91精品国产黑色紧身裤美女| 日韩高清在线电影| 日韩一本二本av| 美女在线观看视频一区二区| 日韩一区二区三区在线视频| 免费欧美在线视频| 精品国产第一区二区三区观看体验| 日本不卡不码高清免费观看| 日韩无一区二区| 国产在线播放一区二区三区| 精品国精品国产| 91精品国产综合久久精品性色| 天天影视涩香欲综合网| 日韩亚洲欧美在线观看| 久久成人18免费观看| 亚洲精品一区二区三区蜜桃下载| 亚洲成av人片在线| 91女人视频在线观看| 一区二区三区四区不卡在线| 欧美日韩激情在线| 蜜乳av一区二区三区| 国产日韩欧美精品综合| 99视频热这里只有精品免费| 亚洲一卡二卡三卡四卡 | 日韩一区二区三区视频在线| 久久成人麻豆午夜电影| 国产精品美女久久久久aⅴ国产馆| 制服.丝袜.亚洲.中文.综合| 青青草成人在线观看| 337p日本欧洲亚洲大胆精品| 成人爱爱电影网址| 性欧美大战久久久久久久久| 精品99一区二区三区| 不卡一二三区首页| 日日夜夜精品视频免费| 中文字幕欧美日韩一区| 欧美中文一区二区三区| 国产一区二区精品在线观看| 亚洲最大的成人av| 久久众筹精品私拍模特| 欧美性大战久久| 国产毛片一区二区| 午夜私人影院久久久久| 久久久久一区二区三区四区| 91成人在线观看喷潮| 国产一区二区三区在线看麻豆| 一区二区三区**美女毛片| 久久色在线观看| 欧美午夜影院一区| 成人小视频免费观看| 免费高清在线一区| 性久久久久久久久| 亚洲情趣在线观看| 国产亚洲短视频| 日韩欧美国产三级| 欧美体内she精视频| 从欧美一区二区三区| 91婷婷韩国欧美一区二区| 精品亚洲国产成人av制服丝袜| 亚洲高清中文字幕| 亚洲精品欧美二区三区中文字幕| 久久婷婷久久一区二区三区| 69堂精品视频| 91福利精品第一导航| 成av人片一区二区| 福利一区二区在线| 国产精品综合在线视频| 免费高清成人在线| 丝袜美腿一区二区三区| 亚洲一区影音先锋| 亚洲欧美一区二区久久| 中文字幕日韩一区| 国产精品欧美久久久久无广告 | 韩日av一区二区| 免费看欧美女人艹b| 香蕉加勒比综合久久| 亚洲欧洲成人自拍| 国产精品三级av在线播放| 国产人妖乱国产精品人妖| 精品福利在线导航| 久久综合精品国产一区二区三区| 日韩色视频在线观看| 欧美成人在线直播| 欧美成人性福生活免费看| 欧美成人三级电影在线| 欧美α欧美αv大片| 日韩精品一区二区三区视频 | 三级精品在线观看| 日韩精品一区第一页| 91首页免费视频| 99在线视频精品| 97精品超碰一区二区三区| 色综合视频在线观看| 欧洲av在线精品| 欧美人妇做爰xxxⅹ性高电影| 欧美精品久久久久久久久老牛影院| 欧美图片一区二区三区| 日韩免费成人网| 国产日韩欧美一区二区三区乱码| 国产精品国产精品国产专区不蜜| 亚洲欧美日韩一区二区| 亚洲一区免费在线观看| 日本成人中文字幕| 国产毛片精品国产一区二区三区| 高清不卡一二三区| 欧美在线色视频| 精品国内二区三区| 国产精品国模大尺度视频| 亚洲成人免费电影| 狠狠色狠狠色综合日日91app| 成人av在线一区二区| 欧美羞羞免费网站| 久久日一线二线三线suv| 国产日韩在线不卡| 亚洲va国产天堂va久久en| 久久99国产精品免费| 99re成人在线| 欧美一区二区精品在线| 国产精品免费视频观看| 亚洲sss视频在线视频| 激情亚洲综合在线| 91玉足脚交白嫩脚丫在线播放| 欧美精品在线观看一区二区| 国产色产综合产在线视频| 亚洲一区在线观看网站| 国产精品一二一区| 欧美日韩成人在线| 国产精品伦一区| 亚洲主播在线观看| 国产精品99久| 欧美一区二区三区思思人| 日韩和的一区二区| 99re亚洲国产精品| 久久久久久久久久久久久夜| 亚洲国产精品自拍| 成人av免费在线观看| 精品久久国产字幕高潮| 亚洲一区二区五区| 99re这里只有精品首页| 久久久影院官网| 美女免费视频一区| 精品视频999| 亚洲精品伦理在线| 成人亚洲一区二区一| 日韩一区二区电影在线| 亚洲一区二区欧美日韩| 成人免费黄色在线| 久久久久9999亚洲精品| 亚洲国产一区二区三区青草影视| 国产成人av电影在线播放| 欧美tickling网站挠脚心| 亚洲国产精品一区二区久久 | 国产精品免费丝袜| 国产一区二区三区不卡在线观看| 7777精品伊人久久久大香线蕉 | 91黄色免费版| 中文字幕在线观看一区二区| 欧美日韩精品欧美日韩精品| 中文字幕一区在线观看视频| 国产**成人网毛片九色| 久久综合久久鬼色中文字| 日本不卡在线视频| 欧美一区二区不卡视频| 视频在线观看一区| 欧美一级二级三级乱码| 美女一区二区久久|