Error in drawFluxVariability

31 views
Skip to first unread message

Bhushan Dhamale

unread,
Nov 10, 2017, 5:51:59 AM11/10/17
to COBRA Toolbox
I am testing a few of the functions of the COBRA toolbox from the Schellenberger et al, 2011, Nature Protocol paper examples.
When I run the drawFluxVariability function, I get the following error message:

Reference to non-existent field 'rev'.
Error in drawFluxVariability (line 70)
        if model.rev(i)

On checking the model, there is indeed lack of model.rev.
How do I fix this?

P.S. I am attaching the live script and HTML files for reference.
E_coli_core_demo.mlx
E_coli_core_demo.html

Thomas Pfau

unread,
Nov 10, 2017, 6:50:21 AM11/10/17
to cobra-...@googlegroups.com

drawFluxVariability is deprecated and no longer maintained.

Since model.rev was also deprecated and removed from the code this field no longer exists in the model structure.

The simplest fix is to replace the line with if model.lb(i) < 0

Thomas

--

---
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.
For more options, visit https://groups.google.com/d/optout.

-- 
Université du Luxembourg
Faculté des Sciences, de la Technologie et de la Communication
Campus Belval, Biotech II 115
6 avenue du Swing
L-4367 Belvaux
Tel: (+352) 46 66 44 5309
Email: thoma...@uni.lu
Reply all
Reply to author
Forward
0 new messages