Skip to main content

Symbolic mathematics for SBML Models.

Project description

controlSBML

controlSBML provides: (1) a bridge between SBML models and the python control package and (2) capabilities for the analysis and design of control systems for SBML models.

Installation

pip install controlSBML

Constructing ControlSBML

ctlsb = ControlSBML(model_reference) where model_referencecan be any of the following:

  • path to a local file with the extension .ant or .xml
  • a python string for an SBML or Antimony model representation
  • a URL to an XML file

Key properties

  • species_names is a list of species in the model
  • roadrunner is the roadrunner object for the model
  • jacobian is the Jacobian of the model at the current simulation time. Changes to roadrunner can change this property.
  • antimony is the antimony representation of the model

Key methods

  • setTime(new_time) resets roadrunner and runs a simulation from time zero to the time specified.
  • makeStateSpace() creates a control state space object using the Jacobian of the model at the current simulation time.
  • plotTrueModel plots a roadrunner simulation.
  • plotLinearApproximation plots the linear approximation provided by an ${\bf A}$ matrix. The default ${\bf A}$ matrix is the Jacobian of the current RoadRunner instance. You can either specify a different ${\bf A}$ or set the RoadRunner instance to a different time.

Example

This notebook illustrates how to use controlSBML.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

controlSBML-0.1.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page