-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtissue_plots.py
98 lines (78 loc) · 3.89 KB
/
tissue_plots.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
from plot_module import plot_tissues
def tissue_plotting(x, epsilon_4cc, sigma_4cc, epsilon_2cc, sigma_2cc):
# Skin
skin_fcc_1 = [epsilon_4cc['Dry_Skin'], sigma_4cc['Dry_Skin']]
skin_tcc = [epsilon_2cc['Skin'], sigma_2cc['Skin']]
skin_fcc_2 = [epsilon_4cc['Wet_Skin'], sigma_4cc['Wet_Skin']]
plot_tissues(x, 'Skin', skin_fcc_1, skin_tcc, skin_fcc_2, '4')
# Fat
fat_fcc = [epsilon_4cc['Fat'], sigma_4cc['Fat']]
fat_tcc = [epsilon_2cc['Fat'], sigma_2cc['Fat']]
plot_tissues(x, 'Fat', fat_fcc, fat_tcc)
# Muscle
muscle_fcc = [epsilon_4cc['Muscle'], sigma_4cc['Muscle']]
muscle_tcc = [epsilon_2cc['Muscle'], sigma_2cc['Muscle']]
plot_tissues(x, 'Muslce', muscle_fcc, muscle_tcc)
# Blood
blood_fcc = [epsilon_4cc['Blood'], sigma_4cc['Blood']]
blood_tcc = [epsilon_2cc['Blood'], sigma_2cc['Blood']]
plot_tissues(x, 'Blood', blood_fcc, blood_tcc)
# Heart
heart_fcc = [epsilon_4cc['Heart'], sigma_4cc['Heart']]
heart_tcc = [epsilon_2cc['Heart'], sigma_2cc['Heart']]
plot_tissues(x, 'Heart', heart_fcc, heart_tcc)
# Kidney
kidney_fcc = [epsilon_4cc['Kidney'], sigma_4cc['Kidney']]
kidney_tcc = [epsilon_2cc['Kidney'], sigma_2cc['Kidney']]
plot_tissues(x, 'Kidney', kidney_fcc, kidney_tcc)
# Liver
liver_fcc = [epsilon_4cc['Liver'], sigma_4cc['Liver']]
liver_tcc = [epsilon_2cc['Liver'], sigma_2cc['Liver']]
plot_tissues(x, 'Liver', liver_fcc, liver_tcc)
# Lunge
lunge_fcc1 = [epsilon_4cc['Lunge_nO2'], sigma_4cc['Lunge_nO2']]
lunge_tcc = [epsilon_2cc['Lunge'], sigma_2cc['Lunge']]
lunge_fcc2 = [epsilon_4cc['Lunge_O2'], sigma_4cc['Lunge_O2']]
plot_tissues(x, 'Lunge', lunge_fcc1, lunge_tcc, lunge_fcc2, '4')
# Stomach
stomach_fcc = [epsilon_4cc['Stomach'], sigma_4cc['Stomach']]
stomach_tcc = [epsilon_2cc['Stomach'], sigma_2cc['Stomach']]
plot_tissues(x, 'Stomach', stomach_fcc, stomach_tcc)
# Colon
colon_fcc = [epsilon_4cc['Colon'], sigma_4cc['Colon']]
colon_tcc = [epsilon_2cc['Colon'], sigma_2cc['Colon']]
plot_tissues(x, 'Colon', colon_fcc, colon_tcc)
# Small instestine
small_fcc = [epsilon_4cc['Small_Instestine'], sigma_4cc['Small_Instestine']]
small_tcc = [epsilon_2cc['Small_Instestine'], sigma_2cc['Small_Instestine']]
plot_tissues(x, 'Small_Instestine', small_fcc, small_tcc)
# Aort
aort_tcc = [epsilon_2cc['Aort'], sigma_2cc['Aort']]
plot_tissues(x, 'Aort', '', aort_tcc)
# Brain
brain_fcc1 = [epsilon_4cc['White_Matter'], sigma_4cc['White_Matter']]
brain_fcc2 = [epsilon_4cc['Grey_Matter'], sigma_4cc['Grey_Matter']]
plot_tissues(x, 'Brain', brain_fcc1, '', brain_fcc2, '4')
# Bone
bone_fcc1 = [epsilon_4cc['Cortex'], sigma_4cc['Cortex']]
bone_fcc2 = [epsilon_4cc['Spongy_Bone'], sigma_4cc['Spongy_Bone']]
marrow = [epsilon_4cc['Marrow'], sigma_4cc['Marrow']]
plot_tissues(x, 'Bone', bone_fcc1, '', bone_fcc2, '4', marrow, '4')
# Eye
eye = [epsilon_4cc['Eye'], sigma_4cc['Eye']]
plot_tissues(x, 'Eye', eye)
# Genitals
genitals_tcc1 = [epsilon_2cc['Fallopian'], sigma_2cc['Fallopian']]
genitals_tcc2 = [epsilon_2cc['Ovary'], sigma_2cc['Ovary']]
genitals_tcc3 = [epsilon_2cc['Uetrus'], sigma_2cc['Uetrus']]
plot_tissues(x, 'Genitals', '', genitals_tcc1, genitals_tcc2, '2', genitals_tcc3, '2')
# Bladder
bladder = [epsilon_2cc['Bladder'], sigma_2cc['Bladder']]
plot_tissues(x, 'Bladder', '', bladder)
# Spleen, Gall_Bladder, Esophaugus, Pancears
spleen = [epsilon_2cc['Spleen'], sigma_2cc['Spleen']]
gall_bladder = [epsilon_2cc['Gall_Bladder'], sigma_2cc['Gall_Bladder']]
esophagus = [epsilon_2cc['Esophagus'], sigma_2cc['Esophagus']]
pancears = [epsilon_2cc['Pancears'], sigma_2cc['Pancears']]
plot_tissues(x, 'SGbEP', esophagus, gall_bladder, spleen, '2', pancears,
'2') # To make plot, changes in plot_module.py are needed (change fcc_model)