Code Monkey home page Code Monkey logo

Comments (3)

luciansmith avatar luciansmith commented on July 19, 2024

I can say for certain that models like this are valid SBML. However, if you just have a plain species with no initial anything, even though it's valid, it is underdefined and cannot be simulated without resorting to external information to simulate it. As a result, there are no models like this in the semantic test suite, since the semantic test suite can only test models whose simulation results are fully defined.

There are indeed models like this in the syntactic test suite, which has a lot of models in it that are valid SBML, but which cannot be simulated for various reasons.

It's worth noting that I can think of four situations where a species (or any SBML element with mathematical meaning) with no 'initialValue' or 'value' can be defined:

  • It has an InitialAssignment.
  • It has an AssignmentRule
  • There is a system of one or more AlgebraicRules in the model that define the element.
  • It's a 'comp' model, and the element with no initial value is replaced by an element that does have one.

I believe all four situations are covered by the test suite.

(There's also the vaguely-similar situation where a model with no reaction rates may have FBC information in it that is used to estimate those rates. This is one example of why underdefined models in SBML have always been valid. Structural analyses can also be performed usefully on models like these.)

It is true that some simulators like libroadrunner have internal defaults they use for otherwise undefined mathematical elements, but that's a choice that the simulator makes. Other simulators choose to fail. This has, unfortunately, been the case since the earliest days of SBML, and reflect different philosophies of tool use. It would be nice if everyone did the same thing (i.e. always fail or always use defaults) so that the models would be more exchangeable, but SBML is a community standard, and this is one area where the community has always had diverging practices.

If I recall correctly, libroadrunner uses a default of '0' for species and parameters, and a default of '1' for compartments and reaction rates. I think it is at least true that simulators that use defaults tend to all choose these same defaults.

from sbml-test-suite.

FFroehlich avatar FFroehlich commented on July 19, 2024

Thanks for the quick and detailed response! I was not aware of the purpose or existence of the syntactic testcases, but I guess we will also have to implement a testrunner for those!

from sbml-test-suite.

luciansmith avatar luciansmith commented on July 19, 2024

You're welcome! Links to the syntactic test suite cases can be found at https://github.com/sbmlteam/sbml-test-suite/releases

In general, the syntactic tests have several models that are syntactically valid (the 'pass' models), and a lot of models that are syntactically invalid (the 'fail' models). You can use them to ensure that you're passing on the correct error messages to your users, or at least to check that an invalid file doesn't crash your program ;-)

from sbml-test-suite.

Related Issues (20)

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.