@sjcrh/proteinpaint-types 2.148.0 → 2.149.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ var diffExpPayload = {
22
22
  var validDERequest = (input) => {
23
23
  const errors = [];
24
24
  const __is = (input2) => {
25
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && "number" === typeof input3.min_count && "number" === typeof input3.min_total_count && ("text" === input3.storage_type || "HDF5" === input3.storage_type) && (void 0 === input3.method || "string" === typeof input3.method) && true && true;
25
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && "number" === typeof input3.min_count && "number" === typeof input3.min_total_count && "number" === typeof input3.cpm_cutoff && ("text" === input3.storage_type || "HDF5" === input3.storage_type) && (void 0 === input3.method || "string" === typeof input3.method) && true && true;
26
26
  return "object" === typeof input2 && null !== input2 && $io0(input2);
27
27
  };
28
28
  if (false === __is(input)) {
@@ -44,6 +44,10 @@ var validDERequest = (input) => {
44
44
  path: _path2 + ".min_total_count",
45
45
  expected: "number",
46
46
  value: input3.min_total_count
47
+ }), "number" === typeof input3.cpm_cutoff || $report(_exceptionable2, {
48
+ path: _path2 + ".cpm_cutoff",
49
+ expected: "number",
50
+ value: input3.cpm_cutoff
47
51
  }), "text" === input3.storage_type || "HDF5" === input3.storage_type || $report(_exceptionable2, {
48
52
  path: _path2 + ".storage_type",
49
53
  expected: '("HDF5" | "text")',
@@ -74,7 +78,7 @@ var validDERequest = (input) => {
74
78
  var validDEResponse = (input) => {
75
79
  const errors = [];
76
80
  const __is = (input2) => {
77
- const $io0 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.sample_size1 && "number" === typeof input3.sample_size2 && "string" === typeof input3.method && (void 0 === input3.images || Array.isArray(input3.images) && input3.images.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)));
81
+ const $io0 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.sample_size1 && "number" === typeof input3.sample_size2 && "string" === typeof input3.method && (void 0 === input3.images || Array.isArray(input3.images) && input3.images.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.bcv || "number" === typeof input3.bcv);
78
82
  const $io1 = (input3) => "number" === typeof input3.adjusted_p_value && "number" === typeof input3.original_p_value && "number" === typeof input3.fold_change && "string" === typeof input3.gene_id && "string" === typeof input3.gene_name;
79
83
  const $io2 = (input3) => "string" === typeof input3.src && "number" === typeof input3.size && "string" === typeof input3.key;
80
84
  return "object" === typeof input2 && null !== input2 && $io0(input2);
@@ -126,6 +130,10 @@ var validDEResponse = (input) => {
126
130
  path: _path2 + ".images",
127
131
  expected: "(Array<DEImage> | undefined)",
128
132
  value: input3.images
133
+ }), void 0 === input3.bcv || "number" === typeof input3.bcv || $report(_exceptionable2, {
134
+ path: _path2 + ".bcv",
135
+ expected: "(number | undefined)",
136
+ value: input3.bcv
129
137
  })].every((flag) => flag);
130
138
  const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.adjusted_p_value || $report(_exceptionable2, {
131
139
  path: _path2 + ".adjusted_p_value",
@@ -0,0 +1,386 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-YNHC5SXO.js";
5
+
6
+ // dist/termdb.sampleScatter.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/termdb.sampleScatter.ts
10
+ var termdbSampleScatterPayload = {
11
+ request: {
12
+ typeId: "TermdbSampleScatterRequest"
13
+ },
14
+ response: {
15
+ typeId: "TermdbSampleScatterResponse"
16
+ }
17
+ };
18
+
19
+ // dist/termdb.sampleScatter.ts
20
+ var validTermdbSampleScatterRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && true && true && true && (void 0 === input3.coordTWs || Array.isArray(input3.coordTWs)) && (void 0 === input3.plotName || "string" === typeof input3.plotName) && true && true && true;
24
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
25
+ };
26
+ if (false === __is(input)) {
27
+ const $report = import_typia.createValidate.report(errors);
28
+ ((input2, _path, _exceptionable = true) => {
29
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
30
+ path: _path2 + ".genome",
31
+ expected: "string",
32
+ value: input3.genome
33
+ }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
34
+ path: _path2 + ".dslabel",
35
+ expected: "string",
36
+ value: input3.dslabel
37
+ }), true, true, true, true, void 0 === input3.coordTWs || Array.isArray(input3.coordTWs) || $report(_exceptionable2, {
38
+ path: _path2 + ".coordTWs",
39
+ expected: "(Array<any> | undefined)",
40
+ value: input3.coordTWs
41
+ }), void 0 === input3.plotName || "string" === typeof input3.plotName || $report(_exceptionable2, {
42
+ path: _path2 + ".plotName",
43
+ expected: "(string | undefined)",
44
+ value: input3.plotName
45
+ }), true, true, true].every((flag) => flag);
46
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
47
+ path: _path + "",
48
+ expected: "TermdbSampleScatterRequest",
49
+ value: input2
50
+ })) && $vo0(input2, _path + "", true) || $report(true, {
51
+ path: _path + "",
52
+ expected: "TermdbSampleScatterRequest",
53
+ value: input2
54
+ });
55
+ })(input, "$input", true);
56
+ }
57
+ const success = 0 === errors.length;
58
+ return {
59
+ success,
60
+ errors,
61
+ data: success ? input : void 0
62
+ };
63
+ };
64
+ var validTermdbSampleScatterResponse = (input) => {
65
+ const errors = [];
66
+ const __is = (input2) => {
67
+ const $join = import_typia.createValidate.join;
68
+ const $io0 = (input3) => "object" === typeof input3.range && null !== input3.range && ("number" === typeof input3.range.xMin && "number" === typeof input3.range.xMax && "number" === typeof input3.range.yMin && "number" === typeof input3.range.yMax) && ("object" === typeof input3.result && null !== input3.result && false === Array.isArray(input3.result) && $io2(input3.result));
69
+ const $io2 = (input3) => Object.keys(input3).every((key) => {
70
+ const value = input3[key];
71
+ if (void 0 === value)
72
+ return true;
73
+ if (RegExp(/(.*)/).test(key))
74
+ return "object" === typeof value && null !== value && $io3(value);
75
+ return true;
76
+ });
77
+ const $io3 = (input3) => Array.isArray(input3.colorLegend) && input3.colorLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io4(elem[1])))) && ("object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) && $io5(input3.colorMap)) && (Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input3.shapeLegend) && input3.shapeLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io8(elem[1]))))) && ("object" === typeof input3.shapeMap && null !== input3.shapeMap && false === Array.isArray(input3.shapeMap) && $io9(input3.shapeMap));
78
+ const $io4 = (input3) => "string" === typeof input3.color && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
79
+ const $io5 = (input3) => Object.keys(input3).every((key) => {
80
+ const value = input3[key];
81
+ if (void 0 === value)
82
+ return true;
83
+ if (RegExp(/(.*)/).test(key))
84
+ return "object" === typeof value && null !== value && ("string" === typeof value.color && "number" === typeof value.sampleCount && "string" === typeof value.key);
85
+ return true;
86
+ });
87
+ const $io6 = (input3) => "string" === typeof input3.category && "string" === typeof input3.sample && ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) && $io7(input3.info)) && "string" === typeof input3.shape && "number" === typeof input3.x && "number" === typeof input3.y && "number" === typeof input3.z;
88
+ const $io7 = (input3) => Object.keys(input3).every((key) => {
89
+ const value = input3[key];
90
+ if (void 0 === value)
91
+ return true;
92
+ if (RegExp(/(.*)/).test(key))
93
+ return true;
94
+ return true;
95
+ });
96
+ const $io8 = (input3) => "number" === typeof input3.shape && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
97
+ const $io9 = (input3) => Object.keys(input3).every((key) => {
98
+ const value = input3[key];
99
+ if (void 0 === value)
100
+ return true;
101
+ if (RegExp(/(.*)/).test(key))
102
+ return "object" === typeof value && null !== value && ("number" === typeof value.shape && "number" === typeof value.sampleCount && "string" === typeof value.key);
103
+ return true;
104
+ });
105
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
106
+ };
107
+ if (false === __is(input)) {
108
+ const $report = import_typia.createValidate.report(errors);
109
+ ((input2, _path, _exceptionable = true) => {
110
+ const $join = import_typia.createValidate.join;
111
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.range && null !== input3.range || $report(_exceptionable2, {
112
+ path: _path2 + ".range",
113
+ expected: "__type",
114
+ value: input3.range
115
+ })) && $vo1(input3.range, _path2 + ".range", _exceptionable2) || $report(_exceptionable2, {
116
+ path: _path2 + ".range",
117
+ expected: "__type",
118
+ value: input3.range
119
+ }), ("object" === typeof input3.result && null !== input3.result && false === Array.isArray(input3.result) || $report(_exceptionable2, {
120
+ path: _path2 + ".result",
121
+ expected: "ScatterResult",
122
+ value: input3.result
123
+ })) && $vo2(input3.result, _path2 + ".result", _exceptionable2) || $report(_exceptionable2, {
124
+ path: _path2 + ".result",
125
+ expected: "ScatterResult",
126
+ value: input3.result
127
+ })].every((flag) => flag);
128
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.xMin || $report(_exceptionable2, {
129
+ path: _path2 + ".xMin",
130
+ expected: "number",
131
+ value: input3.xMin
132
+ }), "number" === typeof input3.xMax || $report(_exceptionable2, {
133
+ path: _path2 + ".xMax",
134
+ expected: "number",
135
+ value: input3.xMax
136
+ }), "number" === typeof input3.yMin || $report(_exceptionable2, {
137
+ path: _path2 + ".yMin",
138
+ expected: "number",
139
+ value: input3.yMin
140
+ }), "number" === typeof input3.yMax || $report(_exceptionable2, {
141
+ path: _path2 + ".yMax",
142
+ expected: "number",
143
+ value: input3.yMax
144
+ })].every((flag) => flag);
145
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
146
+ const value = input3[key];
147
+ if (void 0 === value)
148
+ return true;
149
+ if (RegExp(/(.*)/).test(key))
150
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
151
+ path: _path2 + $join(key),
152
+ expected: "__type.o1",
153
+ value
154
+ })) && $vo3(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
155
+ path: _path2 + $join(key),
156
+ expected: "__type.o1",
157
+ value
158
+ });
159
+ return true;
160
+ }).every((flag) => flag)].every((flag) => flag);
161
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.colorLegend) || $report(_exceptionable2, {
162
+ path: _path2 + ".colorLegend",
163
+ expected: "Array<ColorLegendEntry>",
164
+ value: input3.colorLegend
165
+ })) && input3.colorLegend.map((elem, _index1) => (Array.isArray(elem) || $report(_exceptionable2, {
166
+ path: _path2 + ".colorLegend[" + _index1 + "]",
167
+ expected: "ColorLegendEntry",
168
+ value: elem
169
+ })) && ((elem.length === 2 || $report(_exceptionable2, {
170
+ path: _path2 + ".colorLegend[" + _index1 + "]",
171
+ expected: "[string, ColorObject]",
172
+ value: elem
173
+ })) && [
174
+ "string" === typeof elem[0] || $report(_exceptionable2, {
175
+ path: _path2 + ".colorLegend[" + _index1 + "][0]",
176
+ expected: "string",
177
+ value: elem[0]
178
+ }),
179
+ ("object" === typeof elem[1] && null !== elem[1] || $report(_exceptionable2, {
180
+ path: _path2 + ".colorLegend[" + _index1 + "][1]",
181
+ expected: "ColorObject",
182
+ value: elem[1]
183
+ })) && $vo4(elem[1], _path2 + ".colorLegend[" + _index1 + "][1]", _exceptionable2) || $report(_exceptionable2, {
184
+ path: _path2 + ".colorLegend[" + _index1 + "][1]",
185
+ expected: "ColorObject",
186
+ value: elem[1]
187
+ })
188
+ ].every((flag) => flag)) || $report(_exceptionable2, {
189
+ path: _path2 + ".colorLegend[" + _index1 + "]",
190
+ expected: "ColorLegendEntry",
191
+ value: elem
192
+ })).every((flag) => flag) || $report(_exceptionable2, {
193
+ path: _path2 + ".colorLegend",
194
+ expected: "Array<ColorLegendEntry>",
195
+ value: input3.colorLegend
196
+ }), ("object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) || $report(_exceptionable2, {
197
+ path: _path2 + ".colorMap",
198
+ expected: "ColorMap",
199
+ value: input3.colorMap
200
+ })) && $vo5(input3.colorMap, _path2 + ".colorMap", _exceptionable2) || $report(_exceptionable2, {
201
+ path: _path2 + ".colorMap",
202
+ expected: "ColorMap",
203
+ value: input3.colorMap
204
+ }), (Array.isArray(input3.samples) || $report(_exceptionable2, {
205
+ path: _path2 + ".samples",
206
+ expected: "Array<ScatterSample>",
207
+ value: input3.samples
208
+ })) && input3.samples.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
209
+ path: _path2 + ".samples[" + _index2 + "]",
210
+ expected: "ScatterSample",
211
+ value: elem
212
+ })) && $vo6(elem, _path2 + ".samples[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
213
+ path: _path2 + ".samples[" + _index2 + "]",
214
+ expected: "ScatterSample",
215
+ value: elem
216
+ })).every((flag) => flag) || $report(_exceptionable2, {
217
+ path: _path2 + ".samples",
218
+ expected: "Array<ScatterSample>",
219
+ value: input3.samples
220
+ }), (Array.isArray(input3.shapeLegend) || $report(_exceptionable2, {
221
+ path: _path2 + ".shapeLegend",
222
+ expected: "Array<ShapeLegendEntry>",
223
+ value: input3.shapeLegend
224
+ })) && input3.shapeLegend.map((elem, _index3) => (Array.isArray(elem) || $report(_exceptionable2, {
225
+ path: _path2 + ".shapeLegend[" + _index3 + "]",
226
+ expected: "ShapeLegendEntry",
227
+ value: elem
228
+ })) && ((elem.length === 2 || $report(_exceptionable2, {
229
+ path: _path2 + ".shapeLegend[" + _index3 + "]",
230
+ expected: "[string, ShapeObject]",
231
+ value: elem
232
+ })) && [
233
+ "string" === typeof elem[0] || $report(_exceptionable2, {
234
+ path: _path2 + ".shapeLegend[" + _index3 + "][0]",
235
+ expected: "string",
236
+ value: elem[0]
237
+ }),
238
+ ("object" === typeof elem[1] && null !== elem[1] || $report(_exceptionable2, {
239
+ path: _path2 + ".shapeLegend[" + _index3 + "][1]",
240
+ expected: "ShapeObject",
241
+ value: elem[1]
242
+ })) && $vo8(elem[1], _path2 + ".shapeLegend[" + _index3 + "][1]", _exceptionable2) || $report(_exceptionable2, {
243
+ path: _path2 + ".shapeLegend[" + _index3 + "][1]",
244
+ expected: "ShapeObject",
245
+ value: elem[1]
246
+ })
247
+ ].every((flag) => flag)) || $report(_exceptionable2, {
248
+ path: _path2 + ".shapeLegend[" + _index3 + "]",
249
+ expected: "ShapeLegendEntry",
250
+ value: elem
251
+ })).every((flag) => flag) || $report(_exceptionable2, {
252
+ path: _path2 + ".shapeLegend",
253
+ expected: "Array<ShapeLegendEntry>",
254
+ value: input3.shapeLegend
255
+ }), ("object" === typeof input3.shapeMap && null !== input3.shapeMap && false === Array.isArray(input3.shapeMap) || $report(_exceptionable2, {
256
+ path: _path2 + ".shapeMap",
257
+ expected: "ShapeMap",
258
+ value: input3.shapeMap
259
+ })) && $vo9(input3.shapeMap, _path2 + ".shapeMap", _exceptionable2) || $report(_exceptionable2, {
260
+ path: _path2 + ".shapeMap",
261
+ expected: "ShapeMap",
262
+ value: input3.shapeMap
263
+ })].every((flag) => flag);
264
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.color || $report(_exceptionable2, {
265
+ path: _path2 + ".color",
266
+ expected: "string",
267
+ value: input3.color
268
+ }), "number" === typeof input3.sampleCount || $report(_exceptionable2, {
269
+ path: _path2 + ".sampleCount",
270
+ expected: "number",
271
+ value: input3.sampleCount
272
+ }), "string" === typeof input3.key || $report(_exceptionable2, {
273
+ path: _path2 + ".key",
274
+ expected: "string",
275
+ value: input3.key
276
+ })].every((flag) => flag);
277
+ const $vo5 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
278
+ const value = input3[key];
279
+ if (void 0 === value)
280
+ return true;
281
+ if (RegExp(/(.*)/).test(key))
282
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
283
+ path: _path2 + $join(key),
284
+ expected: "ColorObject",
285
+ value
286
+ })) && $vo4(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
287
+ path: _path2 + $join(key),
288
+ expected: "ColorObject",
289
+ value
290
+ });
291
+ return true;
292
+ }).every((flag) => flag)].every((flag) => flag);
293
+ const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.category || $report(_exceptionable2, {
294
+ path: _path2 + ".category",
295
+ expected: "string",
296
+ value: input3.category
297
+ }), "string" === typeof input3.sample || $report(_exceptionable2, {
298
+ path: _path2 + ".sample",
299
+ expected: "string",
300
+ value: input3.sample
301
+ }), ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) || $report(_exceptionable2, {
302
+ path: _path2 + ".info",
303
+ expected: "__type.o2",
304
+ value: input3.info
305
+ })) && $vo7(input3.info, _path2 + ".info", _exceptionable2) || $report(_exceptionable2, {
306
+ path: _path2 + ".info",
307
+ expected: "__type.o2",
308
+ value: input3.info
309
+ }), "string" === typeof input3.shape || $report(_exceptionable2, {
310
+ path: _path2 + ".shape",
311
+ expected: "string",
312
+ value: input3.shape
313
+ }), "number" === typeof input3.x || $report(_exceptionable2, {
314
+ path: _path2 + ".x",
315
+ expected: "number",
316
+ value: input3.x
317
+ }), "number" === typeof input3.y || $report(_exceptionable2, {
318
+ path: _path2 + ".y",
319
+ expected: "number",
320
+ value: input3.y
321
+ }), "number" === typeof input3.z || $report(_exceptionable2, {
322
+ path: _path2 + ".z",
323
+ expected: "number",
324
+ value: input3.z
325
+ })].every((flag) => flag);
326
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
327
+ const value = input3[key];
328
+ if (void 0 === value)
329
+ return true;
330
+ if (RegExp(/(.*)/).test(key))
331
+ return true;
332
+ return true;
333
+ }).every((flag) => flag)].every((flag) => flag);
334
+ const $vo8 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.shape || $report(_exceptionable2, {
335
+ path: _path2 + ".shape",
336
+ expected: "number",
337
+ value: input3.shape
338
+ }), "number" === typeof input3.sampleCount || $report(_exceptionable2, {
339
+ path: _path2 + ".sampleCount",
340
+ expected: "number",
341
+ value: input3.sampleCount
342
+ }), "string" === typeof input3.key || $report(_exceptionable2, {
343
+ path: _path2 + ".key",
344
+ expected: "string",
345
+ value: input3.key
346
+ })].every((flag) => flag);
347
+ const $vo9 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
348
+ const value = input3[key];
349
+ if (void 0 === value)
350
+ return true;
351
+ if (RegExp(/(.*)/).test(key))
352
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
353
+ path: _path2 + $join(key),
354
+ expected: "ShapeObject",
355
+ value
356
+ })) && $vo8(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
357
+ path: _path2 + $join(key),
358
+ expected: "ShapeObject",
359
+ value
360
+ });
361
+ return true;
362
+ }).every((flag) => flag)].every((flag) => flag);
363
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
364
+ path: _path + "",
365
+ expected: "TermdbSampleScatterResponse",
366
+ value: input2
367
+ })) && $vo0(input2, _path + "", true) || $report(true, {
368
+ path: _path + "",
369
+ expected: "TermdbSampleScatterResponse",
370
+ value: input2
371
+ });
372
+ })(input, "$input", true);
373
+ }
374
+ const success = 0 === errors.length;
375
+ return {
376
+ success,
377
+ errors,
378
+ data: success ? input : void 0
379
+ };
380
+ };
381
+
382
+ export {
383
+ termdbSampleScatterPayload,
384
+ validTermdbSampleScatterRequest,
385
+ validTermdbSampleScatterResponse
386
+ };
@@ -69,7 +69,7 @@ var validWSImagesRequest = (input) => {
69
69
  var validWSImagesResponse = (input) => {
70
70
  const errors = [];
71
71
  const __is = (input2) => {
72
- const $io0 = (input3) => (void 0 === input3.wsiSessionId || "string" === typeof input3.wsiSessionId) && (void 0 === input3.overlays || Array.isArray(input3.overlays) && input3.overlays.every((elem) => "object" === typeof elem && null !== elem && $io1(elem))) && (Array.isArray(input3.slide_dimensions) && input3.slide_dimensions.every((elem) => "number" === typeof elem)) && "string" === typeof input3.status && (void 0 === input3.error || "string" === typeof input3.error);
72
+ const $io0 = (input3) => (void 0 === input3.wsiSessionId || "string" === typeof input3.wsiSessionId) && (void 0 === input3.overlays || Array.isArray(input3.overlays) && input3.overlays.every((elem) => "object" === typeof elem && null !== elem && $io1(elem))) && (Array.isArray(input3.slide_dimensions) && input3.slide_dimensions.every((elem) => "number" === typeof elem)) && (Array.isArray(input3.mpp) && input3.mpp.every((elem) => "number" === typeof elem)) && "string" === typeof input3.status && (void 0 === input3.error || "string" === typeof input3.error);
73
73
  const $io1 = (input3) => "string" === typeof input3.layerNumber && "string" === typeof input3.predictionOverlayType;
74
74
  return "object" === typeof input2 && null !== input2 && $io0(input2);
75
75
  };
@@ -108,6 +108,18 @@ var validWSImagesResponse = (input) => {
108
108
  path: _path2 + ".slide_dimensions",
109
109
  expected: "Array<number>",
110
110
  value: input3.slide_dimensions
111
+ }), (Array.isArray(input3.mpp) || $report(_exceptionable2, {
112
+ path: _path2 + ".mpp",
113
+ expected: "Array<number>",
114
+ value: input3.mpp
115
+ })) && input3.mpp.map((elem, _index3) => "number" === typeof elem || $report(_exceptionable2, {
116
+ path: _path2 + ".mpp[" + _index3 + "]",
117
+ expected: "number",
118
+ value: elem
119
+ })).every((flag) => flag) || $report(_exceptionable2, {
120
+ path: _path2 + ".mpp",
121
+ expected: "Array<number>",
122
+ value: input3.mpp
111
123
  }), "string" === typeof input3.status || $report(_exceptionable2, {
112
124
  path: _path2 + ".status",
113
125
  expected: "string",
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ import {
2
+ termdbTopVariablyExpressedGenesPayload,
3
+ validTermdbTopVariablyExpressedGenesRequest,
4
+ validTermdbTopVariablyExpressedGenesResponse
5
+ } from "./chunk-OZ3CVAFP.js";
1
6
  import {
2
7
  validViolinRequest,
3
8
  validViolinResponse,
@@ -12,12 +17,17 @@ import {
12
17
  validWSImagesRequest,
13
18
  validWSImagesResponse,
14
19
  wsImagesPayload
15
- } from "./chunk-CT6IBFVP.js";
20
+ } from "./chunk-VUKRI3TG.js";
16
21
  import {
17
22
  validWSISamplesRequest,
18
23
  validWSISamplesResponse,
19
24
  wsiSamplesPayload
20
25
  } from "./chunk-2744ACBX.js";
26
+ import {
27
+ termdbSingleSampleMutationPayload,
28
+ validTermdbSingleSampleMutationRequest,
29
+ validTermdbSingleSampleMutationResponse
30
+ } from "./chunk-UGYLBYUU.js";
21
31
  import {
22
32
  termdbSingleCellDEgenesPayload,
23
33
  validTermdbSingleCellDEgenesRequest,
@@ -53,11 +63,6 @@ import {
53
63
  validTermdbTopTermsByTypeRequest,
54
64
  validTermdbTopTermsByTypeResponse
55
65
  } from "./chunk-KQNLROUN.js";
56
- import {
57
- termdbTopVariablyExpressedGenesPayload,
58
- validTermdbTopVariablyExpressedGenesRequest,
59
- validTermdbTopVariablyExpressedGenesResponse
60
- } from "./chunk-OZ3CVAFP.js";
61
66
  import {
62
67
  FilterTermValuesPayload,
63
68
  validFilterTermValuesRequest,
@@ -94,15 +99,15 @@ import {
94
99
  validTermdbSampleImagesResponse
95
100
  } from "./chunk-U3BTVE5T.js";
96
101
  import {
97
- termdbSingleSampleMutationPayload,
98
- validTermdbSingleSampleMutationRequest,
99
- validTermdbSingleSampleMutationResponse
100
- } from "./chunk-UGYLBYUU.js";
102
+ termdbSampleScatterPayload,
103
+ validTermdbSampleScatterRequest,
104
+ validTermdbSampleScatterResponse
105
+ } from "./chunk-OSBVSZBB.js";
101
106
  import {
102
107
  diffExpPayload,
103
108
  validDERequest,
104
109
  validDEResponse
105
- } from "./chunk-CP26DR4V.js";
110
+ } from "./chunk-FIQM2YN4.js";
106
111
  import {
107
112
  boxplotPayload,
108
113
  validBoxPlotRequest,
@@ -342,6 +347,7 @@ export {
342
347
  termdbCohortSummaryPayload,
343
348
  termdbCohortsPayload,
344
349
  termdbSampleImagesPayload,
350
+ termdbSampleScatterPayload,
345
351
  termdbSingleCellDEgenesPayload,
346
352
  termdbSingleCellDataPayload,
347
353
  termdbSingleCellSamplesPayload,
@@ -443,6 +449,8 @@ export {
443
449
  validTermdbCohortsResponse,
444
450
  validTermdbSampleImagesRequest,
445
451
  validTermdbSampleImagesResponse,
452
+ validTermdbSampleScatterRequest,
453
+ validTermdbSampleScatterResponse,
446
454
  validTermdbSingleCellDEgenesRequest,
447
455
  validTermdbSingleCellDEgenesResponse,
448
456
  validTermdbSingleCellDataRequest,
package/dist/termdb.DE.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  diffExpPayload,
3
3
  validDERequest,
4
4
  validDEResponse
5
- } from "./chunk-CP26DR4V.js";
5
+ } from "./chunk-FIQM2YN4.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  diffExpPayload,
@@ -0,0 +1,11 @@
1
+ import {
2
+ termdbSampleScatterPayload,
3
+ validTermdbSampleScatterRequest,
4
+ validTermdbSampleScatterResponse
5
+ } from "./chunk-OSBVSZBB.js";
6
+ import "./chunk-YNHC5SXO.js";
7
+ export {
8
+ termdbSampleScatterPayload,
9
+ validTermdbSampleScatterRequest,
10
+ validTermdbSampleScatterResponse
11
+ };
package/dist/wsimages.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  validWSImagesRequest,
3
3
  validWSImagesResponse,
4
4
  wsImagesPayload
5
- } from "./chunk-CT6IBFVP.js";
5
+ } from "./chunk-VUKRI3TG.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  validWSImagesRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.148.0",
3
+ "version": "2.149.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -704,8 +704,6 @@ type RnaseqGeneCount = {
704
704
  samplesFile?: string
705
705
  /** Storage_type for storing data (HDF5) */
706
706
  storage_type: 'HDF5'
707
- /** temporary h5 file format flag */
708
- newformat?: boolean
709
707
  }
710
708
 
711
709
  /** the metabolite query */
@@ -1305,7 +1303,7 @@ type Matrix = {
1305
1303
  /** filter to hide categories or mclass, e.g. hide male, hide MISSENSE */
1306
1304
  legendValueFilter?: any
1307
1305
  /** local filter to limit samples in matrix/hiercluster, merged with this.state.termfilter.filter when querying server */
1308
- localFilter?: any
1306
+ filter?: any
1309
1307
  /** matrix criteria for a CNV alteration */
1310
1308
  cnvCutoffs?: any
1311
1309
  }
package/src/index.ts CHANGED
@@ -50,6 +50,7 @@ export * from './routes/termdb.percentile.ts'
50
50
  export * from './routes/termdb.rootterm.ts'
51
51
  export * from './routes/termdb.termchildren.ts'
52
52
  export * from './routes/termdb.sampleImages.ts'
53
+ export * from './routes/termdb.sampleScatter.ts'
53
54
  export * from './routes/termdb.singlecellData.ts'
54
55
  export * from './routes/termdb.singlecellDEgenes.ts'
55
56
  export * from './routes/termdb.singlecellSamples.ts'
@@ -11,6 +11,8 @@ export type DERequest = {
11
11
  min_count: number
12
12
  /** Minimum total read count required for each sample */
13
13
  min_total_count: number
14
+ /** Minimum normalized expression threshold to retain only genes with sufficient expression */
15
+ cpm_cutoff: number
14
16
  /** Storage_type for storing data. Will deprecate text files */
15
17
  storage_type: 'text' | 'HDF5'
16
18
  /** Method of DE used wilcoxon/edgeR */
@@ -64,6 +66,8 @@ export type DEResponse = {
64
66
  /** QL: Image describing the quality of the fitting from QL pipeline, this is only generated for edgeR not for wilcoxon method */
65
67
  /** MDS: Image showing the MDS plot of samples from both groups, this is only generated for edgeR not for wilcoxon method */
66
68
  images?: DEImage[]
69
+ /** Biological coefficient of variation (BCV), this is only generated for edgeR*/
70
+ bcv?: number
67
71
  }
68
72
 
69
73
  export type DataEntry = {
@@ -0,0 +1,59 @@
1
+ import type { RoutePayload } from './routeApi.ts'
2
+
3
+ //TermWrapper defined in client/types/terms/tw.ts
4
+ //Do not use #types TermWrapper here as it will be deprecated
5
+ export type TermdbSampleScatterRequest = {
6
+ genome: string
7
+ dslabel: string
8
+ colorTW?: any //TermWrapper
9
+ shapeTW?: any //TermWrapper
10
+ divideByTW?: any //TermWrapper
11
+ scaleDotTW?: any //TermWrapper
12
+ coordTWs?: any[] //TermWrapper[]
13
+ plotName?: string
14
+ filter?: any
15
+ filter0?: any
16
+ __protected__?: any // auth token for accessing protected data
17
+ }
18
+
19
+ export type ScatterSample = {
20
+ category: string
21
+ sample: string
22
+ info: { [index: string]: any }
23
+ shape: string
24
+ x: number
25
+ y: number
26
+ z: number
27
+ }
28
+
29
+ type ColorObject = { color: string; sampleCount: number; key: string }
30
+ export type ColorLegendEntry = [string, ColorObject]
31
+ export type ColorMap = { [index: string]: ColorObject }
32
+
33
+ type ShapeObject = { shape: number; sampleCount: number; key: string }
34
+ export type ShapeLegendEntry = [string, ShapeObject]
35
+ export type ShapeMap = { [index: string]: ShapeObject }
36
+
37
+ type ScatterResult = {
38
+ [index: string]: {
39
+ colorLegend: ColorLegendEntry[]
40
+ colorMap: ColorMap
41
+ samples: ScatterSample[]
42
+ shapeLegend: ShapeLegendEntry[]
43
+ shapeMap: ShapeMap
44
+ }
45
+ }
46
+
47
+ export type TermdbSampleScatterResponse = {
48
+ range: { xMin: number; xMax: number; yMin: number; yMax: number }
49
+ result: ScatterResult
50
+ }
51
+
52
+ export const termdbSampleScatterPayload: RoutePayload = {
53
+ request: {
54
+ typeId: 'TermdbSampleScatterRequest'
55
+ },
56
+ response: {
57
+ typeId: 'TermdbSampleScatterResponse'
58
+ }
59
+ }
@@ -13,6 +13,7 @@ export type WSImagesResponse = {
13
13
  wsiSessionId?: string
14
14
  overlays?: Array<PredictionOverlay>
15
15
  slide_dimensions: number[]
16
+ mpp: number[]
16
17
  status: string
17
18
  error?: string
18
19
  }