Top Banner
Pedro Mendes http://www.comp-sys-bio.org An introduction to modeling and simulation with COPASI
39

An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

May 28, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Pedro Mendeshttp://www.comp-sys-bio.org

An introduction to modeling and simulation

with COPASI

Page 2: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Reactions and kinetic functions

The rate of each reaction is a function of:• concentration of the substrates• concentration of the products • concentration of the modifiers• a set of constants

impms

ms

impms

KI

KB

KA

VKA

v

KKKVIBAfv

1

,,,;,,

A B

I-

Page 3: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Species concentrations are represented by ODEs

The rate of change of a species concentration is the algebraic sum of the rates producing it and the ones consuming it

21 vvdt

dA 432 vvv

dt

dB

A B2 3

4

1

Page 4: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

1

21 12 2 2 21 1

1 12

2 2

2

1

22 2 2 2

2

2 2

1

1 1

1

1

1

h

ff r

A eq A BS Ah

hS A

Ch

A B

C

h

f

A eq A B

h

C

A B

A B A BS A VV VK S K K KK K

AS A CK K KA B

K K C

K

A B A BV

K S K K KB

C

KA B

K K

a

æ öæ ö æ ö ç ÷ ç ÷ ç ÷ç ÷è ø è øè ø

æ ö ç ÷æ ö è ø ç ÷æ öè ø

ç ÷è ø

æ öæ ö æ ö ç ÷ç ÷ ç ÷ç ÷è ø è øè ø

æ ö çæ ö è ç ÷

è ø

&

&3 3

3 3

3 3

2

3 3 4 43 3 4 4

3 3 4 4

1

1

1 1

f r

B Ch

B C

h

C

f r f r

B C C P

B C C P

B CV V

K KB C

K K

C

K

B C C PV V V V

K K K KC

B C C P

K K K K

a

÷ø

æ ö ç ÷

è ø

&

An exampleS A B C P

E1 E2 E3 E4

Page 5: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

1 11 1

1 1

1

22 2 2 2

2

2 2

2

3 33 3

3 3

4 44 4

1

1

11 1 0 0

0 1 1 0 10 0 1 1

1

f r

S A

S A

h

f

A eq A B

h

h

Ch

A B

C

f r

B C

B C

f r

C

S AV V

K KS A

K K

A B A BV

K S K K K

C

KA BAK K CB

KC

B CV V

K KB C

K K

C PV V

K K

a

æ öæ ö æ ö ç ÷ç ÷ ç ÷ç ÷è ø è øè ø

æ ö ç ÷æ öé ù è øé ù ç ÷ê ú ê ú æ öè ø ê ú ê ú ç ÷ê ú ê ú è øë ûë û

&

&

&

4 4

1

P

C P

C P

K K

é ùê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê úê ú ê úê úë û

S A B C PE1 E2 E3 E4

x = N v x,k&

An example

Page 6: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

COPASI simulation methods

COPASI allows simulations based on:●ODEs

● Built directly from reaction kinetics ● Arbitrary ODEs● Compartment volumes can be variables (ODE)

●Stochastic kinetics based on Gillespie's SSA●Models can have:

● Algebraic assignments● Discrete events

Page 7: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Modelling and Analysis with COPASI

Parameters and variables

● Parameters are items that are independent of the system, i.e. are set by outside agents (causes).

● Variables are items of the system whose values are determined exclusively by the parameters (effects).

● State of the system is the set of all variables.● One set of parameters determines

unambiguously the variables. ● One set of variables can be caused by many

parameter sets.

Page 8: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Modelling and Analysis with COPASI

The central modelling question

● Given a model of a system: how do the parameters affect the state of the system?

● Answers explain:• which parameters have highest effect on desired

outcomes (eg drug design)• what properties of the model are more fragile or

robust• which parameters need accurate estimates

(experimental design)

Page 9: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Modelling cycle

Model &parameters

behaviour:simulation

data

behaviour:experimental

data

literature

Forward modelling

Inverse modelling

Text mining

Publication ofexperiments

Knowledgeformation

Knowledgeretrieval

knowledge

Page 10: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Hoops et al. (2006) Bioinformatics 22, 3067­3074

Page 11: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Frequent releases...

Page 12: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Documentation and support

Several sources available at www.copasi.org:• User manual• FAQ• User forum• Issue tracker• Technical documentation:

• File format specification (including schema)• Documentation of API

Page 13: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and
Page 14: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Mendes, P, Hoops, S, Sahle, S, Gauges, R, Dada, J, Kummer, U (2009) Computational Modeling of Biochemical Networks Using COPASI. Methods Mol. Biol. 500, 17-59.

Page 15: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Systems Biology Markup Language

• Exchange medium for systems biology models, based on XML (used by >100 programs)

• Specifies models based on the biology, not on the maths

• Software interpret the models and translate them into mathematical/computational representations

• Allows ODEs, assignment rules, and events

http://www.sbml.org

Page 16: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Model Definition

Page 17: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Model Definition

Page 18: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Stoichiometric analyses

Page 19: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Stoichiometric analyses

Page 20: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Deterministic time course simulations

Page 21: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Deterministic time course simulations

Page 22: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Hybrid ODE-discrete event

• System of ODEs is associated with events• An event (conditional state transition) consist 

of: • a trigger (Boolean expression) • at least one assignment• a delay (optional)

• When trigger expression changes from FALSE to TRUE, the even triggers and causes the assignments. If there is a delay, the trigger will only be that time after the trigger

Page 23: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Stochastic time course simulations

Page 24: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Stochastic time course simulations

Page 25: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Histograms

Page 26: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Automatic conversion to irreversible reactions

Page 27: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Hybrid ODE-stochastic

Page 28: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Parameter scanning & sampling

Page 29: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Parameter scanning & sampling

Page 30: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Parameter scanning & sampling

Page 31: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Sensitivity analysis (MCA)

Page 32: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Sensitivity analysis (general)

Page 33: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Sensitivity analysis (general)

Page 34: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Global optimisation

Page 35: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and
Page 36: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and
Page 37: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Parameter estimation

Page 38: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Command line version• CopasiSE

• All model relevant information is contained in .cps file (COPASIML, an XML schema)

Usage: CopasiSE [options] [file] --configdir string The configuration directory for copasi. The default is .copasi in the home directory. --configfile string The configuration file for copasi. The default is copasi in the ConfigDir. --exportBerkeleyMadonna string The Berkeley Madonna file to export. --exportC string The C code file to export. --home string Your home directory. --license Display the license. --verbose Enable output of messages during runtime to std::error. -c, --copasidir string The COPASI installation directory. -e, --exportSBML string The SBML file to export. -i, --importSBML string A SBML file to import. -s, --save string The file the model is saved to after work. -t, --tmp string The temp directory used for autosave.

Page 39: An introduction to modeling and simulation with COPASIcopasi.org/...Workshop_VBI_2014/.../IntroCopasi.pdf · An introduction to modeling and simulation with COPASI. Reactions and

Condor-COPASI high-throughput computing