network_construct.m
来自「%The Metabolic Networks Toolbox contains」· M 代码 · 共 42 行
M
42 行
%network = network_construct(N,reversible,external_ind,metabolites,actions)%%Construct network data structures from stoichiometric matrix% network structure has mandatory fields % 'metabolites','actions','N','reversible','external'% see 'network_structure'%%ARGUMENT% N stoichiometric matrix%%OPTIONAL ARGUMENTS% metabolites names of metabolites (column list of strings)% actions names of reactions (column list of strings)% reversible column vector (elements 0,1) indicating reversible actions. default: all reversible% external_ind indices (vector) of external (=fixed) metabolites. default: all internalfunction n = network_construct(N,reversible,external_ind,metabolites,actions)if ~exist('reversible','var'), reversible = ones(size(N,2),1); endif ~exist('external_ind'), external_ind = []; endif ~exist('metabolites'), metabolites = cellstr([repmat('S',size(N,1),1) num2str((1:size(N,1))')]); for i = 1:length(metabolites), metabolites{i}=metabolites{i}(find(metabolites{i}~=' ')); endendif ~exist('actions'), actions = cellstr([repmat('E',size(N,2),1) num2str((1:size(N,2))')]); for i = 1:length(actions), actions{i}=actions{i}(find(actions{i}~=' ')); endendif size(reversible,1)==1, reversible=reversible'; endn.metabolites = metabolites;n.actions = actions;n.N = N;n.reversible = reversible;n.external = bit_vector(external_ind,size(N,1));n.external = (n.external + bit_vector(network_find_ext_metabolites(n),length(n.metabolites)) ) >0;n.kinetics = set_kinetics(n);n = netgraph_make_graph(n);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?