GithubHelp home page GithubHelp logo

opencobra / mass-toolbox Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 8.0 86.52 MB

Mass Action Stoichiometric Simulation (MASS) Toolbox

Home Page: http://opencobra.github.io/MASS-Toolbox/

License: Other

Mathematica 99.99% Objective-C 0.01%

mass-toolbox's People

Contributors

avsastry avatar phantomas1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mass-toolbox's Issues

adjustUnits issue colliding with Ignore option in Model

model = ExampleData[{"Toolbox", "Glycolysis"}];
adjustUnits[{k["vh"] -> 1}, model] (*-> Millimole Hour^-1 Liter^-1*)

vs.

adjustUnits[{k["vh"] -> 1}, {r["vh", {m["h", "c"]}, {}, {1}, True]}] (*-> Hour^-1*)

the Ignore option allows on to exclude certain species from the generated mass-action rate-laws. They're not excluded though if they are the only species in a reaction. adjustUnits is not aware of that.

calcDeltaG crashes due to units on equilibrator data

In the toolbox versions after 1.0.6, importing this file with equilibrator data takes longer than with v 1.0.6, and then when using it to calculate deltaG, e.g.:

rxn = str2mass["ENO: 2pg_c <=> h2o_c + pep_c"]
calcDeltaG[{rxn}, bigg2equilibrator, is -> 0.25 Mole Liter^-1, pH -> 7]

there are a number of errors related to unknown units.

Lost initial condtions after reaction deletion

In[48]:= model=Import["/Users/niko/Arbejder/Models/MASS-Models/models/Yeast_Glycolysis_Smallbone_2013/Yeast_Glycolysis_Smallbone_2013.m.gz"];
modelKOtdh2=deleteReaction[model,"TDH_TDH2"];
simulate[modelKOtdh2,{t,0,1*^5}]

results in

During evaluation of In[48]:= simulate::missingIC: Missing initial conditions encountered for {Underscript[energy_charge, Global],Underscript[fit_conc, Global],Underscript[sum_PXG, Global]}. >>
Out[50]= $Aborted

apparent error on constructEnzymeModule - naming inhibition reactions

When having the following enzyme mechanism:

catalyticBranch = {"E_PFK1[c] + f6p[c] <=> E_PFK1[c]&f6p",
"E_PFK1[c]&f6p + atp[c] <=> E_PFK1[c]&f6p&atp",
"E_PFK1[c]&f6p&atp <=> E_PFK1[c]&fdp&adp",
"E_PFK1[c]&fdp&adp <=> E_PFK1[c]&fdp + adp[c]",
"E_PFK1[c]&fdp <=> E_PFK1[c] + fdp[c]"};

and constructing the enzyme module with one inhibitor, as follows:

enzymeModel =
constructEnzymeModule[Mechanism -> catalyticBranch,
Activators -> {}, ActivationSites -> 0,
Inhibitors -> {m["pep", "c"]}, InhibitionSites -> 4];

All the inhibition reactions have the same name, which doesn't seem right...

updateCustomODE[] duplicates ODEs

With the model MODEL1303260018, when doing the following:

newODE = model["CustomODE"] /.Toolboxspecies["ATP", "cell"][t] -> Toolboxspecies["ATP", "cell"];
updateCustomODE[model, newODE];

The ODEs that have changed in newODE are simply duplicated in the model, instead of being substituted.

getODE fails with volumes in customODEs

image

The set function works if there is no volume on the left side of the equation, but when there is a volume there, the getODE function does not recognize that the ODE's are for the same variables

Weird glitch in Mathematica 9.0.0

Unit conversions and getJacobian hang in M9. After an abort (Cmd + .) they return their results immediately. No glitch in M8

Reproduce problem:

model = ExampleData[{"Toolbox", "Glycolysis"}];
getJacobian[model]

or

Convert[51. Second, Hour]

Unit issue with compartmentless models

constructModel[{reaction["b1", {}, {metabolite["x1", None]}, {1}, False]}, Parameters -> {rateconst["b1", True] -> 0.1 Hour^-1}]

does not raise an error although the correct unit should be

rateconst["b1", True] -> 0.1 * Hour^-1 * Liter]

editAttribute functionality

editModel and editModelInPlace already exist so one could add editParameters, editInitialCondtions, etc. to the get, set and update functions.

Todo:

  • So far, editModel can only deal with list of rules

image

"String expected at position 2 in Milli <> ToLowerCase[1/Moles]" and "Millimoles/Liters + Millimoles¹/Liters¹ are incompatible units"

After installing the new MASS Toolbox version (v1 .1.0) with WebInstall, I got the following errors when executing this command: "model = biomodel2model["MODEL1303260018"];":

StringJoin::string: String expected at position 2 in Milli <> ToLowerCase[1/Moles].
Quantity::compat: Millimoles/Liters and Millimoles¹/Liters¹ are incompatible units

When #issue38 was reported there were no problems loading the above model.

Genereate 'How to ...' documentation notebooks

Ideas for 'How to ...' notebooks:

  • How to build a toy model from scratch
  • How to import a model from SBML and analyze it
  • How to QC/QA a model
  • How to do analyze the consequences of a single gene knockout
  • How to visualize data on a pathway map
  • How to effectively utilize ODE Events for perturbations

...

issue with importing models edited in copasi

In Copasi, I used the attached model (in the zip file: Smallbone.xml) to add the following reaction:
acaldt: acetaldehyde{extracellular} -> acetaldehyde{cell}

then exported the model in SBML (level 2 version 4) (attached as Smallbone_acaldt.xml, in the zip file), and tried using it in the MASS toolbox.

I can import it, however it crashes when I simulate it. The code+output is the following:

bug_import_from_copasi

The original model (Smallbone.xml) works fine with the MASS toolbox, and both the original and the edited models work fine with Copasi.

models.zip

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.