Skip to content

[BUG] Adding unnecessary exchange reactions #1446

@Buiboni

Description

@Buiboni

Problem description

Hi,
I have an issue with the models built with CarveMe. When I load the model with cobra, it says:

Adding exchange reaction EX_12ppd__R_e with default bounds for boundary metabolite: 12ppd__R_e.
Adding exchange reaction EX_12ppd__S_e with default bounds for boundary metabolite: 12ppd__S_e.
[...]

for all the exchange reactions and then:

Ignoring reaction 'EX_12ppd__R_e' since it already exists.
Ignoring reaction 'EX_12ppd__S_e' since it already exists.
[...]

The exchange reactions are indeed in the file. When doing so cobra remove all the annotations and the bounds of the reactions. It was not the case with older version of Cobra (I could not tell which one exactly but probably 0.20 or 0.19).
I use CarveMe 1.6 (I think it does that with 1.5 too), and Cobrapy 0.29 and 0.29.1, on Linux.

Here is a model that will "do the trick". You just have to load it with the io.read_sbml_model().

Thank you for your help.
B.

Environment

Linux
CobraPy: 0.29,0.29.1
CarveMe: 1.6,1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions