Giter VIP home page Giter VIP logo

rxnnet's Introduction

rxnnet

A Python package for representing reaction networks, and computing their structures and behaviors. Currently the core of it is implemented as a wrapper of SloppyCell.

Mathematically, a reaction network can be represented as dx/dt = N v(x,p), where x, v and p are the concentration, rate and parameter vectors, respectively and N is the stoichiometry matrix.

Examples of structures:

  • Stoichiometry matrix N
  • Left and right null spaces of N
  • Reduced stoichiometry matrix Nr (a selection of N's rows with trivial left null space) and link matrix L where N = L Nr

Examples of behaviors:

  • Dynamics x(t)
  • Steady states s = x(inf) and J = v(s, p)
  • Parameter sensitivities of them dx(t)/dp, Rs = ds/dp and RJ = dJ/dp
    • elasticities Ep = dv/dp and Ex = dv/dx
    • control matrices Cs = -(N Es)-1 N and CJ = I + Es Cs

Prerequisites

Usage examples

import rxnnet

net = rxnnet.network.Network('net')
net.add_compartment(id='env')
net.add_compartment(id='cell')
net.add_species(id='C1', compartment='env', initial_value=2, is_constant=True)
net.add_species(id='C2', compartment='env', initial_value=1, is_constant=True)
net.add_species(id='X', compartment='cell', initial_value=0)
net.add_reaction(id='R1', eqn='C1<->X', ratelaw='k1*(C1-X)', p={'k1':1})
net.add_reaction(id='R2', eqn='X<->C2', ratelaw='k2*(X-C2)', p={'k2':2})

traj = net.integrate((0,10))
traj.plot()

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.