-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperator.json
More file actions
282 lines (282 loc) · 10.6 KB
/
operator.json
File metadata and controls
282 lines (282 loc) · 10.6 KB
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
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
{
"name": "GGRS Plot Operator",
"description": "High-performance faceted plotting using the GGRS library",
"tags": ["data visualisation", "export", "reporting", "workflow"],
"communicationProtocol": "grpc",
"authors": ["Tercen"],
"urls": ["https://github.com/tercen/ggrs_plot_operator"],
"container": "ghcr.io/tercen/ggrs_plot_operator",
"operatorSpec": {
"kind": "OperatorSpec",
"ontologyUri": "https://tercen.com/_ontology/tercen",
"ontologyVersion": "0.0.1",
"inputSpecs": [
{
"kind": "CrosstabSpec",
"metaFactors": [
{
"kind": "MetaFactor",
"name": "Page",
"type": "",
"description": "These factor(s) will be used to produce one plot file per category.",
"ontologyMapping": "page",
"crosstabMapping": "row",
"cardinality": "0..n",
"factors": []
},
{
"kind": "MetaFactor",
"name": "Rows",
"type": "",
"description": "Factor(s) to stratify per row.",
"ontologyMapping": "sample",
"crosstabMapping": "row",
"cardinality": "0..n",
"factors": []
},
{
"kind": "MetaFactor",
"name": "Columns",
"type": "",
"description": "Factor(s) to stratify per column.",
"ontologyMapping": "variable",
"crosstabMapping": "column",
"cardinality": "0..n",
"factors": []
}
],
"axis": [
{
"kind": "AxisSpec",
"metaFactors": [
{
"kind": "MetaFactor",
"name": "Y Axis",
"type": "numeric",
"description": "Factor to use for the graph's Y axis.",
"ontologyMapping": "y-axis",
"crosstabMapping": "y",
"cardinality": "1",
"factors": []
},
{
"kind": "MetaFactor",
"name": "X Axis",
"type": "",
"description": "Factor to use for the graph's X axis (optional).",
"ontologyMapping": "x-axis",
"crosstabMapping": "x",
"cardinality": "0..1",
"factors": []
},
{
"kind": "MetaFactor",
"name": "Colors",
"type": "",
"description": "Factor(s) to use as colors.",
"ontologyMapping": "variable",
"crosstabMapping": "color",
"cardinality": "0..n",
"factors": []
},
{
"kind": "MetaFactor",
"name": "Labels",
"type": "",
"description": "Factor(s) to use as labels.",
"ontologyMapping": "variable",
"crosstabMapping": "label",
"cardinality": "0..n",
"factors": []
}
]
}
]
}
],
"outputSpecs": []
},
"properties": [
{
"kind": "EnumeratedProperty",
"name": "theme",
"defaultValue": "gray",
"description": "Plot theme matching ggplot2: 'gray' (default with gray background), 'bw' (black and white), 'linedraw' (black lines on white), 'light' (light grey lines), 'dark' (dark background), 'minimal' (no decorations), 'classic' (axis lines, no grid), 'void' (completely empty), 'publish' (clean white background, no grid).",
"values": ["gray", "bw", "linedraw", "light", "dark", "minimal", "classic", "void", "publish"]
},
{
"kind": "StringProperty",
"name": "plot.width",
"defaultValue": "",
"description": "Plot width in pixels. If left empty or 'auto', dimensions will be derived from the crosstab/facet layout."
},
{
"kind": "StringProperty",
"name": "plot.height",
"defaultValue": "",
"description": "Plot height in pixels. If left empty or 'auto', dimensions will be derived from the crosstab/facet layout."
},
{
"kind": "EnumeratedProperty",
"name": "backend",
"defaultValue": "cpu",
"description": "Render backend: 'cpu' (Cairo) or 'gpu' (OpenGL). GPU is ~10x faster but uses 3x more memory.",
"values": ["cpu", "gpu"]
},
{
"kind": "EnumeratedProperty",
"name": "output.format",
"defaultValue": "png",
"description": "Output format: 'png' (raster), 'svg' (editable vector), or 'hsvg' (hybrid: vector labels + rasterized data for Inkscape editing).",
"values": ["png", "svg", "hsvg"]
},
{
"kind": "EnumeratedProperty",
"name": "legend.position",
"defaultValue": "right",
"description": "Legend position: where the legend appears relative to the plot.",
"values": ["right", "left", "top", "bottom", "inside", "none"]
},
{
"kind": "StringProperty",
"name": "legend.position.inside",
"defaultValue": "",
"description": "Legend coordinates when position='inside'. Format: 'x,y' where x,y ∈ [0,1]. Example: '0.95,0.05' for bottom-right. Only used when legend.position='inside'."
},
{
"kind": "StringProperty",
"name": "legend.justification",
"defaultValue": "",
"description": "Legend anchor point. Format: 'x,y' where x,y ∈ [0,1]. Controls which corner of the legend aligns with the position. (0,0)=bottom-left, (1,1)=top-right, (0.5,0.5)=center. For left/right: y controls vertical alignment. For top/bottom: x controls horizontal alignment."
},
{
"kind": "EnumeratedProperty",
"name": "png.compression",
"defaultValue": "fast",
"description": "PNG compression level: 'fast' (~30% speedup, +15% file size), 'default' (balanced), or 'best' (~40% slower, -10% file size).",
"values": ["fast", "default", "best"]
},
{
"kind": "StringProperty",
"name": "plot.title",
"defaultValue": "",
"description": "Plot title text. Leave empty for no title."
},
{
"kind": "EnumeratedProperty",
"name": "plot.title.position",
"defaultValue": "top",
"description": "Plot title position: where the title appears relative to the plot.",
"values": ["top", "bottom", "left", "right"]
},
{
"kind": "StringProperty",
"name": "plot.title.justification",
"defaultValue": "0.5,0.5",
"description": "Plot title justification (anchor point). Format: 'x,y' where x,y ∈ [0,1]. Controls which point of the title aligns with the position. (0,0)=bottom-left, (1,1)=top-right, (0.5,0.5)=center."
},
{
"kind": "StringProperty",
"name": "axis.x.label",
"defaultValue": "",
"description": "X-axis label displayed at the bottom center of the plot. Leave empty for no label."
},
{
"kind": "StringProperty",
"name": "axis.y.label",
"defaultValue": "",
"description": "Y-axis label displayed on the left side of the plot (rotated 270°, reads bottom-to-top). Leave empty for no label."
},
{
"kind": "StringProperty",
"name": "point.size.multiplier",
"defaultValue": "1",
"description": "Multiplier for point/dot size. The crosstab point size (1-10) is multiplied by this value. Use values > 1 for larger dots on big plots, < 1 for smaller dots. Default: 1."
},
{
"kind": "StringProperty",
"name": "opacity",
"defaultValue": "1",
"description": "Opacity for all data elements (points, lines, tiles, bars). Range: 0.0 (transparent) to 1.0 (opaque). Default: 1.0."
},
{
"kind": "StringProperty",
"name": "axis.x.tick.rotation",
"defaultValue": "0",
"description": "X-axis tick label rotation in degrees. Common values: 0 (horizontal), 45 (diagonal), 90 (vertical). Default: 0."
},
{
"kind": "StringProperty",
"name": "axis.y.tick.rotation",
"defaultValue": "0",
"description": "Y-axis tick label rotation in degrees. Common values: 0 (horizontal), 90 (vertical). Default: 0."
},
{
"kind": "BooleanProperty",
"name": "grid.major.disable",
"defaultValue": false,
"description": "Disable major grid lines."
},
{
"kind": "BooleanProperty",
"name": "grid.minor.disable",
"defaultValue": false,
"description": "Disable minor grid lines."
},
{
"kind": "BooleanProperty",
"name": "axis.lines.disable",
"defaultValue": false,
"description": "Disable axis lines, ticks, and panel border."
},
{
"kind": "BooleanProperty",
"name": "text.disable",
"defaultValue": false,
"description": "Disable all text labels (axis titles, tick labels, plot title)."
},
{
"kind": "StringProperty",
"name": "plot.title.font.size",
"defaultValue": "",
"description": "Plot title font size in points. Empty = use theme default (~13.2pt)."
},
{
"kind": "StringProperty",
"name": "axis.label.font.size",
"defaultValue": "",
"description": "Axis label font size in points. Empty = use theme default (~11pt)."
},
{
"kind": "StringProperty",
"name": "axis.tick.font.size",
"defaultValue": "",
"description": "Tick label font size in points. Empty = use theme default (~8.8pt)."
},
{
"kind": "StringProperty",
"name": "axis.line.width",
"defaultValue": "",
"description": "Panel border/axis line width in points. Empty = use theme default (0.5pt)."
},
{
"kind": "StringProperty",
"name": "filename",
"defaultValue": "plot",
"description": "Output filename (without extension). For multi-page plots, page number is appended as a suffix (e.g., 'myplot' becomes 'myplot_p1.png', 'myplot_p2.png'). Default: 'plot'."
},
{
"kind": "EnumeratedProperty",
"name": "heatmap.cell.aggregation",
"defaultValue": "last",
"description": "How to aggregate multiple data points in the same heatmap cell. 'last' matches Tercen's default behavior (last point wins). 'first' uses the first point. 'mean' computes the average. 'median' computes the median.",
"values": ["last", "first", "mean", "median"]
},
{
"kind": "StringProperty",
"name": "point.shapes",
"defaultValue": "19",
"description": "Point shapes per layer, semicolon-separated (e.g., '19;15;17'). Cycles if fewer shapes than layers. Common shapes: 19=filled circle (default), 15=filled square, 17=filled triangle, 18=filled diamond, 3=plus, 4=cross. Search 'ggplot2 pch' for all 26 shapes (0-25)."
}
]
}