Git Product home page Git Product logo

Comments (3)

CiaranWelsh avatar CiaranWelsh commented on June 24, 2024

Hi Brad, unfortunately pycotools3 doesn't support this. For rendering the equations for publication you might be interested in SBML2Latex but sounds like you want to pull out the equations programatically so you can store, manmanipulate etc... I wonder if your best bet is straight antimony?

i.e. download tellurium for sbml and import your sbml model. Then you can autogenerate the antimony model which has the equations in string format. After some string progressing (regexes or whatever) you could pull the equations out yourself.

Just an idea, good luck.

from pycotools3.

VitaminBrad avatar VitaminBrad commented on June 24, 2024

Hi Ciaran,

thanks so much for your response!

The antimony model I have generated from pycotools3 for my model has the following:

`function Henri_Michaelis_Menten__irreversible__6(TauN4R, k45, k46)
k45*TauN4R/(k46 + TauN4R);
end

// Reactions:
r77: TauH3RUb + Agg33 => $Ap; Braink90TauH3RUbAgg33;
r82: TauH4RUb + Agg43 => $Bp; Brain
k92TauH4RUbAgg43;
r1: => Tau03R; Brain*Constant_flux__irreversible(k1);
`
Are you saying that the antimony model generated from tellurium will have the differential equations for each species listed explicitly (in string format)? And if so, is there any chance you could show me an example where this is done. I am very unfamiliar with the world of antimony strings at the moment still. Thanks so much!!!!

Best,
Brad

from pycotools3.

CiaranWelsh avatar CiaranWelsh commented on June 24, 2024

Not exactly. The antimony model (as you see) is reaction oriented and each reaction is a term in the differential equations, right? So with a bit of string processing, you could have a string representation for each term of each differential equation. Then with the help if a stiociometry matrix (also available in tellurium) you should be able to put the equations together yourself.

However, I suspect this might be overkill. Tellurium is the python front end of another library called roadrunner. Roadrunner actually executes the model so there might be a way to get the equations directly from roadrunner. I don't know off the top of my head exactly how to do this, and don't have time to spend figureing it out. However, the tellurium/roadrunner guys are very helpful and quite responsive - I would suggest posting a similar question on their github page (either tellurium or roadrunner).

from pycotools3.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.