cell_types.py 126 KB
Newer Older
Randy Heiland's avatar
v3    
Randy Heiland committed
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
 
# This file is auto-generated from a Python script that parses a PhysiCell configuration (.xml) file.
#
# Edit at your own risk.
#
import os
from ipywidgets import Label,Text,Checkbox,Button,HBox,VBox,FloatText,IntText,BoundedIntText,BoundedFloatText,Layout,Box,Dropdown
    
class CellTypesTab(object):

    def __init__(self):
        
        micron_units = Label('micron')   # use "option m" (Mac, for micro symbol)

        constWidth = '180px'
        tab_height = '500px'
        stepsize = 10

        #style = {'description_width': '250px'}
        style = {'description_width': '25%'}
        layout = {'width': '400px'}

        name_button_layout={'width':'25%'}
        widget_layout = {'width': '15%'}
        widget_layout_long = {'width': '20%'}
        units_button_layout ={'width':'15%'}
        desc_button_layout={'width':'45%'}
        divider_button_layout={'width':'40%'}
        divider_button_layout={'width':'60%'}
        box_layout = Layout(display='flex', flex_flow='row', align_items='stretch', width='100%')

        self.cell_type_dropdown = Dropdown(description='Cell type:',)
        self.cell_type_dropdown.style = {'description_width': '%sch' % str(len(self.cell_type_dropdown.description) + 1)}

        cell_type_names_layout={'width':'30%'}
        cell_type_names_style={'description_width':'initial'}
        self.parent_name = Text(value='None',description='inherits properties from parent type:',disabled=True, style=cell_type_names_style, layout=cell_type_names_layout)

        explain_inheritance = Label(value='    This cell line inherits its properties from its parent type. Any settings below override those inherited properties.')  # , style=cell_type_names_style, layout=cell_type_names_layout)

        self.cell_type_parent_row = HBox([self.cell_type_dropdown, self.parent_name])
        self.cell_type_parent_dict = {}

        self.cell_type_dict = {}
        self.cell_type_dict['default'] = 'default'
        self.cell_type_dict['lung epithelium'] = 'lung epithelium'
        self.cell_type_dict['immune'] = 'immune'
        self.cell_type_dict['CD8 Tcell'] = 'CD8 Tcell'
        self.cell_type_dict['macrophage'] = 'macrophage'
        self.cell_type_dict['neutrophil'] = 'neutrophil'
        self.cell_type_dropdown.options = self.cell_type_dict

        self.cell_type_dropdown.observe(self.cell_type_cb)

        self.cell_type_parent_dict['default'] = 'None'
        self.cell_type_parent_dict['lung epithelium'] = 'default'
        self.cell_type_parent_dict['immune'] = 'default'
        self.cell_type_parent_dict['CD8 Tcell'] = 'immune'
        self.cell_type_parent_dict['macrophage'] = 'immune'
        self.cell_type_parent_dict['neutrophil'] = 'immune'


        self.cell_def_vboxes = []
Vincent Noël's avatar
Vincent Noël committed
64
65
66
67

        self.bnd_filenames = [None]*6

        self.cfg_filenames = [None]*6
Randy Heiland's avatar
v3    
Randy Heiland committed
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
        #  >>>>>>>>>>>>>>>>> <cell_definition> = default
        #  ------------------------- 
        div_row1 = Button(description='phenotype:cycle (model: flow_cytometry_separated_cycle_model; code=6)', disabled=True, layout=divider_button_layout)
        div_row1.style.button_color = 'orange'
        name_btn = Button(description='Phase 0 -> Phase 1 transition rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float0 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float0, units_btn, ]
        box0 = Box(children=row, layout=box_layout)

        name_btn = Button(description='Phase 1 -> Phase 2 transition rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float1 = FloatText(value='0.00208333', step='0.0001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float1, units_btn, ]
        box1 = Box(children=row, layout=box_layout)

        name_btn = Button(description='Phase 2 -> Phase 3 transition rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float2 = FloatText(value='0.00416667', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float2, units_btn, ]
        box2 = Box(children=row, layout=box_layout)

        name_btn = Button(description='Phase 3 -> Phase 0 transition rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float3 = FloatText(value='0.0166667', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float3, units_btn, ]
        box3 = Box(children=row, layout=box_layout)

        #  ------------------------- 
        div_row2 = Button(description='phenotype:death', disabled=True, layout=divider_button_layout)
        div_row2.style.button_color = 'orange'
        death_model1 = Button(description='model: apoptosis', disabled=True, layout={'width':'30%'})
        death_model1.style.button_color = '#ffde6b'
        name_btn = Button(description='death rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float4 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float4, units_btn, ]
        box4 = Box(children=row, layout=box_layout)

        name_btn = Button(description='unlysed_fluid_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float5 = FloatText(value='0.05', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float5, units_btn, ]
        box5 = Box(children=row, layout=box_layout)

        name_btn = Button(description='lysed_fluid_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float6 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float6, units_btn, ]
        box6 = Box(children=row, layout=box_layout)

        name_btn = Button(description='cytoplasmic_biomass_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float7 = FloatText(value='1.66667e-02', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float7, units_btn, ]
        box7 = Box(children=row, layout=box_layout)

        name_btn = Button(description='nuclear_biomass_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float8 = FloatText(value='5.83333e-03', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float8, units_btn, ]
        box8 = Box(children=row, layout=box_layout)

        name_btn = Button(description='calcification_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float9 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float9, units_btn, ]
        box9 = Box(children=row, layout=box_layout)

        name_btn = Button(description='relative_rupture_volume', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float10 = FloatText(value='2.0', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float10, units_btn, ]
        box10 = Box(children=row, layout=box_layout)

        death_model2 = Button(description='model: necrosis', disabled=True, layout={'width':'30%'})
        death_model2.style.button_color = '#ffde6b'
        name_btn = Button(description='death rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float11 = FloatText(value='0.0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float11, units_btn, ]
        box11 = Box(children=row, layout=box_layout)

        name_btn = Button(description='unlysed_fluid_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float12 = FloatText(value='0.05', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float12, units_btn, ]
        box12 = Box(children=row, layout=box_layout)

        name_btn = Button(description='lysed_fluid_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float13 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float13, units_btn, ]
        box13 = Box(children=row, layout=box_layout)

        name_btn = Button(description='cytoplasmic_biomass_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float14 = FloatText(value='1.66667e-02', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float14, units_btn, ]
        box14 = Box(children=row, layout=box_layout)

        name_btn = Button(description='nuclear_biomass_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float15 = FloatText(value='5.83333e-03', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float15, units_btn, ]
        box15 = Box(children=row, layout=box_layout)

        name_btn = Button(description='calcification_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float16 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float16, units_btn, ]
        box16 = Box(children=row, layout=box_layout)

        name_btn = Button(description='relative_rupture_volume', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float17 = FloatText(value='2.0', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float17, units_btn, ]
        box17 = Box(children=row, layout=box_layout)

        #  ------------------------- 
        div_row3 = Button(description='phenotype:volume', disabled=True, layout=divider_button_layout)
        div_row3.style.button_color = 'orange'
        name_btn = Button(description='total', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float18 = FloatText(value='2494', step='100', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float18, units_btn, ]
        box18 = Box(children=row, layout=box_layout)

        name_btn = Button(description='fluid_fraction', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float19 = FloatText(value='0.75', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float19, units_btn, ]
        box19 = Box(children=row, layout=box_layout)

        name_btn = Button(description='nuclear', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float20 = FloatText(value='540', step='10', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float20, units_btn, ]
        box20 = Box(children=row, layout=box_layout)

        name_btn = Button(description='fluid_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float21 = FloatText(value='0.05', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float21, units_btn, ]
        box21 = Box(children=row, layout=box_layout)

        name_btn = Button(description='cytoplasmic_biomass_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float22 = FloatText(value='0.0045', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float22, units_btn, ]
        box22 = Box(children=row, layout=box_layout)

        name_btn = Button(description='nuclear_biomass_change_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float23 = FloatText(value='0.0055', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float23, units_btn, ]
        box23 = Box(children=row, layout=box_layout)

        name_btn = Button(description='calcified_fraction', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float24 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float24, units_btn, ]
        box24 = Box(children=row, layout=box_layout)

        name_btn = Button(description='calcification_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float25 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float25, units_btn, ]
        box25 = Box(children=row, layout=box_layout)

        name_btn = Button(description='relative_rupture_volume', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float26 = FloatText(value='2.0', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float26, units_btn, ]
        box26 = Box(children=row, layout=box_layout)

        #  ------------------------- 
        div_row4 = Button(description='phenotype:mechanics', disabled=True, layout=divider_button_layout)
        div_row4.style.button_color = 'orange'
        name_btn = Button(description='cell_cell_adhesion_strength', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float27 = FloatText(value='0.4', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float27, units_btn, ]
        box27 = Box(children=row, layout=box_layout)

        name_btn = Button(description='cell_cell_repulsion_strength', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float28 = FloatText(value='10.0', step='1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float28, units_btn, ]
        box28 = Box(children=row, layout=box_layout)

        name_btn = Button(description='relative_maximum_adhesion_distance', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float29 = FloatText(value='1.25', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float29, units_btn, ]
        box29 = Box(children=row, layout=box_layout)

        self.bool0 = Checkbox(description='enabled', value=False,layout=name_button_layout)
        name_btn = Button(description='set_relative_equilibrium_distance', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float30 = FloatText(value='1.8', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [self.bool0, name_btn, self.float30, units_btn, ]
        box30 = Box(children=row, layout=box_layout)

        self.bool1 = Checkbox(description='enabled', value=False,layout=name_button_layout)
        name_btn = Button(description='set_absolute_equilibrium_distance', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float31 = FloatText(value='15.12', step='1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [self.bool1, name_btn, self.float31, units_btn, ]
        box31 = Box(children=row, layout=box_layout)

        #  ------------------------- 
        div_row5 = Button(description='phenotype:motility', disabled=True, layout=divider_button_layout)
        div_row5.style.button_color = 'orange'

        name_btn = Button(description='speed', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float32 = FloatText(value='4', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='micron/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float32, units_btn]
        box32 = Box(children=row, layout=box_layout)

        name_btn = Button(description='persistence_time', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float33 = FloatText(value='5', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float33, units_btn]
        box33 = Box(children=row, layout=box_layout)

        name_btn = Button(description='migration_bias', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float34 = FloatText(value='0.7', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float34, units_btn]
        box34 = Box(children=row, layout=box_layout)
        self.bool2 = Checkbox(description='enabled', value=False,layout=name_button_layout)
        self.bool3 = Checkbox(description='use_2D', value=True,layout=name_button_layout)

        chemotaxis_btn = Button(description='chemotaxis', disabled=True, layout={'width':'30%'})
        chemotaxis_btn.style.button_color = '#ffde6b'

        self.bool4 = Checkbox(description='enabled', value=False,layout=name_button_layout)

        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.chemotaxis_substrate1 = Text(value='chemokine', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.chemotaxis_substrate1]
        box35 = Box(children=row, layout=box_layout)

        name_btn = Button(description='direction', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.chemotaxis_direction1 = Text(value='1', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.chemotaxis_direction1]
        box36 = Box(children=row, layout=box_layout)
        #  ------------------------- 
        div_row6 = Button(description='phenotype:secretion', disabled=True, layout=divider_button_layout)
        div_row6.style.button_color = 'orange'
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.text0 = Text(value='interferon 1', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text0]
        box37 = Box(children=row, layout=box_layout)
        name_btn = Button(description='secretion_target', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float35 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
400
        units_btn = Button(description='dimensionless substrate concentration', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
401
402
403
404
405
406
407
408
409
410
411
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float35, units_btn]
        box38 = Box(children=row, layout=box_layout)
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.text1 = Text(value='pro-inflammatory cytokine', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text1]
        box39 = Box(children=row, layout=box_layout)
        name_btn = Button(description='secretion_target', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float36 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
412
        units_btn = Button(description='dimensionless substrate concentration', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
413
414
415
416
417
418
419
420
421
422
423
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float36, units_btn]
        box40 = Box(children=row, layout=box_layout)
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.text2 = Text(value='chemokine', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text2]
        box41 = Box(children=row, layout=box_layout)
        name_btn = Button(description='secretion_target', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float37 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
424
        units_btn = Button(description='dimensionless substrate concentration', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
425
426
427
428
429
430
431
432
433
434
435
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float37, units_btn]
        box42 = Box(children=row, layout=box_layout)
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.text3 = Text(value='debris', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text3]
        box43 = Box(children=row, layout=box_layout)
        name_btn = Button(description='secretion_target', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float38 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
436
        units_btn = Button(description='dimensionless substrate concentration', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float38, units_btn]
        box44 = Box(children=row, layout=box_layout)
        #  ------------------------- 
        div_row7 = Button(description='phenotype:molecular', disabled=True, layout=divider_button_layout)
        div_row7.style.button_color = 'orange'

#      ================== <custom_data>, if present ==================

        div_row8 = Button(description='Custom Data',disabled=True, layout=divider_button_layout)
        div_row8.style.button_color = 'cyan'
        name_btn = Button(description='virion', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float39 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='virions', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='endocytosed virions', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float39, units_btn, description_btn] 

        box45 = Box(children=row, layout=box_layout)
        name_btn = Button(description='uncoated_virion', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float40 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='virions', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='uncoated endocytosed virions', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float40, units_btn, description_btn] 

        box46 = Box(children=row, layout=box_layout)
        name_btn = Button(description='viral_RNA', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float41 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='RNA', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='total (functional) viral RNA copies', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float41, units_btn, description_btn] 

        box47 = Box(children=row, layout=box_layout)
        name_btn = Button(description='viral_protein', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float42 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='protein', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='total assembled sets of viral protein', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float42, units_btn, description_btn] 

        box48 = Box(children=row, layout=box_layout)
        name_btn = Button(description='assembled_virion', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float43 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='total assembled virions', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float43, units_btn, description_btn] 

        box49 = Box(children=row, layout=box_layout)
        name_btn = Button(description='virion_uncoating_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float44 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='rate at which an internalized virion is uncoated', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float44, units_btn, description_btn] 

        box50 = Box(children=row, layout=box_layout)
        name_btn = Button(description='uncoated_to_RNA_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float45 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='rate at which uncoated virion makes its mRNA available', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float45, units_btn, description_btn] 

        box51 = Box(children=row, layout=box_layout)
        name_btn = Button(description='protein_synthesis_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float46 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='rate at mRNA creates complete set of proteins', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float46, units_btn, description_btn] 

        box52 = Box(children=row, layout=box_layout)
        name_btn = Button(description='virion_assembly_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float47 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='rate at which viral proteins are assembled into complete virion', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float47, units_btn, description_btn] 

        box53 = Box(children=row, layout=box_layout)
        name_btn = Button(description='virion_export_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float48 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='rate at which a virion is exported from a live cell', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float48, units_btn, description_btn] 

        box54 = Box(children=row, layout=box_layout)
        name_btn = Button(description='unbound_external_ACE2', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float49 = FloatText(value='1000', step='100', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
551
        units_btn = Button(description='receptors', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
552
553
554
555
556
557
558
559
560
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='initial number of unbound ACE2 receptors on surface', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float49, units_btn, description_btn] 

        box55 = Box(children=row, layout=box_layout)
        name_btn = Button(description='bound_external_ACE2', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float50 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
561
        units_btn = Button(description='receptors', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
562
563
564
565
566
567
568
569
570
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='initial number of bound ACE2 receptors on surface', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float50, units_btn, description_btn] 

        box56 = Box(children=row, layout=box_layout)
        name_btn = Button(description='unbound_internal_ACE2', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float51 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
571
        units_btn = Button(description='receptors', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
572
573
574
575
576
577
578
579
580
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='initial number of internalized unbound ACE2 receptors', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float51, units_btn, description_btn] 

        box57 = Box(children=row, layout=box_layout)
        name_btn = Button(description='bound_internal_ACE2', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float52 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
581
        units_btn = Button(description='receptors', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='initial number of internalized bound ACE2 receptors', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float52, units_btn, description_btn] 

        box58 = Box(children=row, layout=box_layout)
        name_btn = Button(description='ACE2_binding_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float53 = FloatText(value='0.001', step='0.0001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='ACE2 receptor-virus binding rate', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float53, units_btn, description_btn] 

        box59 = Box(children=row, layout=box_layout)
        name_btn = Button(description='ACE2_endocytosis_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float54 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='ACE2 receptor-virus endocytosis rate', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float54, units_btn, description_btn] 

        box60 = Box(children=row, layout=box_layout)
        name_btn = Button(description='ACE2_cargo_release_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float55 = FloatText(value='0.001', step='0.0001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='ACE2 receptor-virus cargo release rate', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float55, units_btn, description_btn] 

        box61 = Box(children=row, layout=box_layout)
        name_btn = Button(description='ACE2_recycling_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float56 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='ACE2 receptor recycling rate', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float56, units_btn, description_btn] 

        box62 = Box(children=row, layout=box_layout)
        name_btn = Button(description='max_infected_apoptosis_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float57 = FloatText(value='0.001', step='0.0001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='maximum rate of cell apoptosis due to viral infection', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float57, units_btn, description_btn] 

        box63 = Box(children=row, layout=box_layout)
        name_btn = Button(description='max_apoptosis_half_max', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float58 = FloatText(value='250', step='10', style=style, layout=widget_layout)
        units_btn = Button(description='virion', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='viral load at which cells reach half max apoptosis rate', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float58, units_btn, description_btn] 

        box64 = Box(children=row, layout=box_layout)
        name_btn = Button(description='apoptosis_hill_power', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float59 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='none', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='Hill power for viral load apoptosis response', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float59, units_btn, description_btn] 

        box65 = Box(children=row, layout=box_layout)
        name_btn = Button(description='virus_fraction_released_at_death', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float60 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='none', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='fraction of internal virus released at cell death', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float60, units_btn, description_btn] 

        box66 = Box(children=row, layout=box_layout)
        name_btn = Button(description='infected_cell_chemokine_secretion_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float61 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='max rate that infected cells secrete chemokine', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float61, units_btn, description_btn] 

        box67 = Box(children=row, layout=box_layout)
        name_btn = Button(description='debris_secretion_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float62 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='rate that dead cells release debris', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float62, units_btn, description_btn] 

        box68 = Box(children=row, layout=box_layout)
        name_btn = Button(description='infected_cell_chemokine_secretion_activated', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float63 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='none', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='used internally to track activation of chemokine secretion', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float63, units_btn, description_btn] 

        box69 = Box(children=row, layout=box_layout)
        name_btn = Button(description='TCell_contact_time', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float64 = FloatText(value='0.0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='tracks total contact time with CD8 T cells', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float64, units_btn, description_btn] 

        box70 = Box(children=row, layout=box_layout)
        name_btn = Button(description='cell_attachment_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float65 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='the rate at which the cell attaches to cells in contact', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float65, units_btn, description_btn] 

        box71 = Box(children=row, layout=box_layout)
        name_btn = Button(description='cell_attachment_lifetime', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float66 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='the mean duration of a cell-cell attachment', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float66, units_btn, description_btn] 

        box72 = Box(children=row, layout=box_layout)
        name_btn = Button(description='TCell_contact_death_threshold', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float67 = FloatText(value='50', step='1', style=style, layout=widget_layout)
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='threshold CD8 T cell contact time to trigger apoptosis', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float67, units_btn, description_btn] 

        box73 = Box(children=row, layout=box_layout)
        name_btn = Button(description='max_attachment_distance', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float68 = FloatText(value='15', step='1', style=style, layout=widget_layout)
        units_btn = Button(description='micron', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float68, units_btn, description_btn] 

        box74 = Box(children=row, layout=box_layout)
        name_btn = Button(description='elastic_attachment_coefficient', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float69 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='elastic coefficient for cell-cell attachment', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float69, units_btn, description_btn] 

        box75 = Box(children=row, layout=box_layout)
        name_btn = Button(description='phagocytosis_rate', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
760
761
        self.float70 = FloatText(value='0.167', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
762
        units_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
763
        description_btn = Button(description='', disabled=True, layout=desc_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
764
        description_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
765
        row = [name_btn, self.float70, units_btn, description_btn] 
Randy Heiland's avatar
v3    
Randy Heiland committed
766

Randy Heiland's avatar
Randy Heiland committed
767
        box76 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
Randy Heiland committed
768
        name_btn = Button(description='sensitivity_to_debris_chemotaxis', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
769
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
770
        self.float71 = FloatText(value='1.0', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
771
772
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
773
        description_btn = Button(description='relative sensitivity to debris in chemotaxis', disabled=True, layout=desc_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
774
        description_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
775
        row = [name_btn, self.float71, units_btn, description_btn] 
Randy Heiland's avatar
v3    
Randy Heiland committed
776

Randy Heiland's avatar
Randy Heiland committed
777
        box77 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
Randy Heiland committed
778
        name_btn = Button(description='sensitivity_to_chemokine_chemotaxis', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
779
        name_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
780
        self.float72 = FloatText(value='10.0', step='1', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
781
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
782
        units_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
783
        description_btn = Button(description='relative sensitivity to chemokine in chemotaxis', disabled=True, layout=desc_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
784
        description_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
785
        row = [name_btn, self.float72, units_btn, description_btn] 
Randy Heiland's avatar
v3    
Randy Heiland committed
786

Randy Heiland's avatar
Randy Heiland committed
787
        box78 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
Randy Heiland committed
788
        name_btn = Button(description='activated_speed', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
789
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
790
        self.float73 = FloatText(value='0.4', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
791
        units_btn = Button(description='micron/min', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
792
        units_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
793
        description_btn = Button(description='speed after activation', disabled=True, layout=desc_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
794
        description_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
795
        row = [name_btn, self.float73, units_btn, description_btn] 
Randy Heiland's avatar
v3    
Randy Heiland committed
796

Randy Heiland's avatar
Randy Heiland committed
797
        box79 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
Randy Heiland committed
798
        name_btn = Button(description='activated_cytokine_secretion_rate', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
799
        name_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
800
        self.float74 = FloatText(value='1', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
801
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
802
        units_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
803
        description_btn = Button(description='rate of secreting pro-inflamatory cytokine after activation', disabled=True, layout=desc_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
804
        description_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
805
        row = [name_btn, self.float74, units_btn, description_btn] 
Randy Heiland's avatar
v3    
Randy Heiland committed
806

Randy Heiland's avatar
Randy Heiland committed
807
        box80 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
Randy Heiland committed
808
809
        name_btn = Button(description='activated_immune_cell', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
810
        self.float75 = FloatText(value='0.0', step='0.01', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
811
812
813
814
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='used internally to track activation state', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
Randy Heiland's avatar
Randy Heiland committed
815
        row = [name_btn, self.float75, units_btn, description_btn] 
Randy Heiland's avatar
Randy Heiland committed
816

Randy Heiland's avatar
Randy Heiland committed
817
        box81 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
818
819
820
821
822
823
824
825
826
827
        name_btn = Button(description='virus_expression_threshold', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float76 = FloatText(value='10.0', step='1', style=style, layout=widget_layout)
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='minimal quantity of virus to activate virus_expression node', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float76, units_btn, description_btn] 

        box82 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866

        self.cell_def_vbox0 = VBox([
          div_row1, box0, box1, box2, box3, div_row2, death_model1,box4, box5, box6, box7, box8, box9, box10, death_model2,box11, box12, box13, box14, box15, box16, box17, div_row3, box18, box19, box20, box21, box22, box23, box24, box25, box26, div_row4, box27, box28, box29, box30, box31, div_row5, box32,box33,box34,self.bool2,self.bool3,chemotaxis_btn,self.bool4,box35,box36,div_row6, box37,box38,box39,box40,box41,box42,box43,box44,div_row7, div_row8,          box45,
          box46,
          box47,
          box48,
          box49,
          box50,
          box51,
          box52,
          box53,
          box54,
          box55,
          box56,
          box57,
          box58,
          box59,
          box60,
          box61,
          box62,
          box63,
          box64,
          box65,
          box66,
          box67,
          box68,
          box69,
          box70,
          box71,
          box72,
          box73,
          box74,
          box75,
          box76,
          box77,
          box78,
          box79,
          box80,
          box81,
Vincent Noël's avatar
Vincent Noël committed
867
          box82,
Randy Heiland's avatar
v3    
Randy Heiland committed
868
869
870
871
872
873
874
875
876
877
878
        ])
        # ------------------------------------------
        self.cell_def_vboxes.append(self.cell_def_vbox0)

        #  >>>>>>>>>>>>>>>>> <cell_definition> = lung epithelium
        #  ------------------------- 
        div_row9 = Button(description='phenotype:death', disabled=True, layout=divider_button_layout)
        div_row9.style.button_color = 'orange'
        death_model1 = Button(description='model: apoptosis', disabled=True, layout={'width':'30%'})
        death_model1.style.button_color = '#ffde6b'
        name_btn = Button(description='death rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
879
880
        name_btn.style.button_color = 'tan'
        self.float77 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
Vincent Noël's avatar
Vincent Noël committed
881
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
882
883
884
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float77, units_btn, ]
        box83 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
885
886
887
888
889
890
891
892

        #  ------------------------- 
        div_row10 = Button(description='phenotype:motility', disabled=True, layout=divider_button_layout)
        div_row10.style.button_color = 'orange'
        self.bool5 = Checkbox(description='enabled', value=False,layout=name_button_layout)
        #  ------------------------- 
        div_row11 = Button(description='phenotype:secretion', disabled=True, layout=divider_button_layout)
        div_row11.style.button_color = 'orange'
Vincent Noël's avatar
Vincent Noël committed
893
894
895
896
        #  ------------------------- 
        div_row12 = Button(description='phenotype:intracellular (maboss)', disabled=True, layout=divider_button_layout)
        div_row12.style.button_color = 'orange'
        bnd_filename = Button(description='bnd_filename', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
897
        bnd_filename.style.button_color = 'lightgreen'
Vincent Noël's avatar
Vincent Noël committed
898
899
        self.bnd_filenames[1] = Text(value='../data/boolean_network/epithelial_cell.bnd', style=style, layout=widget_layout)
        row = [bnd_filename, self.bnd_filenames[1]]
Vincent Noël's avatar
Vincent Noël committed
900
        box84 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
901
        cfg_filename = Button(description='cfg_filename', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
902
        cfg_filename.style.button_color = 'tan'
Vincent Noël's avatar
Vincent Noël committed
903
904
        self.cfg_filenames[1] = Text(value='../data/boolean_network/epithelial_cell.cfg', style=style, layout=widget_layout)
        row = [cfg_filename, self.cfg_filenames[1]]
Vincent Noël's avatar
Vincent Noël committed
905
        box85 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
906
        time_step = Button(description='time_step', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
907
908
        time_step.style.button_color = 'lightgreen'
        self.float78 = FloatText(value='12', style=style, layout=widget_layout)
Vincent Noël's avatar
Vincent Noël committed
909
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
910
911
912
        units_btn.style.button_color = 'tan'
        row = [time_step, self.float78, units_btn]
        box86 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
913
914
915
916

#      ================== <custom_data>, if present ==================

        self.cell_def_vbox1 = VBox([
Vincent Noël's avatar
Vincent Noël committed
917
          div_row9, death_model1,box83, div_row10, self.bool5,div_row11, div_row12, box84,box85,box86,        ])
Randy Heiland's avatar
v3    
Randy Heiland committed
918
919
920
921
922
        # ------------------------------------------
        self.cell_def_vboxes.append(self.cell_def_vbox1)

        #  >>>>>>>>>>>>>>>>> <cell_definition> = immune
        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
923
924
        div_row13 = Button(description='phenotype:mechanics', disabled=True, layout=divider_button_layout)
        div_row13.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
925
        name_btn = Button(description='cell_cell_adhesion_strength', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
Randy Heiland committed
926
        name_btn.style.button_color = 'tan'
Vincent Noël's avatar
Vincent Noël committed
927
        self.float79 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
Vincent Noël's avatar
Vincent Noël committed
928
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
Randy Heiland committed
929
        units_btn.style.button_color = 'tan'
Vincent Noël's avatar
Vincent Noël committed
930
931
        time_step = [name_btn, self.float79, units_btn, ]
        box87 = Box(children=time_step, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
932

Vincent Noël's avatar
Vincent Noël committed
933
934
935
936
937
938
939
940
        name_btn = Button(description='cell_cell_repulsion_strength', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float80 = FloatText(value='10', step='1', style=style, layout=widget_layout)
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        time_step = [name_btn, self.float80, units_btn, ]
        box88 = Box(children=time_step, layout=box_layout)

Randy Heiland's avatar
v3    
Randy Heiland committed
941
        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
942
        div_row14 = Button(description='phenotype:death', disabled=True, layout=divider_button_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
943
        div_row14.style.button_color = 'orange'
Vincent Noël's avatar
Vincent Noël committed
944
945
946
        death_model1 = Button(description='model: apoptosis', disabled=True, layout={'width':'30%'})
        death_model1.style.button_color = '#ffde6b'
        name_btn = Button(description='death rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
947
948
        name_btn.style.button_color = 'tan'
        self.float81 = FloatText(value='5e-4', step='0.0001', style=style, layout=widget_layout)
Vincent Noël's avatar
Vincent Noël committed
949
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
950
951
952
        units_btn.style.button_color = 'tan'
        time_step = [name_btn, self.float81, units_btn, ]
        box89 = Box(children=time_step, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
953

Vincent Noël's avatar
Vincent Noël committed
954
955
956
957
958
        #  ------------------------- 
        div_row15 = Button(description='phenotype:motility', disabled=True, layout=divider_button_layout)
        div_row15.style.button_color = 'orange'

        name_btn = Button(description='speed', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
Randy Heiland committed
959
        name_btn.style.button_color = 'lightgreen'
Vincent Noël's avatar
Vincent Noël committed
960
961
        self.float82 = FloatText(value='4', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='micron/min', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
Randy Heiland committed
962
        units_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
Randy Heiland committed
963
        row = [name_btn, self.float82, units_btn]
Vincent Noël's avatar
Vincent Noël committed
964
965
        box90 = Box(children=row, layout=box_layout)

Vincent Noël's avatar
Vincent Noël committed
966
        name_btn = Button(description='persistence_time', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
967
        name_btn.style.button_color = 'tan'
Vincent Noël's avatar
Vincent Noël committed
968
969
        self.float83 = FloatText(value='5', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
970
971
972
        units_btn.style.button_color = 'tan'
        row = [name_btn, self.float83, units_btn]
        box91 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
973
974
975
976
977
978
979
980

        name_btn = Button(description='migration_bias', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float84 = FloatText(value='0.70', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float84, units_btn]
        box92 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
981
982
983
984
985
986
987
988
989
        self.bool6 = Checkbox(description='enabled', value=True,layout=name_button_layout)
        self.bool7 = Checkbox(description='use_2D', value=True,layout=name_button_layout)

        chemotaxis_btn = Button(description='chemotaxis', disabled=True, layout={'width':'30%'})
        chemotaxis_btn.style.button_color = '#ffde6b'

        self.bool8 = Checkbox(description='enabled', value=False,layout=name_button_layout)

        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
990
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
v3    
Randy Heiland committed
991
992
        self.chemotaxis_substrate3 = Text(value='chemokine', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.chemotaxis_substrate3]
Vincent Noël's avatar
Vincent Noël committed
993
        box93 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
994
995

        name_btn = Button(description='direction', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
996
        name_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
v3    
Randy Heiland committed
997
998
        self.chemotaxis_direction3 = Text(value='1', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.chemotaxis_direction3]
Vincent Noël's avatar
Vincent Noël committed
999
        box94 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1000
        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
1001
1002
        div_row16 = Button(description='phenotype:secretion', disabled=True, layout=divider_button_layout)
        div_row16.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
1003
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1004
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
v3    
Randy Heiland committed
1005
1006
        self.text4 = Text(value='pro-inflammatory cytokine', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text4]
Vincent Noël's avatar
Vincent Noël committed
1007
        box95 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1008
        name_btn = Button(description='uptake_rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1009
1010
        name_btn.style.button_color = 'lightgreen'
        self.float85 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1011
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1012
1013
1014
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float85, units_btn]
        box96 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1015
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1016
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
v3    
Randy Heiland committed
1017
1018
        self.text5 = Text(value='chemokine', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text5]
Vincent Noël's avatar
Vincent Noël committed
1019
        box97 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1020
        name_btn = Button(description='uptake_rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1021
1022
        name_btn.style.button_color = 'lightgreen'
        self.float86 = FloatText(value='0.01', step='0.001', style=style, layout=widget_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1023
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1024
1025
1026
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float86, units_btn]
        box98 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1027
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1028
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
v3    
Randy Heiland committed
1029
1030
        self.text6 = Text(value='debris', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text6]
Vincent Noël's avatar
Vincent Noël committed
1031
        box99 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1032
        name_btn = Button(description='uptake_rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1033
1034
        name_btn.style.button_color = 'lightgreen'
        self.float87 = FloatText(value='0.1', step='0.01', style=style, layout=widget_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1035
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1036
1037
1038
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float87, units_btn]
        box100 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1039
1040
1041
1042

#      ================== <custom_data>, if present ==================

        self.cell_def_vbox2 = VBox([
Vincent Noël's avatar
Vincent Noël committed
1043
          div_row13, box87, box88, div_row14, death_model1,box89, div_row15, box90,box91,box92,self.bool6,self.bool7,chemotaxis_btn,self.bool8,box93,box94,div_row16, box95,box96,box97,box98,box99,box100,        ])
Randy Heiland's avatar
v3    
Randy Heiland committed
1044
1045
1046
1047
1048
        # ------------------------------------------
        self.cell_def_vboxes.append(self.cell_def_vbox2)

        #  >>>>>>>>>>>>>>>>> <cell_definition> = CD8 Tcell
        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
1049
1050
        div_row17 = Button(description='phenotype:death', disabled=True, layout=divider_button_layout)
        div_row17.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
1051
1052
1053
        death_model1 = Button(description='model: apoptosis', disabled=True, layout={'width':'30%'})
        death_model1.style.button_color = '#ffde6b'
        name_btn = Button(description='death rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1054
1055
        name_btn.style.button_color = 'tan'
        self.float88 = FloatText(value='2.8e-4', step='1e-05', style=style, layout=widget_layout)
Vincent Noël's avatar
Vincent Noël committed
1056
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1057
1058
1059
        units_btn.style.button_color = 'tan'
        time_step = [name_btn, self.float88, units_btn, ]
        box101 = Box(children=time_step, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1060
1061

        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
1062
1063
        div_row18 = Button(description='phenotype:motility', disabled=True, layout=divider_button_layout)
        div_row18.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
1064
1065

        name_btn = Button(description='migration_bias', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1066
1067
        name_btn.style.button_color = 'lightgreen'
        self.float89 = FloatText(value='0.70', step='0.1', style=style, layout=widget_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1068
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1069
1070
1071
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float89, units_btn]
        box102 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1072
1073
1074
1075
1076
1077
1078
1079
1080
        self.bool9 = Checkbox(description='enabled', value=True,layout=name_button_layout)
        self.bool10 = Checkbox(description='use_2D', value=True,layout=name_button_layout)

        chemotaxis_btn = Button(description='chemotaxis', disabled=True, layout={'width':'30%'})
        chemotaxis_btn.style.button_color = '#ffde6b'

        self.bool11 = Checkbox(description='enabled', value=False,layout=name_button_layout)

        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1081
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
v3    
Randy Heiland committed
1082
1083
        self.chemotaxis_substrate4 = Text(value='chemokine', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.chemotaxis_substrate4]
Vincent Noël's avatar
Vincent Noël committed
1084
        box103 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1085
1086

        name_btn = Button(description='direction', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1087
        name_btn.style.button_color = 'lightgreen'
Randy Heiland's avatar
v3    
Randy Heiland committed
1088
1089
        self.chemotaxis_direction4 = Text(value='1', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.chemotaxis_direction4]
Vincent Noël's avatar
Vincent Noël committed
1090
        box104 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1091
        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
1092
1093
        div_row19 = Button(description='phenotype:volume', disabled=True, layout=divider_button_layout)
        div_row19.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
1094
        name_btn = Button(description='total', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1095
        name_btn.style.button_color = 'tan'
Vincent Noël's avatar
Vincent Noël committed
1096
        self.float90 = FloatText(value='478', step='10', style=style, layout=widget_layout)
Randy Heiland's avatar
Randy Heiland committed
1097
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1098
1099
1100
        units_btn.style.button_color = 'tan'
        time_step = [name_btn, self.float90, units_btn, ]
        box105 = Box(children=time_step, layout=box_layout)
Randy Heiland's avatar
Randy Heiland committed
1101

Vincent Noël's avatar
Vincent Noël committed
1102
1103
1104
1105
1106
1107
1108
1109
        name_btn = Button(description='nuclear', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'lightgreen'
        self.float91 = FloatText(value='47.8', step='1', style=style, layout=widget_layout)
        units_btn = Button(description='dimensionless', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'lightgreen'
        time_step = [name_btn, self.float91, units_btn, ]
        box106 = Box(children=time_step, layout=box_layout)

Randy Heiland's avatar
v3    
Randy Heiland committed
1110
        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
1111
1112
        div_row20 = Button(description='phenotype:secretion', disabled=True, layout=divider_button_layout)
        div_row20.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
1113
        name_btn = Button(description='substrate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1114
        name_btn.style.button_color = 'tan'
Randy Heiland's avatar
v3    
Randy Heiland committed
1115
1116
        self.text7 = Text(value='debris', disabled=False, style=style, layout=widget_layout_long)
        row = [name_btn, self.text7]
Vincent Noël's avatar
Vincent Noël committed
1117
        box107 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1118
        name_btn = Button(description='uptake_rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1119
1120
        name_btn.style.button_color = 'lightgreen'
        self.float92 = FloatText(value='0', step='0.01', style=style, layout=widget_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1121
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1122
1123
1124
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float92, units_btn]
        box108 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
1125
1126
1127
1128
        #  ------------------------- 
        div_row21 = Button(description='phenotype:intracellular (maboss)', disabled=True, layout=divider_button_layout)
        div_row21.style.button_color = 'orange'
        bnd_filename = Button(description='bnd_filename', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1129
        bnd_filename.style.button_color = 'tan'
Vincent Noël's avatar
Vincent Noël committed
1130
1131
        self.bnd_filenames[3] = Text(value='../data/boolean_network/cd8t_cell.bnd', style=style, layout=widget_layout)
        row = [bnd_filename, self.bnd_filenames[3]]
Vincent Noël's avatar
Vincent Noël committed
1132
        box109 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
1133
        cfg_filename = Button(description='cfg_filename', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1134
        cfg_filename.style.button_color = 'lightgreen'
Vincent Noël's avatar
Vincent Noël committed
1135
1136
        self.cfg_filenames[3] = Text(value='../data/boolean_network/cd8t_cell.cfg', style=style, layout=widget_layout)
        row = [cfg_filename, self.cfg_filenames[3]]
Vincent Noël's avatar
Vincent Noël committed
1137
        box110 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
1138
        time_step = Button(description='time_step', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1139
1140
        time_step.style.button_color = 'tan'
        self.float93 = FloatText(value='12', style=style, layout=widget_layout)
Vincent Noël's avatar
Vincent Noël committed
1141
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1142
1143
1144
        units_btn.style.button_color = 'lightgreen'
        row = [time_step, self.float93, units_btn]
        box111 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1145
1146
1147

#      ================== <custom_data>, if present ==================

Vincent Noël's avatar
Vincent Noël committed
1148
1149
        div_row22 = Button(description='Custom Data',disabled=True, layout=divider_button_layout)
        div_row22.style.button_color = 'cyan'
Randy Heiland's avatar
v3    
Randy Heiland committed
1150
        name_btn = Button(description='cell_attachment_rate', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
Randy Heiland committed
1151
        name_btn.style.button_color = 'lightgreen'
Vincent Noël's avatar
Vincent Noël committed
1152
1153
        self.float94 = FloatText(value='0.2', step='0.01', style=style, layout=widget_layout)
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
Randy Heiland committed
1154
1155
1156
        units_btn.style.button_color = 'lightgreen'
        description_btn = Button(description='', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'lightgreen'
Vincent Noël's avatar
Vincent Noël committed
1157
        row = [name_btn, self.float94, units_btn, description_btn] 
Randy Heiland's avatar
Randy Heiland committed
1158

Vincent Noël's avatar
Vincent Noël committed
1159
        box112 = Box(children=row, layout=box_layout)
Vincent Noël's avatar
Vincent Noël committed
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
        name_btn = Button(description='cell_attachment_lifetime', disabled=True, layout=name_button_layout)
        name_btn.style.button_color = 'tan'
        self.float95 = FloatText(value='8.5', step='0.1', style=style, layout=widget_layout)
        units_btn = Button(description='min', disabled=True, layout=name_button_layout)
        units_btn.style.button_color = 'tan'
        description_btn = Button(description='', disabled=True, layout=desc_button_layout)
        description_btn.style.button_color = 'tan'
        row = [name_btn, self.float95, units_btn, description_btn] 

        box113 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1170
1171

        self.cell_def_vbox3 = VBox([
Vincent Noël's avatar
Vincent Noël committed
1172
1173
          div_row17, death_model1,box101, div_row18, box102,self.bool9,self.bool10,chemotaxis_btn,self.bool11,box103,box104,div_row19, box105, box106, div_row20, box107,box108,div_row21, box109,box110,box111,div_row22,          box112,
          box113,
Randy Heiland's avatar
v3    
Randy Heiland committed
1174
1175
1176
1177
1178
1179
        ])
        # ------------------------------------------
        self.cell_def_vboxes.append(self.cell_def_vbox3)

        #  >>>>>>>>>>>>>>>>> <cell_definition> = macrophage
        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
1180
1181
        div_row23 = Button(description='phenotype:death', disabled=True, layout=divider_button_layout)
        div_row23.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
1182
1183
1184
        death_model1 = Button(description='model: apoptosis', disabled=True, layout={'width':'30%'})
        death_model1.style.button_color = '#ffde6b'
        name_btn = Button(description='death rate', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1185
1186
        name_btn.style.button_color = 'lightgreen'
        self.float96 = FloatText(value='2.1e-4', step='1e-05', style=style, layout=widget_layout)
Vincent Noël's avatar
Vincent Noël committed
1187
        units_btn = Button(description='1/min', disabled=True, layout=name_button_layout)
Vincent Noël's avatar
Vincent Noël committed
1188
1189
1190
        units_btn.style.button_color = 'lightgreen'
        row = [name_btn, self.float96, units_btn, ]
        box114 = Box(children=row, layout=box_layout)
Randy Heiland's avatar
v3    
Randy Heiland committed
1191
1192

        #  ------------------------- 
Vincent Noël's avatar
Vincent Noël committed
1193
1194
        div_row24 = Button(description='phenotype:motility', disabled=True, layout=divider_button_layout)
        div_row24.style.button_color = 'orange'
Randy Heiland's avatar
v3    
Randy Heiland committed
1195
1196

        name_btn = Button(description='migration_bias', disabled=True, layout=name_button_layout)
Randy Heiland's avatar
Randy Heiland committed
1197