Skip to content

Releases: copasi/COPASI.js

Release 0.06

10 Oct 18:31
Compare
Choose a tag to compare

This release adds the possibility of setting / getting the initial concentration of species using getValue / setValue. For this to work, you would use the syntax [ + speciesName + ]_0. So to get the initial concentration of a species A you would use getValue('[A]_0') similarly, to set the initial concentration you would use setValue('[A]_0', 10). reset() will not reset a change of the initial concentrations, but resetAll will.

Release 0.0.5

02 Oct 19:57
Compare
Choose a tag to compare

This version adds access to MCA to COPASI.js

    // add elasticities to the simulation result 
    var selection = instance.selectionList;
    selection.push("EE(J0,S1)")
    instance.selectionList = selection;

    var result = instance.simulateEx(0, 10, 11);
    console.log(result);

or

    // compute mca
    instance.computeMca(true);

    // print control coefficients
    console.log("Flux control coefficients: ");
    console.log(instance.getFluxControlCoefficients(true)); // scaled
    console.log(instance.getFluxControlCoefficients(false)); // unscaled

    console.log("Concentration control coefficients: ");
    console.log(instance.getConcentrationControlCoefficients(true)); // scaled
    console.log(instance.getConcentrationControlCoefficients(false)); // unscaled

    console.log("Elasticities: ");
    console.log(instance.getElasticities(true)); // scaled
    console.log(instance.getElasticities(false)); // unscaled

Release 0.0.4

12 Aug 20:30
Compare
Choose a tag to compare

This release adds methods adds access to the jacobian and eigenvalues as properties:

    // run steady state
    console.log(instance.steadyState());

    // print jacobian
    console.log(instance.jacobian);

    // print jacobian
    console.log(instance.jacobian2D);

    // print eigenvalues
    console.log(instance.eigenValues2D);

    // print jacobian
    console.log(instance.reducedJacobian);

    // print jacobian
    console.log(instance.reducedJacobian2D);

    // print eigenvalues
    console.log(instance.eigenValuesReduced2D);    

Release 0.0.3

10 May 09:01
Compare
Choose a tag to compare

This release fixes an issue, where StepSize would take precedent over StepNumber when simulating. It also changes reset->resetAll (implying that all initial values are set back to their initial state), while a new reset method now resets only elements controlled by ODEs or Reactions back to initial state.

Release 0.0.2

02 May 11:06
Compare
Choose a tag to compare

This release adds get/setValue and method overloads that allow to retrieve elements using SBML ids. Additionally it is compiled with exceptions enabled that solves the issue with loading some SBML files. simulate now returns a proper JSON object in case of failure.

Release 0.0.1

21 Jan 14:33
Compare
Choose a tag to compare

First release of the basic simulation api. You'll find javascript attached to this release, one to use for node, one to use in web environments.