Skip to content

Question about sumBioMass #362

Answered by edkerk
JBiaggi asked this question in Q&A
Discussion options

You must be logged in to vote

Considering the excluding if-statements in line 85 and line 93, line 96 is applied for protein; carbohydrate; RNA and DNA. For all of these macromolecules, their polymerization releases a H2O molecule.

85    if strcmp(compType,'L')
86        F = -sum(model.S(isSub,rxnPos));   %g/gDW
87    else
88        F = 0;
89        %Add up all components:
90        for i = 1:length(model.mets)
91            pos = strcmp(data.mets,model.mets{i});
92            if isSub(i) && sum(pos) == 1
93                if strcmp(compType,'I') || strcmp(compType,'F')
94                    MW = data.MWs(pos);
95                else
96                    MW = data.MWs(pos)-18;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JBiaggi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants