Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting the non-CarveMe GEMs to SMETANA #36

Open
mohammadmirhakkak opened this issue Dec 6, 2022 · 2 comments
Open

Adjusting the non-CarveMe GEMs to SMETANA #36

mohammadmirhakkak opened this issue Dec 6, 2022 · 2 comments

Comments

@mohammadmirhakkak
Copy link

Hi Daniel,

I am trying to use SMETANA with GEMs from different repositories. When I use it with CarveMe-generated GEMs, it works pretty fine.

$ smetana carveme1.xml carveme2.xml carveme3.xml --flavor cobra

However. I encounter an error regarding biomass (objective) recognition when I use smetana with GEMs from different repositories. For instance:

$ smetana agora1.xml agora2.xml yeast.xml --flavor cobra
Of note, exchange metabolite and reaction IDs are unified. Also, biomass reaction IDs contain 'biomass' or 'growth.'

Error: "No biomass reaction identified from model objective."

Of note, the code is executed well if I don't use "--flavor cobra" in the command line. But it does not calculate MIP value, which I think should have sth to do with the biomass reaction recognition problem.

I wonder how to adjust the GEMs to become usable for smetana.

Thank you in advance!
Mohammad

@mohammadmirhakkak
Copy link
Author

mohammadmirhakkak commented Dec 8, 2022

Hello,

The problem got resolved.

The model used in smetana should have an attribute called "kineticLaw" for each reaction in the sbml file. It is sufficient if this property is added only to the biomass reaction. So smetana reads the OBJECTIVE_COEFFICIENT from the "kineticLaw" for recognizing the biomass reaction. For instance, it should look like this:

    <kineticLaw>
      <math xmlns="http://www.w3.org/1998/Math/MathML">
        <cn type="integer"> 0 </cn>
      </math>
      <listOfLocalParameters>
        <localParameter id="LOWER_BOUND" value="0"/>
        <localParameter id="UPPER_BOUND" value="1000"/>
        <localParameter id="OBJECTIVE_COEFFICIENT" value="1"/>
      </listOfLocalParameters>
    </kineticLaw>
  </reaction>

Best
Mohammad

@wupeng1998
Copy link

Hello,

The problem got resolved.

The model used in smetana should have an attribute called "kineticLaw" for each reaction in the sbml file. It is sufficient if this property is added only to the biomass reaction. So smetana reads the OBJECTIVE_COEFFICIENT from the "kineticLaw" for recognizing the biomass reaction. For instance, it should look like this:

    <kineticLaw>
      <math xmlns="http://www.w3.org/1998/Math/MathML">
        <cn type="integer"> 0 </cn>
      </math>
      <listOfLocalParameters>
        <localParameter id="LOWER_BOUND" value="0"/>
        <localParameter id="UPPER_BOUND" value="1000"/>
        <localParameter id="OBJECTIVE_COEFFICIENT" value="1"/>
      </listOfLocalParameters>
    </kineticLaw>
  </reaction>

Best Mohammad

Hello, have you ever used model seed model to run smetana? When I used two models in model seed format to simulate smetana, the program stayed in "Loading community: all" for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants