-
Notifications
You must be signed in to change notification settings - Fork 3
/
themes.r
175 lines (154 loc) · 3.9 KB
/
themes.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
library(ggplot2)
library(dplyr)
focus_phenotypes <- c(
"Apoptosis",
"Elongated",
"Interphase",
"Large",
"Metaphase",
"OutOfFocus"
)
focus_phenotype_colors <- c(
"Apoptosis" = "#e7298a",
"Elongated" = "#1b9e77",
"Interphase" = "#7570b3",
"Large" = "#d95f02",
"Metaphase" = "black",
"OutOfFocus" = "red",
"Other" = "grey"
)
focus_phenotype_labels <- c(
"Apoptosis" = "Apoptosis",
"Elongated" = "Elongated",
"Interphase" = "Interphase",
"Large" = "Large",
"Metaphase" = "Metaphase",
"OutOfFocus" = "OutOfFocus",
"Other" = "Other"
)
feature_spaces <- c(
"CP" = "CellProfiler",
"DP" = "DeepProfiler",
"CP_and_DP" = "CP and DP",
"CP_zernike_only" = "CP Zernike",
"CP_areashape_only" = "CP AreaShape"
)
phenotype_categories <- list(
"Interphase" = c("Interphase", "Elongated", "Large"),
"Mitosis" = c("Prometaphase", "MetaphaseAlignment", "Metaphase", "Anaphase"),
"Mitotic conseq." = c("Binuclear", "Polylobed", "Grape"),
"Dynamic changes" = c("Hole", "SmallIrregular", "Folded"),
"Other" = c("Apoptosis", "OutOfFocus", "ADCCM")
)
facet_labels <- c(
"CP" = "CellProfiler",
"DP" = "DeepProfiler",
"CP_and_DP" = "CP and DP"
)
feature_space_labels <- c(
"CP" = "CellProfiler",
"DP" = "DeepProfiler",
"CP_and_DP" = "CP and DP"
)
feature_space_colors <- c(
"CP" = "#1b9e77",
"DP" = "#d95f02",
"CP_and_DP" = "#7570b3"
)
data_split_colors <- c(
"test" = "#D64933",
"train" = "#044389"
)
data_split_labels <- c(
"test" = "Test",
"train" = "Train"
)
shuffled_linetypes <- c(
"False" = "solid",
"True" = "dashed"
)
shuffled_labels <- c(
"False" = "False",
"True" = "True"
)
shuffled_colors = c(
"FALSE" = "#482C3D",
"TRUE" = "#FF7E6B"
)
focus_corr_colors <- c(
"TRUE" = "#addde6",
"FALSE" = "#e6b6ad"
)
focus_corr_labels = c(
"TRUE" = "Yes",
"FALSE" = "No"
)
feature_type_with_data_split_colors <- c(
"CPtest" = "#1b9e77",
"DPtest" = "#d95f02",
"CP_and_DPtest" = "#7570b3",
"CPtrain" = "#c8e9df",
"DPtrain" = "#fedbcd",
"CP_and_DPtrain" = "#cbd4e7"
)
feature_type_with_data_split_labels <- c(
"CP_and_DPtest" = "CP + DP (Test)",
"CP_and_DPtrain" = "CP + DP (Train)",
"CPtest" = "CP (Test)",
"CPtrain" = "CP (Train)",
"DPtest" = "DP (Test)",
"DPtrain" = "DP (Train)"
)
subset_feature_type_with_data_split_colors <- c(
"CP_areashape_onlytest" = "#1f78b4",
"CP_zernike_onlytest" = "#F00699",
"CP_areashape_onlytrain" = "#aacee6",
"CP_zernike_onlytrain" = "#DA8EBE"
)
subset_feature_type_with_data_split_labels <- c(
"CP_areashape_onlytest" = "AreaShape only (Test)",
"CP_zernike_onlytest" = "Zernike only (Test)",
"CP_areashape_onlytrain" = "AreaShape only (Train)",
"CP_zernike_onlytrain" = "Zernike only (Train)"
)
dataset_colors <- c(
"jump" = "#48A9A6",
"mitocheck" = "#C1666B"
)
dataset_labels = c(
"jump" = "JUMP-CP",
"mitocheck" = "Mitocheck"
)
# Set feature group colors for CellProfiler features
cp_feature_group_colors <- c(
"AreaShape" = "#1f78b4",
"Granularity" = "#e41a1c",
"Intensity" = "#4daf4a",
"Neighbors" = "#984ea3",
"RadialDistribution" = "#ff7f00",
"Texture" = "#ffff33"
)
# Set colors for JUMP treatment type
treatment_type_colors <- c(
"compound" = "#1E3888",
"crispr" = "#FFAD69",
"orf" = "#9C3848"
)
treatment_type_labels = c(
"compound" = "compound",
"crispr" = "crispr",
"orf" = "orf"
)
phenotypic_ggplot_theme <- (
theme_bw()
+ theme(
axis.text = element_text(size = 10),
legend.title = element_text(size = 12),
legend.text = element_text(size = 10),
legend.key.height = unit(0.8, "lines"),
strip.text = element_text(size = 10),
strip.background = element_rect(
linewidth = 0.5, color = "black", fill = "#fdfff4"
)
)
)