-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evgeny Metelkin
committed
Mar 15, 2020
1 parent
25fa17b
commit 016d819
Showing
10 changed files
with
112 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
# Cases | ||
|
||
- [One compartment PK model example](cases/one-compartment) | ||
*See also published [QSP platfortms](/implemented?id=open-source-qsp-platforms).* | ||
|
||
*See also published [QSP platfortms](implemented?id=Open-source-QSP-platforms).* | ||
| | | | ||
|---|---| | ||
| [one-compartment](cases/one-compartment) | One compartment PK model example. | | ||
| [annotation](cases/annotation) | Annotation of components in MM model. | | ||
| [time-switcher](cases/time-switcher) | Model describes one-reaction model with periodic event. | | ||
| ~~[cond-switcher](cases/cond-switcher)~~ | Event with conditional switch | | ||
| ~~[core units](cases/core-units)~~ | using core units | | ||
| ~~[qsp units](cases/qsp-units)~~ | using qsp-units module | | ||
| ~~[modules](cases/modules)~~ | Combining different modules to single platfrom. | | ||
| ~~[namespaces](cases/several)~~ | Using namespaces to write several models in one platforms | | ||
| ~~[auc](cases/auc)~~ | Using Process to add ODEs | | ||
| | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Annotation | ||
|
||
Annotation of components in Michaelis-Menten model. | ||
|
||
```Heta | ||
include ./qsp-units.heta | ||
Vmax @Const = 0.1; | ||
Km @Const = 2.5; | ||
'''Note for the Default compartment''' | ||
default_comp @Compartment 'Default compartment' { units: L }; | ||
default_comp .= 1; | ||
S @Species 'substrate' { compartment: default_comp, units: uM }; | ||
P @Species 'product' { compartment: default_comp, units: uM }; | ||
''' Transformation of __substate__ to __product__ ''' | ||
r1 @Reaction 'Michaelis-Menten reaction' { | ||
actors: S -> P, | ||
units: umole/min | ||
}; | ||
r1 := Vmax*S/(Km+S)*default_comp; // S is used here but assigned below | ||
S .= 10; // S should be initialialized after creation | ||
P .= 0; | ||
mm_sbml @SBMLExport 'Exported mm model' { filepath: sbml }; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Time switcher | ||
|
||
Model describes one-reaction model with periodic event. | ||
|
||
```Heta | ||
/* | ||
Simple model with one reaction | ||
*/ | ||
comp1 @Compartment .= 1; | ||
A @Species { compartment: comp1 }; | ||
B @Species { compartment: comp1 }; | ||
r1 @Reaction { actors: A => 2B }; | ||
// initialization | ||
A .= 10; | ||
B .= 0; | ||
// rules | ||
r1 := k1*A*comp1; | ||
// constants | ||
k1 @Const = 1.2e-1; | ||
// This part describes periodic event | ||
// starting from 0 and then each 12 time units infinitely | ||
evt1 @TimeSwitcher { | ||
start: 0, | ||
period: 12 | ||
}; | ||
/* | ||
event assignment | ||
*/ | ||
// addition of 10 to A concentration (not amount) | ||
A [evt1]= A + 10; | ||
// exports | ||
sbml1 @SBMLExport { filepath: sbml1_export }; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters