@sjcrh/proteinpaint-types 2.126.1 → 2.128.1

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.
Files changed (35) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-YOS2YTCE.js → chunk-24RS7HFO.js} +652 -770
  3. package/dist/{chunk-VSNV3MLV.js → chunk-6C4DMGK3.js} +408 -494
  4. package/dist/{chunk-DJCPG2RT.js → chunk-BMHL5ZZJ.js} +1216 -1436
  5. package/dist/{chunk-LVXO4MLR.js → chunk-CI6OEJNH.js} +744 -862
  6. package/dist/{chunk-NWEXA2YB.js → chunk-DJ5QE625.js} +22 -36
  7. package/dist/chunk-HUMZDPUU.js +322 -0
  8. package/dist/{chunk-5O422YU6.js → chunk-KHM52S5N.js} +408 -494
  9. package/dist/{chunk-GZCIY2WK.js → chunk-PX7P2A6A.js} +652 -770
  10. package/dist/{chunk-537XOM43.js → chunk-RP6RBKKL.js} +652 -770
  11. package/dist/{chunk-O4RAE6UJ.js → chunk-UXXLPWL2.js} +650 -768
  12. package/dist/{chunk-7IRM7OKB.js → chunk-WHO7HCNU.js} +408 -494
  13. package/dist/{chunk-BXPSDGWG.js → chunk-WK4CKVHY.js} +408 -494
  14. package/dist/{chunk-CJC7ZHSZ.js → chunk-WSL4JPUP.js} +417 -503
  15. package/dist/{chunk-2S4T3WUF.js → chunk-Y5BVEGR2.js} +1234 -1430
  16. package/dist/correlationVolcano.js +1 -1
  17. package/dist/gdc.grin2.js +3 -3
  18. package/dist/genesetEnrichment.js +1 -1
  19. package/dist/index.js +16 -16
  20. package/dist/termdb.boxplot.js +1 -1
  21. package/dist/termdb.categories.js +1 -1
  22. package/dist/termdb.cluster.js +1 -1
  23. package/dist/termdb.descrstats.js +1 -1
  24. package/dist/termdb.numericcategories.js +1 -1
  25. package/dist/termdb.percentile.js +1 -1
  26. package/dist/termdb.termsbyids.js +1 -1
  27. package/dist/termdb.topTermsByType.js +1 -1
  28. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  29. package/dist/termdb.violin.js +1 -1
  30. package/package.json +1 -1
  31. package/src/routes/gdc.grin2.ts +14 -7
  32. package/src/routes/genesetEnrichment.ts +40 -5
  33. package/src/terms/geneVariant.ts +4 -4
  34. package/src/terms/term.ts +2 -11
  35. package/dist/chunk-XZAH6P4D.js +0 -130
@@ -7,7 +7,7 @@ import {
7
7
  var import_typia = __toESM(require_lib(), 1);
8
8
 
9
9
  // src/routes/gdc.grin2.ts
10
- var gdcGRIN2Payload = {
10
+ var gdcGRIN2listPayload = {
11
11
  request: {
12
12
  typeId: "GdcGRIN2listRequest"
13
13
  },
@@ -28,30 +28,28 @@ var runGRIN2Payload = {
28
28
  var validGdcGRIN2listRequest = (input) => {
29
29
  const errors = [];
30
30
  const __is = (input2) => {
31
- const $io0 = (input3) => "WXS" === input3.experimentalStrategy && true && (void 0 === input3.fileTypes || Array.isArray(input3.fileTypes) && input3.fileTypes.every((elem) => "MAF" === elem));
32
- return "object" === typeof input2 && null !== input2 && $io0(input2);
31
+ const $io0 = (input3) => (void 0 === input3.mafOptions || "object" === typeof input3.mafOptions && null !== input3.mafOptions && $io1(input3.mafOptions)) && true && true;
32
+ const $io1 = (input3) => "WXS" === input3.experimentalStrategy;
33
+ return "object" === typeof input2 && null !== input2 && false === Array.isArray(input2) && $io0(input2);
33
34
  };
34
35
  if (false === __is(input)) {
35
36
  const $report = import_typia.createValidate.report(errors);
36
37
  ((input2, _path, _exceptionable = true) => {
37
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["WXS" === input3.experimentalStrategy || $report(_exceptionable2, {
38
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [true, void 0 === input3.mafOptions || ("object" === typeof input3.mafOptions && null !== input3.mafOptions || $report(_exceptionable2, {
39
+ path: _path2 + ".mafOptions",
40
+ expected: "(__type | undefined)",
41
+ value: input3.mafOptions
42
+ })) && $vo1(input3.mafOptions, _path2 + ".mafOptions", _exceptionable2) || $report(_exceptionable2, {
43
+ path: _path2 + ".mafOptions",
44
+ expected: "(__type | undefined)",
45
+ value: input3.mafOptions
46
+ }), true, true].every((flag) => flag);
47
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["WXS" === input3.experimentalStrategy || $report(_exceptionable2, {
38
48
  path: _path2 + ".experimentalStrategy",
39
49
  expected: '"WXS"',
40
50
  value: input3.experimentalStrategy
41
- }), true, void 0 === input3.fileTypes || (Array.isArray(input3.fileTypes) || $report(_exceptionable2, {
42
- path: _path2 + ".fileTypes",
43
- expected: '(Array<"MAF"> | undefined)',
44
- value: input3.fileTypes
45
- })) && input3.fileTypes.map((elem, _index1) => "MAF" === elem || $report(_exceptionable2, {
46
- path: _path2 + ".fileTypes[" + _index1 + "]",
47
- expected: '"MAF"',
48
- value: elem
49
- })).every((flag) => flag) || $report(_exceptionable2, {
50
- path: _path2 + ".fileTypes",
51
- expected: '(Array<"MAF"> | undefined)',
52
- value: input3.fileTypes
53
51
  })].every((flag) => flag);
54
- return ("object" === typeof input2 && null !== input2 || $report(true, {
52
+ return ("object" === typeof input2 && null !== input2 && false === Array.isArray(input2) || $report(true, {
55
53
  path: _path + "",
56
54
  expected: "GdcGRIN2listRequest",
57
55
  value: input2
@@ -75,7 +73,7 @@ var validGdcGRIN2listResponse = (input) => {
75
73
  const $io0 = (input3) => Array.isArray(input3.files) && input3.files.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.filesTotal && "number" === typeof input3.maxTotalSizeCompressed && (void 0 === input3.fileCounts || "object" === typeof input3.fileCounts && null !== input3.fileCounts && $io2(input3.fileCounts)) && (void 0 === input3.appliedFilters || "object" === typeof input3.appliedFilters && null !== input3.appliedFilters && false === Array.isArray(input3.appliedFilters) && $io3(input3.appliedFilters));
76
74
  const $io1 = (input3) => "string" === typeof input3.id && "string" === typeof input3.case_submitter_id && "string" === typeof input3.case_uuid && "number" === typeof input3.file_size && (Array.isArray(input3.sample_types) && input3.sample_types.every((elem) => "string" === typeof elem)) && "string" === typeof input3.project_id && (void 0 === input3.file_format || "MAF" === input3.file_format);
77
75
  const $io2 = (input3) => "number" === typeof input3.maf;
78
- const $io3 = (input3) => (void 0 === input3.fileTypes || Array.isArray(input3.fileTypes) && input3.fileTypes.every((elem) => "MAF" === elem)) && (void 0 === input3.experimentalStrategy || "WXS" === input3.experimentalStrategy);
76
+ const $io3 = (input3) => void 0 === input3.experimentalStrategy || "WXS" === input3.experimentalStrategy;
79
77
  return "object" === typeof input2 && null !== input2 && $io0(input2);
80
78
  };
81
79
  if (false === __is(input)) {
@@ -164,19 +162,7 @@ var validGdcGRIN2listResponse = (input) => {
164
162
  expected: "number",
165
163
  value: input3.maf
166
164
  })].every((flag) => flag);
167
- const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.fileTypes || (Array.isArray(input3.fileTypes) || $report(_exceptionable2, {
168
- path: _path2 + ".fileTypes",
169
- expected: '(Array<"MAF"> | undefined)',
170
- value: input3.fileTypes
171
- })) && input3.fileTypes.map((elem, _index3) => "MAF" === elem || $report(_exceptionable2, {
172
- path: _path2 + ".fileTypes[" + _index3 + "]",
173
- expected: '"MAF"',
174
- value: elem
175
- })).every((flag) => flag) || $report(_exceptionable2, {
176
- path: _path2 + ".fileTypes",
177
- expected: '(Array<"MAF"> | undefined)',
178
- value: input3.fileTypes
179
- }), void 0 === input3.experimentalStrategy || "WXS" === input3.experimentalStrategy || $report(_exceptionable2, {
165
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.experimentalStrategy || "WXS" === input3.experimentalStrategy || $report(_exceptionable2, {
180
166
  path: _path2 + ".experimentalStrategy",
181
167
  expected: '("WXS" | undefined)',
182
168
  value: input3.experimentalStrategy
@@ -260,7 +246,7 @@ var validRunGRIN2Request = (input) => {
260
246
  var validRunGRIN2Response = (input) => {
261
247
  const errors = [];
262
248
  const __is = (input2) => {
263
- const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.imagestring || "string" === typeof input3.imagestring) && true && true;
249
+ const $io0 = (input3) => ("success" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true;
264
250
  return "object" === typeof input2 && null !== input2 && $io0(input2);
265
251
  };
266
252
  if (false === __is(input)) {
@@ -274,10 +260,10 @@ var validRunGRIN2Response = (input) => {
274
260
  path: _path2 + ".error",
275
261
  expected: "(string | undefined)",
276
262
  value: input3.error
277
- }), void 0 === input3.imagestring || "string" === typeof input3.imagestring || $report(_exceptionable2, {
278
- path: _path2 + ".imagestring",
263
+ }), void 0 === input3.pngImg || "string" === typeof input3.pngImg || $report(_exceptionable2, {
264
+ path: _path2 + ".pngImg",
279
265
  expected: "(string | undefined)",
280
- value: input3.imagestring
266
+ value: input3.pngImg
281
267
  }), true, true].every((flag) => flag);
282
268
  return ("object" === typeof input2 && null !== input2 || $report(true, {
283
269
  path: _path + "",
@@ -299,7 +285,7 @@ var validRunGRIN2Response = (input) => {
299
285
  };
300
286
 
301
287
  export {
302
- gdcGRIN2Payload,
288
+ gdcGRIN2listPayload,
303
289
  runGRIN2Payload,
304
290
  validGdcGRIN2listRequest,
305
291
  validGdcGRIN2listResponse,
@@ -0,0 +1,322 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/genesetEnrichment.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/genesetEnrichment.ts
10
+ var genesetEnrichmentPayload = {
11
+ request: {
12
+ typeId: "GenesetEnrichmentRequest"
13
+ },
14
+ response: {
15
+ typeId: "GenesetEnrichmentResponse"
16
+ }
17
+ //examples: []
18
+ };
19
+
20
+ // dist/genesetEnrichment.ts
21
+ var validGenesetEnrichmentRequest = (input) => {
22
+ const errors = [];
23
+ const __is = (input2) => {
24
+ const $io0 = (input3) => Array.isArray(input3.genes) && input3.genes.every((elem) => "string" === typeof elem) && (Array.isArray(input3.fold_change) && input3.fold_change.every((elem) => "number" === typeof elem)) && "boolean" === typeof input3.filter_non_coding_genes && "string" === typeof input3.genome && "string" === typeof input3.geneSetGroup && (void 0 === input3.geneset_name || "string" === typeof input3.geneset_name) && (void 0 === input3.pickle_file || "string" === typeof input3.pickle_file) && "number" === typeof input3.num_permutations && ("blitzgsea" === input3.method || "cerno" === input3.method);
25
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
26
+ };
27
+ if (false === __is(input)) {
28
+ const $report = import_typia.createValidate.report(errors);
29
+ ((input2, _path, _exceptionable = true) => {
30
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.genes) || $report(_exceptionable2, {
31
+ path: _path2 + ".genes",
32
+ expected: "Array<string>",
33
+ value: input3.genes
34
+ })) && input3.genes.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
35
+ path: _path2 + ".genes[" + _index1 + "]",
36
+ expected: "string",
37
+ value: elem
38
+ })).every((flag) => flag) || $report(_exceptionable2, {
39
+ path: _path2 + ".genes",
40
+ expected: "Array<string>",
41
+ value: input3.genes
42
+ }), (Array.isArray(input3.fold_change) || $report(_exceptionable2, {
43
+ path: _path2 + ".fold_change",
44
+ expected: "Array<number>",
45
+ value: input3.fold_change
46
+ })) && input3.fold_change.map((elem, _index2) => "number" === typeof elem || $report(_exceptionable2, {
47
+ path: _path2 + ".fold_change[" + _index2 + "]",
48
+ expected: "number",
49
+ value: elem
50
+ })).every((flag) => flag) || $report(_exceptionable2, {
51
+ path: _path2 + ".fold_change",
52
+ expected: "Array<number>",
53
+ value: input3.fold_change
54
+ }), "boolean" === typeof input3.filter_non_coding_genes || $report(_exceptionable2, {
55
+ path: _path2 + ".filter_non_coding_genes",
56
+ expected: "boolean",
57
+ value: input3.filter_non_coding_genes
58
+ }), "string" === typeof input3.genome || $report(_exceptionable2, {
59
+ path: _path2 + ".genome",
60
+ expected: "string",
61
+ value: input3.genome
62
+ }), "string" === typeof input3.geneSetGroup || $report(_exceptionable2, {
63
+ path: _path2 + ".geneSetGroup",
64
+ expected: "string",
65
+ value: input3.geneSetGroup
66
+ }), void 0 === input3.geneset_name || "string" === typeof input3.geneset_name || $report(_exceptionable2, {
67
+ path: _path2 + ".geneset_name",
68
+ expected: "(string | undefined)",
69
+ value: input3.geneset_name
70
+ }), void 0 === input3.pickle_file || "string" === typeof input3.pickle_file || $report(_exceptionable2, {
71
+ path: _path2 + ".pickle_file",
72
+ expected: "(string | undefined)",
73
+ value: input3.pickle_file
74
+ }), "number" === typeof input3.num_permutations || $report(_exceptionable2, {
75
+ path: _path2 + ".num_permutations",
76
+ expected: "number",
77
+ value: input3.num_permutations
78
+ }), "blitzgsea" === input3.method || "cerno" === input3.method || $report(_exceptionable2, {
79
+ path: _path2 + ".method",
80
+ expected: '("blitzgsea" | "cerno")',
81
+ value: input3.method
82
+ })].every((flag) => flag);
83
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
84
+ path: _path + "",
85
+ expected: "GenesetEnrichmentRequest",
86
+ value: input2
87
+ })) && $vo0(input2, _path + "", true) || $report(true, {
88
+ path: _path + "",
89
+ expected: "GenesetEnrichmentRequest",
90
+ value: input2
91
+ });
92
+ })(input, "$input", true);
93
+ }
94
+ const success = 0 === errors.length;
95
+ return {
96
+ success,
97
+ errors,
98
+ data: success ? input : void 0
99
+ };
100
+ };
101
+ var validGenesetEnrichmentResponse = (input) => {
102
+ const errors = [];
103
+ const __is = (input2) => {
104
+ const $join = import_typia.createValidate.join;
105
+ const $io0 = (input3) => "object" === typeof input3.data && null !== input3.data && $iu0(input3.data);
106
+ const $io1 = (input3) => null !== input3.pathway && void 0 !== input3.pathway && ("string" === typeof input3.pathway || "object" === typeof input3.pathway && null !== input3.pathway && $io2(input3.pathway));
107
+ const $io2 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io3(elem)) && "string" === typeof input3.pickle_file;
108
+ const $io3 = (input3) => Object.keys(input3).every((key) => {
109
+ const value = input3[key];
110
+ if (void 0 === value)
111
+ return true;
112
+ if (RegExp(/(.*)/).test(key))
113
+ return "object" === typeof value && null !== value && ("number" === typeof value.es && "number" === typeof value.nes && "number" === typeof value.geneset_size && "string" === typeof value.leading_edge && "number" === typeof value.pvalue && "number" === typeof value.sidak && "number" === typeof value.fdr);
114
+ return true;
115
+ });
116
+ const $io5 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io6(elem));
117
+ const $io6 = (input3) => Object.keys(input3).every((key) => {
118
+ const value = input3[key];
119
+ if (void 0 === value)
120
+ return true;
121
+ if (RegExp(/(.*)/).test(key))
122
+ return "object" === typeof value && null !== value && ("number" === typeof value.es && "number" === typeof value.auc && "number" === typeof value.geneset_size && "string" === typeof value.leading_edge && "number" === typeof value.pvalue && "number" === typeof value.fdr);
123
+ return true;
124
+ });
125
+ const $iu0 = (input3) => (() => {
126
+ if (void 0 !== input3.pathway)
127
+ return $io1(input3);
128
+ if (void 0 !== input3.data)
129
+ return $io5(input3);
130
+ return false;
131
+ })();
132
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
133
+ };
134
+ if (false === __is(input)) {
135
+ const $report = import_typia.createValidate.report(errors);
136
+ ((input2, _path, _exceptionable = true) => {
137
+ const $join = import_typia.createValidate.join;
138
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.data && null !== input3.data || $report(_exceptionable2, {
139
+ path: _path2 + ".data",
140
+ expected: "(blitzgseaResult | cernoResult)",
141
+ value: input3.data
142
+ })) && $vu0(input3.data, _path2 + ".data", _exceptionable2) || $report(_exceptionable2, {
143
+ path: _path2 + ".data",
144
+ expected: "(blitzgseaResult | cernoResult)",
145
+ value: input3.data
146
+ })].every((flag) => flag);
147
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [(null !== input3.pathway || $report(_exceptionable2, {
148
+ path: _path2 + ".pathway",
149
+ expected: "(blitzgsea_json | string)",
150
+ value: input3.pathway
151
+ })) && (void 0 !== input3.pathway || $report(_exceptionable2, {
152
+ path: _path2 + ".pathway",
153
+ expected: "(blitzgsea_json | string)",
154
+ value: input3.pathway
155
+ })) && ("string" === typeof input3.pathway || ("object" === typeof input3.pathway && null !== input3.pathway || $report(_exceptionable2, {
156
+ path: _path2 + ".pathway",
157
+ expected: "(blitzgsea_json | string)",
158
+ value: input3.pathway
159
+ })) && $vo2(input3.pathway, _path2 + ".pathway", _exceptionable2) || $report(_exceptionable2, {
160
+ path: _path2 + ".pathway",
161
+ expected: "(blitzgsea_json | string)",
162
+ value: input3.pathway
163
+ }))].every((flag) => flag);
164
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.data) || $report(_exceptionable2, {
165
+ path: _path2 + ".data",
166
+ expected: "Array<blitzgsea_map>",
167
+ value: input3.data
168
+ })) && input3.data.map((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
169
+ path: _path2 + ".data[" + _index1 + "]",
170
+ expected: "blitzgsea_map",
171
+ value: elem
172
+ })) && $vo3(elem, _path2 + ".data[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
173
+ path: _path2 + ".data[" + _index1 + "]",
174
+ expected: "blitzgsea_map",
175
+ value: elem
176
+ })).every((flag) => flag) || $report(_exceptionable2, {
177
+ path: _path2 + ".data",
178
+ expected: "Array<blitzgsea_map>",
179
+ value: input3.data
180
+ }), "string" === typeof input3.pickle_file || $report(_exceptionable2, {
181
+ path: _path2 + ".pickle_file",
182
+ expected: "string",
183
+ value: input3.pickle_file
184
+ })].every((flag) => flag);
185
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
186
+ const value = input3[key];
187
+ if (void 0 === value)
188
+ return true;
189
+ if (RegExp(/(.*)/).test(key))
190
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
191
+ path: _path2 + $join(key),
192
+ expected: "blitzgsea_geneset_attributes",
193
+ value
194
+ })) && $vo4(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
195
+ path: _path2 + $join(key),
196
+ expected: "blitzgsea_geneset_attributes",
197
+ value
198
+ });
199
+ return true;
200
+ }).every((flag) => flag)].every((flag) => flag);
201
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.es || $report(_exceptionable2, {
202
+ path: _path2 + ".es",
203
+ expected: "number",
204
+ value: input3.es
205
+ }), "number" === typeof input3.nes || $report(_exceptionable2, {
206
+ path: _path2 + ".nes",
207
+ expected: "number",
208
+ value: input3.nes
209
+ }), "number" === typeof input3.geneset_size || $report(_exceptionable2, {
210
+ path: _path2 + ".geneset_size",
211
+ expected: "number",
212
+ value: input3.geneset_size
213
+ }), "string" === typeof input3.leading_edge || $report(_exceptionable2, {
214
+ path: _path2 + ".leading_edge",
215
+ expected: "string",
216
+ value: input3.leading_edge
217
+ }), "number" === typeof input3.pvalue || $report(_exceptionable2, {
218
+ path: _path2 + ".pvalue",
219
+ expected: "number",
220
+ value: input3.pvalue
221
+ }), "number" === typeof input3.sidak || $report(_exceptionable2, {
222
+ path: _path2 + ".sidak",
223
+ expected: "number",
224
+ value: input3.sidak
225
+ }), "number" === typeof input3.fdr || $report(_exceptionable2, {
226
+ path: _path2 + ".fdr",
227
+ expected: "number",
228
+ value: input3.fdr
229
+ })].every((flag) => flag);
230
+ const $vo5 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.data) || $report(_exceptionable2, {
231
+ path: _path2 + ".data",
232
+ expected: "Array<cerno_map>",
233
+ value: input3.data
234
+ })) && input3.data.map((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
235
+ path: _path2 + ".data[" + _index2 + "]",
236
+ expected: "cerno_map",
237
+ value: elem
238
+ })) && $vo6(elem, _path2 + ".data[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
239
+ path: _path2 + ".data[" + _index2 + "]",
240
+ expected: "cerno_map",
241
+ value: elem
242
+ })).every((flag) => flag) || $report(_exceptionable2, {
243
+ path: _path2 + ".data",
244
+ expected: "Array<cerno_map>",
245
+ value: input3.data
246
+ })].every((flag) => flag);
247
+ const $vo6 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
248
+ const value = input3[key];
249
+ if (void 0 === value)
250
+ return true;
251
+ if (RegExp(/(.*)/).test(key))
252
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
253
+ path: _path2 + $join(key),
254
+ expected: "cerno_geneset_attributes",
255
+ value
256
+ })) && $vo7(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
257
+ path: _path2 + $join(key),
258
+ expected: "cerno_geneset_attributes",
259
+ value
260
+ });
261
+ return true;
262
+ }).every((flag) => flag)].every((flag) => flag);
263
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.es || $report(_exceptionable2, {
264
+ path: _path2 + ".es",
265
+ expected: "number",
266
+ value: input3.es
267
+ }), "number" === typeof input3.auc || $report(_exceptionable2, {
268
+ path: _path2 + ".auc",
269
+ expected: "number",
270
+ value: input3.auc
271
+ }), "number" === typeof input3.geneset_size || $report(_exceptionable2, {
272
+ path: _path2 + ".geneset_size",
273
+ expected: "number",
274
+ value: input3.geneset_size
275
+ }), "string" === typeof input3.leading_edge || $report(_exceptionable2, {
276
+ path: _path2 + ".leading_edge",
277
+ expected: "string",
278
+ value: input3.leading_edge
279
+ }), "number" === typeof input3.pvalue || $report(_exceptionable2, {
280
+ path: _path2 + ".pvalue",
281
+ expected: "number",
282
+ value: input3.pvalue
283
+ }), "number" === typeof input3.fdr || $report(_exceptionable2, {
284
+ path: _path2 + ".fdr",
285
+ expected: "number",
286
+ value: input3.fdr
287
+ })].every((flag) => flag);
288
+ const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
289
+ if (void 0 !== input3.pathway)
290
+ return $vo1(input3, _path2, _exceptionable2);
291
+ if (void 0 !== input3.data)
292
+ return $vo5(input3, _path2, _exceptionable2);
293
+ return $report(_exceptionable2, {
294
+ path: _path2,
295
+ expected: "(blitzgseaResult | cernoResult)",
296
+ value: input3
297
+ });
298
+ })();
299
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
300
+ path: _path + "",
301
+ expected: "GenesetEnrichmentResponse",
302
+ value: input2
303
+ })) && $vo0(input2, _path + "", true) || $report(true, {
304
+ path: _path + "",
305
+ expected: "GenesetEnrichmentResponse",
306
+ value: input2
307
+ });
308
+ })(input, "$input", true);
309
+ }
310
+ const success = 0 === errors.length;
311
+ return {
312
+ success,
313
+ errors,
314
+ data: success ? input : void 0
315
+ };
316
+ };
317
+
318
+ export {
319
+ genesetEnrichmentPayload,
320
+ validGenesetEnrichmentRequest,
321
+ validGenesetEnrichmentResponse
322
+ };