Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Computational modelling and simulation
pb4covid19
Commits
4a93c8cb
Commit
4a93c8cb
authored
Nov 11, 2020
by
Vincent Noël
Browse files
Updated model
parent
a287908d
Changes
15
Show whitespace changes
Inline
Side-by-side
bin/cell_types.py
View file @
4a93c8cb
...
...
@@ -815,6 +815,16 @@ class CellTypesTab(object):
row
=
[
name_btn
,
self
.
float75
,
units_btn
,
description_btn
]
box81
=
Box
(
children
=
row
,
layout
=
box_layout
)
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
)
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
,
...
...
@@ -854,6 +864,7 @@ class CellTypesTab(object):
box79
,
box80
,
box81
,
box82
,
])
# ------------------------------------------
self
.
cell_def_vboxes
.
append
(
self
.
cell_def_vbox0
)
...
...
@@ -865,12 +876,12 @@ class CellTypesTab(object):
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
=
'
lightgree
n'
self
.
float7
6
=
FloatText
(
value
=
'0'
,
step
=
'0.01'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float7
7
=
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
=
'
lightgree
n'
row
=
[
name_btn
,
self
.
float7
6
,
units_btn
,
]
box8
2
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
ta
n'
row
=
[
name_btn
,
self
.
float7
7
,
units_btn
,
]
box8
3
=
Box
(
children
=
row
,
layout
=
box_layout
)
# -------------------------
div_row10
=
Button
(
description
=
'phenotype:motility'
,
disabled
=
True
,
layout
=
divider_button_layout
)
...
...
@@ -883,27 +894,27 @@ class CellTypesTab(object):
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
)
bnd_filename
.
style
.
button_color
=
'
ta
n'
bnd_filename
.
style
.
button_color
=
'
lightgree
n'
self
.
bnd_filenames
[
1
]
=
Text
(
value
=
'../data/boolean_network/epithelial_cell.bnd'
,
style
=
style
,
layout
=
widget_layout
)
row
=
[
bnd_filename
,
self
.
bnd_filenames
[
1
]]
box8
3
=
Box
(
children
=
row
,
layout
=
box_layout
)
box8
4
=
Box
(
children
=
row
,
layout
=
box_layout
)
cfg_filename
=
Button
(
description
=
'cfg_filename'
,
disabled
=
True
,
layout
=
name_button_layout
)
cfg_filename
.
style
.
button_color
=
'
lightgree
n'
cfg_filename
.
style
.
button_color
=
'
ta
n'
self
.
cfg_filenames
[
1
]
=
Text
(
value
=
'../data/boolean_network/epithelial_cell.cfg'
,
style
=
style
,
layout
=
widget_layout
)
row
=
[
cfg_filename
,
self
.
cfg_filenames
[
1
]]
box8
4
=
Box
(
children
=
row
,
layout
=
box_layout
)
box8
5
=
Box
(
children
=
row
,
layout
=
box_layout
)
time_step
=
Button
(
description
=
'time_step'
,
disabled
=
True
,
layout
=
name_button_layout
)
time_step
.
style
.
button_color
=
'
ta
n'
self
.
float7
7
=
FloatText
(
value
=
'12'
,
style
=
style
,
layout
=
widget_layout
)
time_step
.
style
.
button_color
=
'
lightgree
n'
self
.
float7
8
=
FloatText
(
value
=
'12'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'min'
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
time_step
,
self
.
float7
7
,
units_btn
]
box8
5
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
ta
n'
row
=
[
time_step
,
self
.
float7
8
,
units_btn
]
box8
6
=
Box
(
children
=
row
,
layout
=
box_layout
)
# ================== <custom_data>, if present ==================
self
.
cell_def_vbox1
=
VBox
([
div_row9
,
death_model1
,
box8
2
,
div_row10
,
self
.
bool5
,
div_row11
,
div_row12
,
box83
,
box84
,
box85
,
])
div_row9
,
death_model1
,
box8
3
,
div_row10
,
self
.
bool5
,
div_row11
,
div_row12
,
box84
,
box85
,
box86
,
])
# ------------------------------------------
self
.
cell_def_vboxes
.
append
(
self
.
cell_def_vbox1
)
...
...
@@ -912,61 +923,61 @@ class CellTypesTab(object):
div_row13
=
Button
(
description
=
'phenotype:mechanics'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row13
.
style
.
button_color
=
'orange'
name_btn
=
Button
(
description
=
'cell_cell_adhesion_strength'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'lightgreen'
self
.
float78
=
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'
time_step
=
[
name_btn
,
self
.
float78
,
units_btn
,
]
box86
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'cell_cell_repulsion_strength'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'tan'
self
.
float79
=
FloatText
(
value
=
'
1
0'
,
step
=
'1'
,
style
=
style
,
layout
=
widget_layout
)
self
.
float79
=
FloatText
(
value
=
'0'
,
step
=
'
0.0
1'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'min'
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'tan'
time_step
=
[
name_btn
,
self
.
float79
,
units_btn
,
]
box87
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
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
)
# -------------------------
div_row14
=
Button
(
description
=
'phenotype:death'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row14
.
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
=
'
lightgree
n'
self
.
float8
0
=
FloatText
(
value
=
'5e-4'
,
step
=
'0.0001'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float8
1
=
FloatText
(
value
=
'5e-4'
,
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
=
'
lightgree
n'
time_step
=
[
name_btn
,
self
.
float8
0
,
units_btn
,
]
box8
8
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
ta
n'
time_step
=
[
name_btn
,
self
.
float8
1
,
units_btn
,
]
box8
9
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
# -------------------------
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
)
name_btn
.
style
.
button_color
=
'tan'
self
.
float81
=
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
=
'tan'
row
=
[
name_btn
,
self
.
float81
,
units_btn
]
box89
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'persistence_time'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'lightgreen'
self
.
float82
=
FloatText
(
value
=
'
5
'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'min'
,
disabled
=
True
,
layout
=
name_button_layout
)
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
)
units_btn
.
style
.
button_color
=
'lightgreen'
row
=
[
name_btn
,
self
.
float82
,
units_btn
]
box90
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'
migration_bias
'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
=
Button
(
description
=
'
persistence_time
'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'tan'
self
.
float83
=
FloatText
(
value
=
'
0.70
'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'
dimensionless
'
,
disabled
=
True
,
layout
=
name_button_layout
)
self
.
float83
=
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
.
float83
,
units_btn
]
box91
=
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
.
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
)
self
.
bool6
=
Checkbox
(
description
=
'enabled'
,
value
=
True
,
layout
=
name_button_layout
)
self
.
bool7
=
Checkbox
(
description
=
'use_2D'
,
value
=
True
,
layout
=
name_button_layout
)
...
...
@@ -976,60 +987,60 @@ class CellTypesTab(object):
self
.
bool8
=
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
=
'
lightgree
n'
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
chemotaxis_substrate3
=
Text
(
value
=
'chemokine'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
chemotaxis_substrate3
]
box9
2
=
Box
(
children
=
row
,
layout
=
box_layout
)
box9
3
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'direction'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
chemotaxis_direction3
=
Text
(
value
=
'1'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
chemotaxis_direction3
]
box9
3
=
Box
(
children
=
row
,
layout
=
box_layout
)
box9
4
=
Box
(
children
=
row
,
layout
=
box_layout
)
# -------------------------
div_row16
=
Button
(
description
=
'phenotype:secretion'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row16
.
style
.
button_color
=
'orange'
name_btn
=
Button
(
description
=
'substrate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
text4
=
Text
(
value
=
'pro-inflammatory cytokine'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
text4
]
box9
4
=
Box
(
children
=
row
,
layout
=
box_layout
)
box9
5
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'uptake_rate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float8
4
=
FloatText
(
value
=
'0.01'
,
step
=
'0.001'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
float8
5
=
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
=
'
ta
n'
row
=
[
name_btn
,
self
.
float8
4
,
units_btn
]
box9
5
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
name_btn
,
self
.
float8
5
,
units_btn
]
box9
6
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'substrate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
text5
=
Text
(
value
=
'chemokine'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
text5
]
box9
6
=
Box
(
children
=
row
,
layout
=
box_layout
)
box9
7
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'uptake_rate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float8
5
=
FloatText
(
value
=
'0.01'
,
step
=
'0.001'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
float8
6
=
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
=
'
ta
n'
row
=
[
name_btn
,
self
.
float8
5
,
units_btn
]
box9
7
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
name_btn
,
self
.
float8
6
,
units_btn
]
box9
8
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'substrate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
text6
=
Text
(
value
=
'debris'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
text6
]
box9
8
=
Box
(
children
=
row
,
layout
=
box_layout
)
box9
9
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'uptake_rate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float8
6
=
FloatText
(
value
=
'0.1'
,
step
=
'0.01'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
float8
7
=
FloatText
(
value
=
'0.1'
,
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
=
'
ta
n'
row
=
[
name_btn
,
self
.
float8
6
,
units_btn
]
box
99
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
name_btn
,
self
.
float8
7
,
units_btn
]
box
100
=
Box
(
children
=
row
,
layout
=
box_layout
)
# ================== <custom_data>, if present ==================
self
.
cell_def_vbox2
=
VBox
([
div_row13
,
box8
6
,
box8
7
,
div_row14
,
death_model1
,
box8
8
,
div_row15
,
box
8
9
,
box9
0
,
box9
1
,
self
.
bool6
,
self
.
bool7
,
chemotaxis_btn
,
self
.
bool8
,
box9
2
,
box9
3
,
div_row16
,
box94
,
box95
,
box96
,
box97
,
box98
,
box99
,
])
div_row13
,
box8
7
,
box8
8
,
div_row14
,
death_model1
,
box8
9
,
div_row15
,
box9
0
,
box9
1
,
box9
2
,
self
.
bool6
,
self
.
bool7
,
chemotaxis_btn
,
self
.
bool8
,
box9
3
,
box9
4
,
div_row16
,
box95
,
box96
,
box97
,
box98
,
box99
,
box100
,
])
# ------------------------------------------
self
.
cell_def_vboxes
.
append
(
self
.
cell_def_vbox2
)
...
...
@@ -1040,24 +1051,24 @@ class CellTypesTab(object):
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
=
'
lightgree
n'
self
.
float8
7
=
FloatText
(
value
=
'2.8e-4'
,
step
=
'1e-05'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float8
8
=
FloatText
(
value
=
'2.8e-4'
,
step
=
'1e-05'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'1/min'
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
time_step
=
[
name_btn
,
self
.
float8
7
,
units_btn
,
]
box10
0
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
ta
n'
time_step
=
[
name_btn
,
self
.
float8
8
,
units_btn
,
]
box10
1
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
# -------------------------
div_row18
=
Button
(
description
=
'phenotype:motility'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row18
.
style
.
button_color
=
'orange'
name_btn
=
Button
(
description
=
'migration_bias'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float8
8
=
FloatText
(
value
=
'0.70'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
float8
9
=
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
=
'
ta
n'
row
=
[
name_btn
,
self
.
float8
8
,
units_btn
]
box10
1
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
name_btn
,
self
.
float8
9
,
units_btn
]
box10
2
=
Box
(
children
=
row
,
layout
=
box_layout
)
self
.
bool9
=
Checkbox
(
description
=
'enabled'
,
value
=
True
,
layout
=
name_button_layout
)
self
.
bool10
=
Checkbox
(
description
=
'use_2D'
,
value
=
True
,
layout
=
name_button_layout
)
...
...
@@ -1067,99 +1078,99 @@ class CellTypesTab(object):
self
.
bool11
=
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
=
'
lightgree
n'
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
chemotaxis_substrate4
=
Text
(
value
=
'chemokine'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
chemotaxis_substrate4
]
box10
2
=
Box
(
children
=
row
,
layout
=
box_layout
)
box10
3
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'direction'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
chemotaxis_direction4
=
Text
(
value
=
'1'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
chemotaxis_direction4
]
box10
3
=
Box
(
children
=
row
,
layout
=
box_layout
)
box10
4
=
Box
(
children
=
row
,
layout
=
box_layout
)
# -------------------------
div_row19
=
Button
(
description
=
'phenotype:volume'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row19
.
style
.
button_color
=
'orange'
name_btn
=
Button
(
description
=
'total'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'lightgreen'
self
.
float89
=
FloatText
(
value
=
'478'
,
step
=
'10'
,
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
.
float89
,
units_btn
,
]
box104
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'nuclear'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'tan'
self
.
float90
=
FloatText
(
value
=
'47
.
8'
,
step
=
'1'
,
style
=
style
,
layout
=
widget_layout
)
self
.
float90
=
FloatText
(
value
=
'478'
,
step
=
'1
0
'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'dimensionless'
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'tan'
time_step
=
[
name_btn
,
self
.
float90
,
units_btn
,
]
box105
=
Box
(
children
=
time_step
,
layout
=
box_layout
)
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
)
# -------------------------
div_row20
=
Button
(
description
=
'phenotype:secretion'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row20
.
style
.
button_color
=
'orange'
name_btn
=
Button
(
description
=
'substrate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
text7
=
Text
(
value
=
'debris'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
text7
]
box10
6
=
Box
(
children
=
row
,
layout
=
box_layout
)
box10
7
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'uptake_rate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
float9
1
=
FloatText
(
value
=
'0'
,
step
=
'0.01'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
float9
2
=
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
=
'
ta
n'
row
=
[
name_btn
,
self
.
float9
1
,
units_btn
]
box10
7
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
name_btn
,
self
.
float9
2
,
units_btn
]
box10
8
=
Box
(
children
=
row
,
layout
=
box_layout
)
# -------------------------
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
)
bnd_filename
.
style
.
button_color
=
'
lightgree
n'
bnd_filename
.
style
.
button_color
=
'
ta
n'
self
.
bnd_filenames
[
3
]
=
Text
(
value
=
'../data/boolean_network/cd8t_cell.bnd'
,
style
=
style
,
layout
=
widget_layout
)
row
=
[
bnd_filename
,
self
.
bnd_filenames
[
3
]]
box10
8
=
Box
(
children
=
row
,
layout
=
box_layout
)
box10
9
=
Box
(
children
=
row
,
layout
=
box_layout
)
cfg_filename
=
Button
(
description
=
'cfg_filename'
,
disabled
=
True
,
layout
=
name_button_layout
)
cfg_filename
.
style
.
button_color
=
'
ta
n'
cfg_filename
.
style
.
button_color
=
'
lightgree
n'
self
.
cfg_filenames
[
3
]
=
Text
(
value
=
'../data/boolean_network/cd8t_cell.cfg'
,
style
=
style
,
layout
=
widget_layout
)
row
=
[
cfg_filename
,
self
.
cfg_filenames
[
3
]]
box10
9
=
Box
(
children
=
row
,
layout
=
box_layout
)
box1
1
0
=
Box
(
children
=
row
,
layout
=
box_layout
)
time_step
=
Button
(
description
=
'time_step'
,
disabled
=
True
,
layout
=
name_button_layout
)
time_step
.
style
.
button_color
=
'
lightgree
n'
self
.
float9
2
=
FloatText
(
value
=
'12'
,
style
=
style
,
layout
=
widget_layout
)
time_step
.
style
.
button_color
=
'
ta
n'
self
.
float9
3
=
FloatText
(
value
=
'12'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'min'
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'
ta
n'
row
=
[
time_step
,
self
.
float9
2
,
units_btn
]
box11
0
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
time_step
,
self
.
float9
3
,
units_btn
]
box11
1
=
Box
(
children
=
row
,
layout
=
box_layout
)
# ================== <custom_data>, if present ==================
div_row22
=
Button
(
description
=
'Custom Data'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row22
.
style
.
button_color
=
'cyan'
name_btn
=
Button
(
description
=
'cell_attachment_rate'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'tan'
self
.
float93
=
FloatText
(
value
=
'0.2'
,
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
=
''
,
disabled
=
True
,
layout
=
desc_button_layout
)
description_btn
.
style
.
button_color
=
'tan'
row
=
[
name_btn
,
self
.
float93
,
units_btn
,
description_btn
]
box111
=
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
.
float94
=
FloatText
(
value
=
'
8.5
'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'min'
,
disabled
=
True
,
layout
=
name_button_layout
)
self
.
float94
=
FloatText
(
value
=
'
0.2
'
,
step
=
'0.
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
=
''
,
disabled
=
True
,
layout
=
desc_button_layout
)
description_btn
.
style
.
button_color
=
'lightgreen'
row
=
[
name_btn
,
self
.
float94
,
units_btn
,
description_btn
]
box112
=
Box
(
children
=
row
,
layout
=
box_layout
)
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
)
self
.
cell_def_vbox3
=
VBox
([
div_row17
,
death_model1
,
box10
0
,
div_row18
,
box10
1
,
self
.
bool9
,
self
.
bool10
,
chemotaxis_btn
,
self
.
bool11
,
box10
2
,
box10
3
,
div_row19
,
box10
4
,
box10
5
,
div_row20
,
box10
6
,
box10
7
,
div_row21
,
box10
8
,
box10
9
,
box11
0
,
div_row22
,
box11
1
,
box11
2
,
div_row17
,
death_model1
,
box10
1
,
div_row18
,
box10
2
,
self
.
bool9
,
self
.
bool10
,
chemotaxis_btn
,
self
.
bool11
,
box10
3
,
box10
4
,
div_row19
,
box10
5
,
box10
6
,
div_row20
,
box10
7
,
box10
8
,
div_row21
,
box10
9
,
box1
1
0
,
box11
1
,
div_row22
,
box11
2
,
box11
3
,
])
# ------------------------------------------
self
.
cell_def_vboxes
.
append
(
self
.
cell_def_vbox3
)
...
...
@@ -1171,32 +1182,32 @@ class CellTypesTab(object):
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
=
'
ta
n'
self
.
float9
5
=
FloatText
(
value
=
'2.1e-4'
,
step
=
'1e-05'
,
style
=
style
,
layout
=
widget_layout
)
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
float9
6
=
FloatText
(
value
=
'2.1e-4'
,
step
=
'1e-05'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
'1/min'
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'
ta
n'
row
=
[
name_btn
,
self
.
float9
5
,
units_btn
,
]
box11
3
=
Box
(
children
=
row
,
layout
=
box_layout
)
units_btn
.
style
.
button_color
=
'
lightgree
n'
row
=
[
name_btn
,
self
.
float9
6
,
units_btn
,
]
box11
4
=
Box
(
children
=
row
,
layout
=
box_layout
)
# -------------------------
div_row24
=
Button
(
description
=
'phenotype:motility'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row24
.
style
.
button_color
=
'orange'
name_btn
=
Button
(
description
=
'migration_bias'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'lightgreen'
self
.
float96
=
FloatText
(
value
=
'0.7'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
''
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'lightgreen'
row
=
[
name_btn
,
self
.
float96
,
units_btn
]
box114
=
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
.
float97
=
FloatText
(
value
=
'
5
'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
self
.
float97
=
FloatText
(
value
=
'
0.7
'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
''
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'tan'
row
=
[
name_btn
,
self
.
float97
,
units_btn
]
box115
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'persistence_time'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'lightgreen'
self
.
float98
=
FloatText
(
value
=
'5'
,
step
=
'0.1'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
''
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'lightgreen'
row
=
[
name_btn
,
self
.
float98
,
units_btn
]
box116
=
Box
(
children
=
row
,
layout
=
box_layout
)
self
.
bool12
=
Checkbox
(
description
=
'enabled'
,
value
=
True
,
layout
=
name_button_layout
)
self
.
bool13
=
Checkbox
(
description
=
'use_2D'
,
value
=
True
,
layout
=
name_button_layout
)
...
...
@@ -1206,125 +1217,125 @@ class CellTypesTab(object):
self
.
bool14
=
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
=
'
lightgree
n'
name_btn
.
style
.
button_color
=
'
ta
n'
self
.
chemotaxis_substrate5
=
Text
(
value
=
'debris'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
chemotaxis_substrate5
]
box11
6
=
Box
(
children
=
row
,
layout
=
box_layout
)
box11
7
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'direction'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'
ta
n'
name_btn
.
style
.
button_color
=
'
lightgree
n'
self
.
chemotaxis_direction5
=
Text
(
value
=
'1'
,
disabled
=
False
,
style
=
style
,
layout
=
widget_layout_long
)
row
=
[
name_btn
,
self
.
chemotaxis_direction5
]
box11
7
=
Box
(
children
=
row
,
layout
=
box_layout
)
box11
8
=
Box
(
children
=
row
,
layout
=
box_layout
)
# -------------------------
div_row25
=
Button
(
description
=
'phenotype:volume'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row25
.
style
.
button_color
=
'orange'
name_btn
=
Button
(
description
=
'total'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'lightgreen'
self
.
float98
=
FloatText
(
value
=
'4849'
,
step
=
'100'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
''
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'lightgreen'
row
=
[
name_btn
,
self
.
float98
,
units_btn
,
]
box118
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'nuclear'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'tan'
self
.
float99
=
FloatText
(
value
=
'48
5
'
,
step
=
'10'
,
style
=
style
,
layout
=
widget_layout
)
self
.
float99
=
FloatText
(
value
=
'48
49
'
,
step
=
'10
0
'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
''
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'tan'
row
=
[
name_btn
,
self
.
float99
,
units_btn
,
]
box119
=
Box
(
children
=
row
,
layout
=
box_layout
)
name_btn
=
Button
(
description
=
'
cytoplasmic_biomass_change_rate
'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
=
Button
(
description
=
'
nuclear
'
,
disabled
=
True
,
layout
=
name_button_layout
)
name_btn
.
style
.
button_color
=
'lightgreen'
self
.
float100
=
FloatText
(
value
=
'
0.01
'
,
step
=
'
0.00
1'
,
style
=
style
,
layout
=
widget_layout
)
self
.
float100
=
FloatText
(
value
=
'
485
'
,
step
=
'1
0
'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
''
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'lightgreen'
row
=
[
name_btn
,
self
.
float100
,
units_btn
,
]
box120
=
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
.
float101
=
FloatText
(
value
=
'0.01'
,
step
=
'0.001'
,
style
=
style
,
layout
=
widget_layout
)
units_btn
=
Button
(
description
=
''
,
disabled
=
True
,
layout
=
name_button_layout
)
units_btn
.
style
.
button_color
=
'tan'
row
=
[
name_btn
,
self
.
float101
,
units_btn
,
]
box121
=
Box
(
children
=
row
,
layout
=
box_layout
)
# -------------------------
div_row26
=
Button
(
description
=
'phenotype:intracellular (maboss)'
,
disabled
=
True
,
layout
=
divider_button_layout
)
div_row26
.
style
.
button_color
=
'orange'
bnd_filename
=
Button
(
description
=
'bnd_filename'
,
disabled
=
True
,
layout
=
name_button_layout
)
bnd_filename
.
style
.
button_color
=
'
ta
n'
bnd_filename
.
style
.
button_color
=
'
lightgree
n'
self
.
bnd_filenames
[
4
]
=
Text
(
value
=
'../data/boolean_network/macrophage.bnd'
,
style
=
style
,
layout
=
widget_layout
)