Skip to content

Commit 2c8eb8b

Browse files
authored
Update filter diff capsule parameter UI (#2)
* Split visualization parameters by plot type * Move Advanced category to end * Use list controls for boolean parameters * Update changelog for parameter UI changes * Add author handle to changelog entry
1 parent fd63e81 commit 2c8eb8b

2 files changed

Lines changed: 50 additions & 16 deletions

File tree

.codeocean/app-panel.json

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@
2323
"name": "Basic",
2424
"icon": "📂"
2525
},
26+
{
27+
"id": "VisGeneral",
28+
"name": "Visualization: General",
29+
"description": "General visualization and plotting options",
30+
"icon": "\ud83d\udcca"
31+
},
32+
{
33+
"id": "VisBarChart",
34+
"name": "Visualization: Bar Chart",
35+
"description": "Bar chart visualization options",
36+
"icon": "\ud83d\udcca"
37+
},
38+
{
39+
"id": "VisPieChart",
40+
"name": "Visualization: Pie Chart",
41+
"description": "Pie chart visualization options",
42+
"icon": "\ud83d\udcca"
43+
},
2644
{
2745
"id": "FvI4Z2eb9sjL47Jt",
2846
"name": "Advanced",
@@ -106,9 +124,13 @@
106124
"name": "Round estimates",
107125
"param_name": "round_estimates",
108126
"description": "Whether to round estimates",
109-
"type": "text",
127+
"type": "list",
110128
"value_type": "string",
111-
"default_value": "TRUE"
129+
"default_value": "TRUE",
130+
"extra_data": [
131+
"TRUE",
132+
"FALSE"
133+
]
112134
},
113135
{
114136
"id": "m9K2pX4bV7nT1eR6",
@@ -160,7 +182,7 @@
160182
},
161183
{
162184
"id": "R8dK2pV5yQ1tS6x9",
163-
"category": "FvI4Z2eb9sjL47Jt",
185+
"category": "VisGeneral",
164186
"name": "Label font size",
165187
"param_name": "label_font_size",
166188
"description": "Font size for labels in plots",
@@ -170,7 +192,7 @@
170192
},
171193
{
172194
"id": "p2X7mN4vT6cL1hQ9",
173-
"category": "FvI4Z2eb9sjL47Jt",
195+
"category": "VisGeneral",
174196
"name": "Label distance",
175197
"param_name": "label_distance",
176198
"description": "Distance of labels from bars",
@@ -180,7 +202,7 @@
180202
},
181203
{
182204
"id": "h1V6xQ3mT9kB2nR7",
183-
"category": "FvI4Z2eb9sjL47Jt",
205+
"category": "VisBarChart",
184206
"name": "Y-axis expansion",
185207
"param_name": "y_axis_expansion",
186208
"description": "Expansion of the y-axis",
@@ -190,7 +212,7 @@
190212
},
191213
{
192214
"id": "K9cP1rV6xT3mQ7nB",
193-
"category": "FvI4Z2eb9sjL47Jt",
215+
"category": "VisGeneral",
194216
"name": "Fill colors",
195217
"param_name": "fill_colors",
196218
"description": "Comma-separated fill colors for bars",
@@ -200,17 +222,21 @@
200222
},
201223
{
202224
"id": "L5mT8yQ2vR1nX6cP",
203-
"category": "FvI4Z2eb9sjL47Jt",
225+
"category": "VisPieChart",
204226
"name": "Pie chart in 3D",
205227
"param_name": "pie_chart_in_3d",
206228
"description": "Whether to draw pie charts in 3D",
207-
"type": "text",
229+
"type": "list",
208230
"value_type": "string",
209-
"default_value": "TRUE"
231+
"default_value": "TRUE",
232+
"extra_data": [
233+
"TRUE",
234+
"FALSE"
235+
]
210236
},
211237
{
212238
"id": "B6tQ1pV8mR3xN2cL",
213-
"category": "FvI4Z2eb9sjL47Jt",
239+
"category": "VisBarChart",
214240
"name": "Bar width",
215241
"param_name": "bar_width",
216242
"description": "Width of bars",
@@ -220,17 +246,21 @@
220246
},
221247
{
222248
"id": "x3M7nQ1tV9kR5cB2",
223-
"category": "FvI4Z2eb9sjL47Jt",
249+
"category": "VisBarChart",
224250
"name": "Draw bar border",
225251
"param_name": "draw_bar_border",
226252
"description": "Whether to draw borders around bars",
227-
"type": "text",
253+
"type": "list",
228254
"value_type": "string",
229-
"default_value": "TRUE"
255+
"default_value": "TRUE",
256+
"extra_data": [
257+
"TRUE",
258+
"FALSE"
259+
]
230260
},
231261
{
232262
"id": "Y4nR2pX7mL1vQ6cT",
233-
"category": "FvI4Z2eb9sjL47Jt",
263+
"category": "VisGeneral",
234264
"name": "Plot type",
235265
"param_name": "plot_type",
236266
"description": "Plot type: bar or pie",
@@ -240,7 +270,7 @@
240270
},
241271
{
242272
"id": "t6P3mQ9vR1xK7nB2",
243-
"category": "FvI4Z2eb9sjL47Jt",
273+
"category": "VisGeneral",
244274
"name": "Plot titles fontsize",
245275
"param_name": "plot_titles_fontsize",
246276
"description": "Font size for plot titles",

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Code Ocean capsule - MOSuite - filter differential expression results
22

3+
## Development version
4+
5+
- Improved the Code Ocean parameter UI for the filter diff capsule (#2, @phoman14).
6+
37
## v2.0
48

59
- Standardize app panel across MOSuite capsules.
@@ -10,4 +14,4 @@
1014

1115
Initial release
1216

13-
<https://poc-nci.codeocean.io/capsule/0936928/tree/v1> `54a711a`
17+
<https://poc-nci.codeocean.io/capsule/0936928/tree/v1> `54a711a`

0 commit comments

Comments
 (0)