fastgapfill errors

111 views
Skip to first unread message

Nimble

unread,
Dec 5, 2016, 8:03:35 AM12/5/16
to COBRA Toolbox
Hi,

I tried running fastgapfill and got errors.


cmd: [consistModel,
consistMatricesSUX,BlockedRxns]=prepareFastGapFill(model,{'e0','c0'},1e-4,'reaction.lst','KEGG_dictionary.xls')

Errors:

Cell contents indices must be greater than 0

Error in addReactionGEM (line 179)
            rxnCoeff = str2double(parsing{j-1});


Error in createUniversalReactionModel2 (line 144)
[KEGG] = addReactionGEM(KEGG,KEGG.rxns,KEGG.rxns,KEGG.rxnFormulas,KEGG.rev,-10000*ones(length(KEGG.rxns),1),10000*ones(length(KEGG.rxns),1),1);


Error in generateSUXComp (line 48)
KEGG = createUniversalReactionModel2(KEGGFilename, KEGGBlackList);

Error in prepareFastGapFill (line 92)
MatricesSUX = generateSUXComp(consistModel,dictionary, filename,blackList,listCompartments);

I attach my KEGG_dictionary.xls and reacion .lst

Can someone help pls? Thanks
reaction.lst
KEGG_dictionary.xls

Will

unread,
Dec 7, 2016, 5:41:09 AM12/7/16
to COBRA Toolbox
Hi Nimble,

I have done some work on the FastGapFill code so am reasonably familiar with it.  Which version of the COBRA Toolbox are you using?  This would help in diagnosing the problem.

Cheers,

Will Bryant.

Nimble

unread,
Dec 7, 2016, 7:51:32 AM12/7/16
to COBRA Toolbox
Hi Will,

Thanks for your reply.

I have cobratoolbox_2.0.6 installed.

Nimble

unread,
Dec 7, 2016, 7:55:20 AM12/7/16
to COBRA Toolbox
Hi Will,

I now have my model attached in case this will also be helpful.

Thanks


On Wednesday, 7 December 2016 10:41:09 UTC, Will wrote:
K12_GapFilled.xml

Nimble

unread,
Dec 7, 2016, 8:02:01 AM12/7/16
to COBRA Toolbox
Apologies!

The latest reaction.lst and KEGG_dictionary.xls also attached now.


On Wednesday, 7 December 2016 10:41:09 UTC, Will wrote:
reaction.lst
KEGG_dictionary.xls

Almut Heinken

unread,
Dec 8, 2016, 2:47:31 AM12/8/16
to cobra-...@googlegroups.com
Hi Nimble,
maybe it would help to use breakpoints (stop if error) to find out which reaction exactly the program crashes at. You could then inspect if there is a problem with the formulation of this reaction.
Best regards
Almut

--

---
You received this message because you are subscribed to the Google Groups "COBRA Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbox+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nimble

unread,
Dec 8, 2016, 8:10:16 AM12/8/16
to COBRA Toolbox
Hi Almut,

Thanks for your suggestion.

My first error stop is:

addReactionGEM.m
line 179 :             rxnCoeff = str2double(parsing{j-1});


In additon, I have these errors generated while prepareGapFill.m was running:

Flux inconsistent reversible reaction detected:rxn08805_c0
|A|=1407
Flipped 1 reaction.
|A|=1407
Flux inconsistent reversible reaction detected:rxn02391_c0
|A|=1407
Flipped 1 reaction.


So, I went to check my model reactions and found -> and <=> used as ireversibility and reversibility respectively. So, I went to change the addReactionGem.m code accordingly. Changed -->'  to -> and  '<==>'  to '<=>'  to match the format in my model.

Here's is the

addReactionGem.m

line 119:        %if its '-->' or '<==>' then switches IO to 1 which indicates the
line 120:        %next compounds are part of the product
line 121:        elseif strcmp(parsing{j},'<=>') == 1
line 122:            IO = 1;
line 123:            j = j+1;
line 124:        elseif strcmp(parsing{j},'->') == 1

Despite my changes, I still get the same errors. Any ideas what is going on?

Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.

Almut Heinken

unread,
Dec 8, 2016, 11:57:56 AM12/8/16
to cobra-...@googlegroups.com
Hi Nimble,
it seems to me there is a problem with the metabolites. Check what this step

rxnCoeff = str2double(parsing{j-1});
was trying to do at the error stop. What variable (it should show up in your workspace if you use break points) was it trying to access?
Best
Almut

To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbox+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages