Error while using FastGapFill

225 views
Skip to first unread message

Karan Kumar

unread,
Aug 26, 2021, 10:00:55 AM8/26/21
to COBRA Toolbox
Dear all:

I am trying to run the FastgapFill command on my model and getting following error which is attached below:

tic; [consistModel,consistMatricesSUX,BlockedRxns] = prepareFastGapFill(model);
tpre=toc;
   651 Total reactions
   254 Reversible reactions.
   397 Irreversible reactions.
Error using load
Unable to read file 'KEGGMatrix'. No such file or directory.

Error in generateSUXComp (line 49)
    load KEGGMatrix

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

Please suggest, where am I wrong. And also how to resolve this issue.

Thanks and awaiting reply,
Karan.

Ronan M.T. Fleming

unread,
Aug 31, 2021, 10:25:47 AM8/31/21
to COBRA Toolbox, Thiele, Ines
Hi Karan,
I confirm there is an issue with the code as testFastGapFill does not
complete correctly. Perhaps you can help to debug the problem?
Regards,
Ronan
> --
>
> ---
> 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-toolbo...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/cobra-toolbox/62a2e732-98a3-43bc-91d9-3491221a59ccn%40googlegroups.com.



--
--
Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.
----------------------------------------------------------------------------
Associate Professor,
School of Medicine,
National University of Ireland, Galway.
&
Assistant Professor,
Division of Systems Biomedicine and Pharmacology,
Leiden Academic Centre for Drug Research,
Faculty of Science,
Leiden University.
https://www.universiteitleiden.nl/en/staffmembers/ronan-fleming
&
H2020 Project Coordinator,
Systems Medicine of Mitochondrial Parkinson’s Disease,
http://sysmedpd.eu
----------------------------------------------------------------------------
Peer-reviewed publications: https://goo.gl/FZPG23
Mobile: +353 852 109 806
Skype: ronan.fleming
----------------------------------------------------------------------------
(This message is confidential and may contain privileged information.
It is intended for the named recipient only. If you receive it in
error please notify me and permanently delete the original message and
any copies.)

Pritam Kundu

unread,
Sep 1, 2021, 7:59:35 AM9/1/21
to COBRA Toolbox
Hi!
I have also encountered the same problem.

please suggest some way out.error.JPG

Thank You.
Pritam

Kristy Chang

unread,
Aug 4, 2022, 1:52:43 PM8/4/22
to COBRA Toolbox
Dear All,

Was a solution ever found for this issue? I am still experiencing this issue. Thank you!

Best regards,
Kristy

Kristy Chang

unread,
Aug 4, 2022, 2:00:10 PM8/4/22
to COBRA Toolbox
The issue stems from the function 'prepareFastGapFill', but I cannot figure out what is missing from it. I would guess the function calls a Matrix ''KEGGMatrix' in a file that should be embedded into the function but is not being called. Was it accidentally deleted?

Kristy Chang

unread,
Aug 4, 2022, 2:25:19 PM8/4/22
to COBRA Toolbox
Tested the following to no avail:

dictionary_file= readtable('KEGG_dictionary.xls');
KEGGMatrix=table2array(dictionary_file)
[consistModel,consistMatricesSUX,BlockedRxns] = prepareFastGapFill(model)

I also tried manually substituting the dictionary as in:
[consistModel,consistMatricesSUX,BlockedRxns] = prepareFastGapFill(model,KEGGMatrix)

But it throws up the same error:
Error using load
Unable to read file 'KEGGMatrix'. No such file or directory.

Error in generateSUXComp (line 49)
    load KEGGMatrix

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

RYTH DASGUPTA

unread,
Sep 12, 2022, 9:45:26 AM9/12/22
to COBRA Toolbox
Hi all,
Was this issue resolved?
If not, is there another tool that can perform gap-filling for a metabolic model, or will the analogous function for prepareFastGapFill on CobraPy work?

Warm regards,
Ryth

Thomas Pfau

unread,
Sep 13, 2022, 10:25:43 PM9/13/22
to cobra-...@googlegroups.com

Hi,

I have put in a pull request too update fastGapFill. There were some changes that lead to it not creating relevant files if they were not existent but the flags were set.
Once that PR is in, I hope this should work again. At least the test runs again for me.

Best

Thomas

RYTH DASGUPTA

unread,
Sep 14, 2022, 1:14:30 AM9/14/22
to cobra-...@googlegroups.com
Hi Thomas,

That is great news! Thank you very much.

Warm regards,
Ryth Dasgupta

Nandini Kannoju

unread,
Jun 29, 2023, 1:30:35 AM6/29/23
to COBRA Toolbox
Hello Prof. Fleming 

I'm working on flux balance analysis using a cobra tool box on the corynebacterium glutamicum ATCC 13032 model which has a lot of gaps in the metabolic pathway and trying to use the fastgapfill method. I'm taking the reference in this paper( 2014-Thiele-fastGapFill.pdf (googlegroups.com))  and example problem COBRA.tutorials/reconstruction/fastGapFill at master · opencobra/COBRA.tutorials · GitHub. I was having trouble while running the code and had few errors.  I have attached the screenshot of the error which i'm getting. Please help me in this regard to resolve this issue. 

And also the paper which I'm referring to was published in 2014. Do you have any papers published later where it will be useful for me to go through. 
Screenshot 2023-06-28 154134.jpg

Nandini Kannoju

unread,
Jun 29, 2023, 1:32:49 AM6/29/23
to COBRA Toolbox
Hello Prof. Ronan, 

Do you have any suggestions for alternative toolbox for fastgapfill ?

Thank you 

Reply all
Reply to author
Forward
0 new messages