-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.graphql
357 lines (307 loc) · 10.1 KB
/
schema.graphql
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
type CogGroupRequirements {
name: String!
description: String
fields: [FieldInfo!]!
cog_types: [CogMetric!]!
}
type CogMetric {
name: String!
description: String!
func: function!
}
type FieldInfo {
dimension: FieldDimension
typeof: FieldTypeOf
}
enum FieldDimension {
X, Y, Z
OTHER,
ANY
}
enum FieldTypeOf {
CONTINUOUS
DISCRETE, DISCRETE_ORDERED, DISCRETE_UNORDERED
DATE
ANY
}
univariate_continuous
name = "continuous univariate metrics"
description = "univariate metrics for continuous data"
fields = [('X', 'CONTINUOUS')]
cog_types = [
('min', 'minimum of non NA data')
('max', 'maximum of non NA data')
('mean', 'mean of non NA data')
('median', 'median of non NA data')
('mode', 'mode of non NA data')
('var', 'variance of non NA data')
]
univariate_counts
name = "univariate count metrics"
description = "count metrics for univariate data"
fields = [('X', 'ANY'), ]
cog_types = [
('n', 'count of non NA data')
('n_na', 'count of NA data')
]
univariate_discrete
name = "discrete univariate metrics"
description = "univariate metrics for discrete data"
fields = [('X', 'DISCRETE')]
cog_types = [
('min_count_field', 'field with the minimum count')
('max_count_field', 'field with the maximum count')
]
univariate_boxpot
name = "boxplot metrics"
description = "univariate boxplot metrics for continuous data"
fields = [('X', 'CONTINUOUS')]
cog_types = [
('n_outlier_lower', 'count of lower outliers')
('min_non_outlier', 'minimum point')
('q1', 'first quartile value')
('median', 'median value')
('q3', 'third quartile value')
('max_non_outlier', 'maximum non outlier point')
('n_outlier_upper', 'count of upper outliers')
]
bivariate_continuous
name = "continuous bivariate metrics"
description = "bivariate metrics for continuous data"
fields = [('x', 'CONTINUOUS'), ('y', 'CONTINUOUS')]
cog_types = [
('covariance', 'count of non NA data')
('correlation', 'count of non NA data')
]
bivariate_scagnostics
name = "scagnostics"
description = "bivariate metrics for continuous data"
fields = [('x', 'CONTINUOUS'), ('y', 'CONTINUOUS')]
cog_types = [
('Outlying, 'proportion of the total edge length due to extremely long edges connected to points of single degree')
('Skewed', 'distribution of edge lengths of a minimum spanning tree gives us information about the relative density of points in a scattered configuration')
('Clumpy', 'An extremely skewed distribution of MST edge lengths does not necessarily indicate clustering of points. For this, we turn to another measure based on the MST: the Hartigan and Mo- hanty RUNT statistic [20]. This statistic is most easily un- derstood in terms of the single-linkage hierarchical clustering tree called a dendrogram.')
('Sparse', 'the 90% quantile of the edge lengths of the MST')
('Striated', 'sumation of angles over all adjacent edges of a MST')
('Convex', 'ratio of the area of the alpha hull and the area of the convex hull')
('Skinny', 'ratio of perimeter to area of a polygon measures, roughly, how skinny it is')
('Stringy', 'The stringy measure is based on the π index, which is the ratio of width to length of a network')
('Monotonic', 'squared Spearman corre- lation coefficient, which is a Pearson correlation on the ranks of x and y (corrected for ties)')
]
bivariate_counts
name = "continuous bivariate metrics"
description = "bivariate metrics for continuous data"
fields = [('X', 'ANY'), ('Y', 'ANY')]
cog_types = [
('n', 'count of non NA data')
('n_both_na', 'count of data where both X and Y are NA')
('n_or_na', 'count of data where either X or Y are NA')
('n_x_na', 'count of X NA data')
('n_y_na', 'count of Y NA data')
]
linear_model
name = "linear model"
description = "linear model metrics"
fields = [('X', 'CONTINUOUS'), ('Y', 'CONTINUOUS'), ?('GROUP', 'ANY')]
cog_types = [
('intercept', 'intercept of model')
(coef_i, 'beta value of coefficient i')
(coef_i_p_value, 'significance of coefficient i')
('r2', 'fraction of variance explained by the model')
('sigma', 'square root of the estimated residual variance')
('statistic', 'F-statistic of the model')
('p.value', 'p-value form the F test')
('df', 'degrees of freedom used by the coefficients')
('logLik', 'log-likelihood value under the model')
('AIC', 'Akaike's An Information Criterion')
('BIC', 'Schwarz's Bayesian criterion')
('deviance', 'quality-of-fit statistic of the model')
('df.residual', 'residual degrees of freedom')
('n_sig_cooks', 'number of significant cooks distance points. (sum(cooks_distance >= 4/n))')
('n_sig_hat', 'number of significant influence points. (sum(hat > 2 * p / n))')
('resid_shapiro', 'test for normality of residuals')
]
box_cox
name = "box cox"
description = "box cox transformation values"
fields = [('Y', 'CONTINUOUS')]
cog_types = [
('lower', 'lower of 95% interval')
('upper', 'upper of 95% interval')
]
grouped_counts
name = "grouped counts"
description = "count information for grouped data"
fields = [('OTHER', 'CONTINUOUS')]
cog_types = [
('min', 'minimum of non NA data')
('max', 'maximum of non NA data')
('mean', 'mean of non NA data')
('median', 'median of non NA data')
('mode', 'mode of non NA data')
('var', 'variance of non NA data')
]
grouped_testing
name = "grouped testing"
description = "test differences between univariate groups"
fields = [('ANY', 'CONTINUOUS')]
cog_types = [
('anova_f_value', 'F value of anova test')
('anova_p_value', 'p value of anova F value')
('sig_diff', 'number of significantly different pairs')
]
type PlotAutoCogs {
name: String!
description: String
example: Picture
cognostics: [String!]! # list of all cognostics names. ex: univariate_counts, univariate_continuous
}
Geoms
geom_bar geom_col stat_count
- Bars charts
* univariate_counts(x)
** grouped_counts(counts...)
** grouped_testing(x...)
geom_hex stat_bin_hex
- Hexagonal heatmap of 2d bin counts
geom_bin2d stat_bin_2d
- Heatmap of 2d bin counts
* bivariate_counts(x, y)
* chi_square_test(bin_counts)
geom_boxplot stat_boxplot
- A box and whiskers plot (in the style of Tukey)
* univariate_continuous(x)
* univariate_boxpot(x)
^ univariate_counts(x)
** grouped_counts(counts...)
** grouped_testing(x...)
** ('n_outlier_lower', 'count of lower outliers')
** ('min_non_outlier', 'minimum point')
** ('max_non_outlier', 'maximum non outlier point')
** ('n_outlier_upper', 'count of upper outliers')
geom_count stat_sum
- Count overlapping points
* expected count(x)
* bivariate_counts(x, y)
** grouped_counts(counts...)
geom_density_2d stat_density_2d
- Contours of a 2d density estimate
* max density(x, y)
* bivariate_continuous(x,y)
** grouped_counts(counts...)
** grouped_testing(y...)
geom_density stat_density
- Smoothed density estimates
geom_violin stat_ydensity
- Violin plot
* ('max_density', 'maximum density value')
* univariate_continuous(x)
** grouped_testing(x...)
** grouped_counts(counts...)
geom_dotplot
- Dot plot
* univariate_continuous(x)
* univariate_counts(x)
** grouped_counts(counts...)
** grouped_testing(x...)
geom_freqpoly geom_histogram stat_bin
- Histograms and frequency polygons
* univariate_continuous(x)
* univariate_counts(x)
* univariate_continuous(counts)
** grouped_counts(counts...)
** grouped_testing(x...)
geom_jitter
- Jittered points
* univariate_continuous(x)
* univariate_continuous(y)
* bivariate_continuous(x,y)
* bivariate_counts(x,y)
** grouped_counts(counts...)
** grouped_testing(y...)
geom_point
- Points
* univariate_continuous(x)
* univariate_continuous(y)
* bivariate_continuous(x,y)
* bivariate_counts(x,y)
* bivariate_scagnostics(x,y)
** grouped_counts(counts...)
** grouped_testing(y...)
geom_qq stat_qq
- A quantile-quantile plot
* sum of delta^2 | above
* sum of delta^2 | below
* sum of delta^2
* KS test (x, dist)
geom_quantile stat_quantile
- Quantile regression
^ contains N points
^ contains N points above
^ contains N points below
^ integral of area
** contains N points in group
** contains N points above in group
** contains N points below in group
** integral of area in group
** grouped_counts(counts...)
** grouped_testing(y...)
geom_rug
- Rug plots in the margins
* univariate_continuous(x)
* univariate_counts(x)
** grouped_counts(counts...)
** grouped_testing(x...)
geom_smooth stat_smooth
- Smoothed conditional means
* bivariate_counts(x,y)
^ linear_model(x, y)
** linear_model(x, y, group)
** group variable significance (intercept)
** group and x interaction significance (slope)
** grouped_counts(counts...)
geom_spoke
- Line segments parameterised by location, direction and distance
* univariate_continuous(angle) | angle is aes
* univariate_continuous(spoke) | spoke is aes
** grouped_counts(counts...)
** grouped_testing(angle...)
** grouped_testing(spoke...)
Maybe Nothing?
geom_contour stat_contour
- 2d contours of a 3d surface
geom_path geom_line geom_step
- Connect observations
geom_raster geom_rect geom_tile
- Rectangles
Nothing
geom_abline geom_hline geom_vline
- Reference lines: horizontal, vertical, and diagonal
geom_blank
- Draw nothing
geom_errorbarh
- Horizontal error bars
geom_crossbar geom_errorbar geom_linerange geom_pointrange
- Vertical intervals: lines, crossbars & errorbars
geom_map
- Polygons from a reference map
geom_polygon
- Polygons
geom_ribbon geom_area
- Ribbons and area plots
geom_segment geom_curve
- Line segments and curves
geom_label geom_text
- Text
stat_sf geom_sf coord_sf
- Visualise sf objects
type CogGroupAnswer {
requirement_name: String!
name: String!
answers: [CogValue!]!
}
type CogValue {
key: String!
description: String
value: Value
}