Home > RAVEN > getTransportRxns.m

getTransportRxns

PURPOSE ^

getTransportRxns

SYNOPSIS ^

function transportRxns=getTransportRxns(model)

DESCRIPTION ^

 getTransportRxns
   Retrieves the transport reactions from a model

   model           a model structure

   transportRxns   logical array with true if the corresponding 
                   reaction is a transport reaction

   Transport reactions are defined as reactions involving (at least) one
   metabolite name in more than one compartment.

   Usage: transportRxns=getTransportRxns(model)

   Rasmus Agren, 2013-03-17

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function transportRxns=getTransportRxns(model)
0002 % getTransportRxns
0003 %   Retrieves the transport reactions from a model
0004 %
0005 %   model           a model structure
0006 %
0007 %   transportRxns   logical array with true if the corresponding
0008 %                   reaction is a transport reaction
0009 %
0010 %   Transport reactions are defined as reactions involving (at least) one
0011 %   metabolite name in more than one compartment.
0012 %
0013 %   Usage: transportRxns=getTransportRxns(model)
0014 %
0015 %   Rasmus Agren, 2013-03-17
0016 %
0017 
0018 transportRxns=false(numel(model.rxns),1);
0019 
0020 for i=1:numel(model.rxns)
0021    %Get the involved metabolites in each reaction
0022    mets=model.metNames(model.S(:,i)~=0);
0023    transportRxns(i)=numel(mets)~=numel(unique(mets));
0024 end
0025 end

Generated on Tue 16-Jul-2013 21:50:02 by m2html © 2005