-
Notifications
You must be signed in to change notification settings - Fork 1
/
mcell.stg
174 lines (124 loc) · 3.16 KB
/
mcell.stg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
group mcell;
prog2(parameters,molecules,species,reactions,observables,functions,compartments,boxes,compartmentsSurface)::=<<
time_step = 1.0e-6
TIME_STEP = time_step
TIME_STEP_MAX = time_step
ITERATIONS = 1000
EFFECTOR_GRID_DENSITY = 10000
INTERACTION_RADIUS = 0.001
VACANCY_SEARCH_DISTANCE=1
PARTITION_X = [ [-0.2 TO 0.2 STEP 0.01] ]
PARTITION_Y = [ [-0.2 TO 0.2 STEP 0.01] ]
PARTITION_Z = [ [-0.2 TO 0.2 STEP 0.01] ]
avogadro_constant = 6.02e23
<parameters; separator="\n">
DEFINE_MOLECULES{
<molecules; separator="\n">
}
<if(compartmentsSurface)>
<boxes.keys:{b|
<b> BOX
{
CORNERS = [-0.1,-0.1,-0.1] , [0.1,0.1,0.1]
DEFINE_SURFACE_REGIONS
{
<boxes.(b)>
}
}
}; separator="\n">
<else>
small_box BOX
{
CORNERS = [-0.1,-0.1,-0.1] , [0.1,0.1,0.1]
}
<endif>
INSTANTIATE my_world OBJECT
{
<species; separator = "\n">
<boxes.keys:{b|my_box OBJECT <b> {}}; separator="\n">
}
DEFINE_REACTIONS
{
<reactions; separator = "\n">
}
REACTION_DATA_OUTPUT
{
STEP = 1e-5
<observables; separator = "\n">
}
>>
define_molecules(index,name,dimension,difussion)::=<<
S<index> { D_<dimension>D = <difussion> } /*<name>*/
>>
parameter_def(id,value) ::=<<
<id> = <value>
>>
molecules_def(id,sites) ::= <<
<id>(<sites; separator = ".">)
>>
sites_def(id,states) ::= <<
>>
seed_species_block(id,concentration,isVolume,location) ::= <<
<if(isVolume)>
S<id>_release SPHERICAL_RELEASE_SITE {
LOCATION = [<location>]
SITE_DIAMETER = 0.196
MOLECULE = S<id>
NUMBER_TO_RELEASE = <concentration>
}
<else>
<id>' = <concentration>
<endif>
>>
seed_surface_species(id,concentration)::=<<
<id>' = concentration
>>
create_surface_region(name,molecules)::=<<
<name>
{
ELEMENT_LIST = [ALL_ELEMENTS]
MOLECULE_NUMBER
{
<molecules: {m | S<m>};separator="\n">
}
}
>>
rule_seed_species_block(id,molecules,firstBonds,secondBonds) ::= <<
<molecules; separator="+">
>>
bond_template(firstElement,secondElement) ::= <<
>>
list_molecule_def(id,name,sites,compartment) ::= <<
<id>
>>
component_def(id,name,state,numberOfBonds)::= <<
>>
type_user_object(name) ::= "<name>"
reaction_block(id,name,reactant,product,rate,bidirectional,birate,leftMap,rightMap,operations,operator1,operator2,expression) ::=<<
>>
reaction_rules()::=<<
>>
reactions(reactant, product, rate,surfaceCompartment,reactantOrientation,productOrientation,factor)::=<<
<if(surfaceCompartment)><reactant,reactantOrientation: {r,ro | S<r><ro>}; separator="+"> -\> <product,productOrientation: {p ,po| S<p><po>} ; separator="+"> [<rate>]
<else><reactant: {r | S<r>}; separator="+"> -\> <product: {p | S<p>} ; separator="+"> [<rate>]
<endif>
>>
groups_groups(groupList,name)::=<<
{<groupList; separator=" + ">} => "dat/eq_<name>.dat"
>>
groups_block(id,name,type,patterns,times)::=<<
COUNT [S<id>,WORLD]<if(times)>*<times><endif>
>>
patterns_block(id,molecules)::=<<
>>
functions_block(id,referencesName,referencesType,expression)::=<<
>>
compartments_block(id,dimensions,size,outside)::=<<
>>
compartments_volume_block(id,size,outside)::=<<
>>
compartments_surface_block(id,size,outside)::=<<
<id>{REFLECTIVE = A REFLECTIVE = B}
>>
observables_block()::=<<
>>