Giter VIP home page Giter VIP logo

pyadapt's Introduction

pyADAPT

Analysis of Dynamic Adaptations in Parameter Trajectories

http://bmi.bmt.tue.nl/sysbio/software/adapt.html

Implementation in Python

Getting Started

Clone this repo, checkout to branch stable from where you would be able to make changes suitable for your own model.

Install pyADAPT to the current python environment: pip install -e .

Define model

Convert sbml file to model definition script: python -m pyADAPT convert -f yourmodel.xml -o yourmodel.py

from yourmodel import YourModel
model = YourModel()

Alternatively you could also define the models directly:

  • Inherit from pyADAPT.basemodel.BaseModel
  • add_parameter according to your model in method __init__
  • define methods fluxes and state_ode

Define dataset

The dataset is required to be several time-dependent pairs of mean values and standard deviations.

data = pyADAPT.dataset.Dataset(raw_data_path="toyData.mat", data_specs_path="toyData.yaml")

Run the simulation

Analyze parameter 'k1' of the model using 4 processes, ODE solver "LSODA":

from pyADAPT.optimize import optimize

(parameter_trajectories,
  state_trajectories,
  flux_trajectories,
  time) = optimize(model, dataset, 'k1',
                   n_iter=256,
                   delta_t=0.2,
                   odesolver="LSODA", 
                   n_core=4)

Analysis of the parameter trajectories

Please refer to https://research.tue.nl/en/publications/computational-analysis-of-adaptations-during-disease-and-interven

pyadapt's People

Contributors

tonyxwz avatar

Watchers

 avatar  avatar

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.