Shadow Price and New Cobra Version

513 views
Skip to first unread message

Bushra Saeed Dohai

unread,
Mar 29, 2016, 3:55:13 AM3/29/16
to cobra-...@googlegroups.com
Dear all,
I am using two models for same organism but one is wild type and other one is mutant, so I am doing analysis using flux balance analysis by getting the fluxes of the reactions and shadow prices of metabolites which is in COBRA Toolbox is the FBASolution.x and FBASolution.y, respectively. I have the following problems:

1. When using the old COBRA Version 2.0.5 I got different shadow prices than that when I am using the New COBRA version !! and the differences are only in signs (negative to positive). Is the new version has that much effect and what is the interpretation of that?.

2. As far as I know is that shadow price is representative of exchange reaction, however reduced cost (FBASolution.w) is a representative for internal reaction. Am I correct?. 
I highly appreciate if someone could answer the above questions. Thanks
 
Sincerely,
NYUAD Logo
Bushra Dohai
Modelling Engineer and Research Technologist  
Laboratory of Algal, Systems, and Synthetic Biology
Centre for Science and Engineering
Saadiyat Island Campus Center 
C1 Building, ERB, Office No. RL5 D2
NYU Abu Dhabi, United Arab Emirates
Office Tel: +971 2 628 5144, P.O. Box 129188

Andres Mauricio Pinzon Velasco

unread,
Mar 29, 2016, 9:13:13 AM3/29/16
to cobra-toolbox
Dear Bushra,
Some solvers report positive shadow prices (gplk), perhaps this is your situation?

Now, regarding your second question remember that:
Shadow prices refer to metabolite flux, and reduced costs refer to reactions. So RC are the derivatives of the objective function with respect to a reaction
 and SP re the derivatives of the objective function with respect to flux of a metabolite. At the end these values tell you, for instances, how much the change of a given metabolite (SP) / reaction (RC) will affect the objective.

Regards,

--

---
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.



--
Andrés M. Pinzón Ph.D.
Assistant Professor
Group Leader - Bioinformatics and Systems Biology
Instituto de Genética, Off. 218
Universidad Nacional de Colombia
+57 (1) 3165000 Ext. 11618

Bushra Saeed Dohai

unread,
Mar 29, 2016, 3:08:55 PM3/29/16
to cobra-...@googlegroups.com
Thanks Dr. Pinzon, yes i am using the glpk solver but in both Cobra versions old and new, so i didn't change the solver. New COBRA version gave me positive values but old version gave me negative values? So i think something related to the updates.
Now regarding second question negative shadow price indicates a limiting metabolite, positive SP indicates excess metabolite, and zero SP is for secreted metabolite , that is my understanding, is it the same indications for reduced cost? . Also if I have two SPs and both e.g were negative but had different values say one is -10 and other is -20 , how to interpretate  that? . Thanks

Ronan M.T. Fleming

unread,
Mar 29, 2016, 6:34:43 PM3/29/16
to COBRA Toolbox

Dear All
Some time ago I  checked to make sure that the solver signs were consistent.
Regards
Ronan

Git clone

Bushra Saeed Dohai

unread,
Mar 30, 2016, 2:40:37 AM3/30/16
to cobra-...@googlegroups.com
Dear Dr.Ronan,
Thanks for your reply. It is not about inconsistent solver, i am using the same solver in both versions but I am getting different sign? . 

 Sincerely,
NYUAD Logo
Bushra Dohai
Modelling Engineer and Research Technologist  
Laboratory of Algal, Systems, and Synthetic Biology
Centre for Science and Engineering
Saadiyat Island Campus Center 
C1 Building, ERB, Office No. RL5 D2
NYU Abu Dhabi, United Arab Emirates
Office Tel: +971 2 628 5144, P.O. Box 129188


Andres Mauricio Pinzon Velasco

unread,
Mar 30, 2016, 9:47:03 AM3/30/16
to cobra-toolbox
Dear Bushra,

The interpretation could be the following: the metabolites with a zero shadow price do not have an effect over the objective function and are thus secreted. On the other hand, metabolites showing  a negative shadow price have an effect (increase) the objective function and are thus not secreted. 

Hope it helps.

Regards,

Bushra Saeed Dohai

unread,
Apr 27, 2016, 4:43:24 AM4/27/16
to cobra-...@googlegroups.com
Thanks Dr.Andres,
I understood your interpretation, but what would be with the reduced cost?, from my reading I got confused between shadow price and reduced cost, I think they are so closed, any clarification? . thanks

 Sincerely,
NYUAD Logo
Bushra Dohai
Modelling Engineer and Research Technologist  
Laboratory of Algal, Systems, and Synthetic Biology
Centre for Science and Engineering
Saadiyat Island Campus Center 
C1 Building, ERB, Office No. RL5 D2
NYU Abu Dhabi, United Arab Emirates
Office Tel: +971 2 628 5144, P.O. Box 129188


Andres Mauricio Pinzon Velasco

unread,
Apr 27, 2016, 4:52:33 PM4/27/16
to cobra-toolbox
Hi,
RC s associated to the reaction, SP to metabolites.

Best,

Ronan M.T. Fleming

unread,
Apr 27, 2016, 5:32:36 PM4/27/16
to COBRA Toolbox
Hi Bushra,

the sign of a dual variable is firstly a convention and secondly to be biologically interpreted. Different mathematical textbooks/solvers/cobra papers/cobra books use different signs. Some time ago, I checked and made sure that solveCobraLP was always returning dual variables with the same convention in sign independent of the solver being used. If you want to check what sign is being used, I suggest that you take your FBA problem

min c'v
st. Sv=0 : y
l <= v <= u : w

Where
y = solution.dual = dual vector corresponding to steady state (equality) constraints
w = solution.rcost = dual vector corresponding to lower and upper bound (inequality) constraints
then slightly relax either one of the steady state or one of the upper/lower bounds (corresponding to a nonzero y_i or w_j) then see how the resulting value of c'v changes compared to when you don't do any relaxation. This should tell you the meaning of the signs.

Regards,

Ronan
--
Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.
----------------------------------------------------------------------------
Senior research associate (EN) == Chercheur (FR),
Principal investigator,
Systems Biochemistry Group,
wwwen.uni.lu/lcsb/research/systems_biochemistry
Luxembourg Centre for Systems Biomedicine,
University of Luxembourg,
Campus Belval,
6, avenue du Swing,
L-4367 Belvaux.
&
National Centre of Excellence in Research on Parkinson’s disease
www.parkinson.lu
&
Adjunct Assistant Professor,
Division of Analytical Biosciences,
Leiden Academic Centre for Drug Research,
Faculty of Science,
University of Leiden.
http://analyticalbiosciences.leidenuniv.nl
----------------------------------------------------------------------------
Mobile:  +352 621 175 112
Office: +352 466 644 5528
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.)

Ashlin James Poruthoor

unread,
May 16, 2017, 8:17:02 AM5/16/17
to COBRA Toolbox
Dear Teachers,

I'm a student who have recently  started using COBRA for FBA calculations. I would like to know more about the interpretations of x,y,w and f. Could you suggest and articles or research papers that I can look forward to.

Thank you all.

Ashlin James P


Ronan M.T. Fleming

unread,
May 16, 2017, 8:18:28 AM5/16/17
to COBRA Toolbox

--

---
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.

Ashlin James Poruthoor

unread,
May 16, 2017, 9:24:59 AM5/16/17
to COBRA Toolbox, ronan.mt...@uni.lu


Dear Dir,

Thank you for the article but I'm afraid I have read this article before and I got a good idea about the FBA but can you suggest more specific articles or others on reduced costs and shadow price and their interpretations based on their signs. I apologize for any inconvenience.

Thank you

Ronan M.T. Fleming

unread,
May 16, 2017, 9:40:28 AM5/16/17
to COBRA Toolbox
Hi Ashlin,
see Chapter 18: Optimisation, a lecture on this is here:
Regards,
Ronan

--
Reply all
Reply to author
Forward
0 new messages