@sjcrh/proteinpaint-types 2.184.0 → 2.185.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.
- package/dist/chunk-CWJZUUEF.js +341 -0
- package/dist/{chunk-U4A647KI.js → chunk-DII56MJ7.js} +128 -18
- package/dist/{chunk-M7WMC7GC.js → chunk-JMVDRHBL.js} +187 -61
- package/dist/chunk-NLANDPY7.js +330 -0
- package/dist/chunk-UGGNWTJZ.js +385 -0
- package/dist/{chunk-XIRCL7KT.js → chunk-VCEWZVLZ.js} +24 -30
- package/dist/{chunk-NIEACU6R.js → chunk-Z3IYM5OK.js} +5 -1
- package/dist/genesetEnrichment.js +1 -1
- package/dist/index.js +7 -7
- package/dist/termdb.DE.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.diffMeth.js +1 -1
- package/dist/termdb.singlecellDEgenes.js +1 -1
- package/dist/termdb.singlecellData.js +1 -1
- package/dist/termdb.singlecellSamples.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +49 -0
- package/src/routes/genesetEnrichment.ts +27 -10
- package/src/routes/termdb.DE.ts +111 -4
- package/src/routes/termdb.chat2.ts +5 -2
- package/src/routes/termdb.cluster.ts +11 -0
- package/src/routes/termdb.diffMeth.ts +18 -10
- package/src/routes/termdb.singlecellDEgenes.ts +20 -16
- package/src/routes/termdb.singlecellData.ts +2 -0
- package/src/routes/termdb.singlecellSamples.ts +4 -3
- package/dist/chunk-3EVYVWI2.js +0 -163
- package/dist/chunk-G6ZTAMGK.js +0 -155
- package/dist/chunk-LJFPSUAL.js +0 -199
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-YNHC5SXO.js";
|
|
5
|
+
|
|
6
|
+
// dist/termdb.DE.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/termdb.DE.ts
|
|
10
|
+
var diffExpPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "DERequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "DEResponse"
|
|
16
|
+
// will combine this with type checker
|
|
17
|
+
//valid: (t) => {}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// dist/termdb.DE.ts
|
|
22
|
+
var validDERequest = (input) => {
|
|
23
|
+
const errors = [];
|
|
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 && "number" === typeof input3.cpm_cutoff && ("text" === input3.storage_type || "HDF5" === input3.storage_type) && (void 0 === input3.method || "string" === typeof input3.method) && true && true && (void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis) && ("object" === typeof input3.volcanoRender && null !== input3.volcanoRender && $io1(input3.volcanoRender));
|
|
26
|
+
const $io1 = (input3) => "object" === typeof input3.significanceThresholds && null !== input3.significanceThresholds && $io2(input3.significanceThresholds) && "number" === typeof input3.pixelWidth && "number" === typeof input3.pixelHeight && (void 0 === input3.colorSignificant || "string" === typeof input3.colorSignificant) && (void 0 === input3.colorSignificantUp || "string" === typeof input3.colorSignificantUp) && (void 0 === input3.colorSignificantDown || "string" === typeof input3.colorSignificantDown) && (void 0 === input3.colorNonsignificant || "string" === typeof input3.colorNonsignificant) && (void 0 === input3.dotRadius || "number" === typeof input3.dotRadius) && (void 0 === input3.maxInteractiveDots || "number" === typeof input3.maxInteractiveDots);
|
|
27
|
+
const $io2 = (input3) => "number" === typeof input3.pValueCutoff && ("adjusted" === input3.pValueType || "original" === input3.pValueType) && "number" === typeof input3.foldChangeCutoff;
|
|
28
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
29
|
+
};
|
|
30
|
+
if (false === __is(input)) {
|
|
31
|
+
const $report = import_typia.createValidate.report(errors);
|
|
32
|
+
((input2, _path, _exceptionable = true) => {
|
|
33
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
34
|
+
path: _path2 + ".genome",
|
|
35
|
+
expected: "string",
|
|
36
|
+
value: input3.genome
|
|
37
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
38
|
+
path: _path2 + ".dslabel",
|
|
39
|
+
expected: "string",
|
|
40
|
+
value: input3.dslabel
|
|
41
|
+
}), true, "number" === typeof input3.min_count || $report(_exceptionable2, {
|
|
42
|
+
path: _path2 + ".min_count",
|
|
43
|
+
expected: "number",
|
|
44
|
+
value: input3.min_count
|
|
45
|
+
}), "number" === typeof input3.min_total_count || $report(_exceptionable2, {
|
|
46
|
+
path: _path2 + ".min_total_count",
|
|
47
|
+
expected: "number",
|
|
48
|
+
value: input3.min_total_count
|
|
49
|
+
}), "number" === typeof input3.cpm_cutoff || $report(_exceptionable2, {
|
|
50
|
+
path: _path2 + ".cpm_cutoff",
|
|
51
|
+
expected: "number",
|
|
52
|
+
value: input3.cpm_cutoff
|
|
53
|
+
}), "text" === input3.storage_type || "HDF5" === input3.storage_type || $report(_exceptionable2, {
|
|
54
|
+
path: _path2 + ".storage_type",
|
|
55
|
+
expected: '("HDF5" | "text")',
|
|
56
|
+
value: input3.storage_type
|
|
57
|
+
}), void 0 === input3.method || "string" === typeof input3.method || $report(_exceptionable2, {
|
|
58
|
+
path: _path2 + ".method",
|
|
59
|
+
expected: "(string | undefined)",
|
|
60
|
+
value: input3.method
|
|
61
|
+
}), true, true, void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis || $report(_exceptionable2, {
|
|
62
|
+
path: _path2 + ".preAnalysis",
|
|
63
|
+
expected: "(boolean | undefined)",
|
|
64
|
+
value: input3.preAnalysis
|
|
65
|
+
}), ("object" === typeof input3.volcanoRender && null !== input3.volcanoRender || $report(_exceptionable2, {
|
|
66
|
+
path: _path2 + ".volcanoRender",
|
|
67
|
+
expected: "VolcanoRenderRequest",
|
|
68
|
+
value: input3.volcanoRender
|
|
69
|
+
})) && $vo1(input3.volcanoRender, _path2 + ".volcanoRender", _exceptionable2) || $report(_exceptionable2, {
|
|
70
|
+
path: _path2 + ".volcanoRender",
|
|
71
|
+
expected: "VolcanoRenderRequest",
|
|
72
|
+
value: input3.volcanoRender
|
|
73
|
+
})].every((flag) => flag);
|
|
74
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.significanceThresholds && null !== input3.significanceThresholds || $report(_exceptionable2, {
|
|
75
|
+
path: _path2 + ".significanceThresholds",
|
|
76
|
+
expected: "SignificanceThresholds",
|
|
77
|
+
value: input3.significanceThresholds
|
|
78
|
+
})) && $vo2(input3.significanceThresholds, _path2 + ".significanceThresholds", _exceptionable2) || $report(_exceptionable2, {
|
|
79
|
+
path: _path2 + ".significanceThresholds",
|
|
80
|
+
expected: "SignificanceThresholds",
|
|
81
|
+
value: input3.significanceThresholds
|
|
82
|
+
}), "number" === typeof input3.pixelWidth || $report(_exceptionable2, {
|
|
83
|
+
path: _path2 + ".pixelWidth",
|
|
84
|
+
expected: "number",
|
|
85
|
+
value: input3.pixelWidth
|
|
86
|
+
}), "number" === typeof input3.pixelHeight || $report(_exceptionable2, {
|
|
87
|
+
path: _path2 + ".pixelHeight",
|
|
88
|
+
expected: "number",
|
|
89
|
+
value: input3.pixelHeight
|
|
90
|
+
}), void 0 === input3.colorSignificant || "string" === typeof input3.colorSignificant || $report(_exceptionable2, {
|
|
91
|
+
path: _path2 + ".colorSignificant",
|
|
92
|
+
expected: "(string | undefined)",
|
|
93
|
+
value: input3.colorSignificant
|
|
94
|
+
}), void 0 === input3.colorSignificantUp || "string" === typeof input3.colorSignificantUp || $report(_exceptionable2, {
|
|
95
|
+
path: _path2 + ".colorSignificantUp",
|
|
96
|
+
expected: "(string | undefined)",
|
|
97
|
+
value: input3.colorSignificantUp
|
|
98
|
+
}), void 0 === input3.colorSignificantDown || "string" === typeof input3.colorSignificantDown || $report(_exceptionable2, {
|
|
99
|
+
path: _path2 + ".colorSignificantDown",
|
|
100
|
+
expected: "(string | undefined)",
|
|
101
|
+
value: input3.colorSignificantDown
|
|
102
|
+
}), void 0 === input3.colorNonsignificant || "string" === typeof input3.colorNonsignificant || $report(_exceptionable2, {
|
|
103
|
+
path: _path2 + ".colorNonsignificant",
|
|
104
|
+
expected: "(string | undefined)",
|
|
105
|
+
value: input3.colorNonsignificant
|
|
106
|
+
}), void 0 === input3.dotRadius || "number" === typeof input3.dotRadius || $report(_exceptionable2, {
|
|
107
|
+
path: _path2 + ".dotRadius",
|
|
108
|
+
expected: "(number | undefined)",
|
|
109
|
+
value: input3.dotRadius
|
|
110
|
+
}), void 0 === input3.maxInteractiveDots || "number" === typeof input3.maxInteractiveDots || $report(_exceptionable2, {
|
|
111
|
+
path: _path2 + ".maxInteractiveDots",
|
|
112
|
+
expected: "(number | undefined)",
|
|
113
|
+
value: input3.maxInteractiveDots
|
|
114
|
+
})].every((flag) => flag);
|
|
115
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.pValueCutoff || $report(_exceptionable2, {
|
|
116
|
+
path: _path2 + ".pValueCutoff",
|
|
117
|
+
expected: "number",
|
|
118
|
+
value: input3.pValueCutoff
|
|
119
|
+
}), "adjusted" === input3.pValueType || "original" === input3.pValueType || $report(_exceptionable2, {
|
|
120
|
+
path: _path2 + ".pValueType",
|
|
121
|
+
expected: '("adjusted" | "original")',
|
|
122
|
+
value: input3.pValueType
|
|
123
|
+
}), "number" === typeof input3.foldChangeCutoff || $report(_exceptionable2, {
|
|
124
|
+
path: _path2 + ".foldChangeCutoff",
|
|
125
|
+
expected: "number",
|
|
126
|
+
value: input3.foldChangeCutoff
|
|
127
|
+
})].every((flag) => flag);
|
|
128
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
129
|
+
path: _path + "",
|
|
130
|
+
expected: "DERequest",
|
|
131
|
+
value: input2
|
|
132
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
133
|
+
path: _path + "",
|
|
134
|
+
expected: "DERequest",
|
|
135
|
+
value: input2
|
|
136
|
+
});
|
|
137
|
+
})(input, "$input", true);
|
|
138
|
+
}
|
|
139
|
+
const success = 0 === errors.length;
|
|
140
|
+
return {
|
|
141
|
+
success,
|
|
142
|
+
errors,
|
|
143
|
+
data: success ? input : void 0
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
var validDEResponse = (input) => {
|
|
147
|
+
const errors = [];
|
|
148
|
+
const __is = (input2) => {
|
|
149
|
+
const $join = import_typia.createValidate.join;
|
|
150
|
+
const $io0 = (input3) => "object" === typeof input3.data && null !== input3.data && false === Array.isArray(input3.data) && $io1(input3.data);
|
|
151
|
+
const $io1 = (input3) => Object.keys(input3).every((key) => {
|
|
152
|
+
const value = input3[key];
|
|
153
|
+
if (void 0 === value)
|
|
154
|
+
return true;
|
|
155
|
+
if (RegExp(/(.*)/).test(key))
|
|
156
|
+
return "string" === typeof value || "number" === typeof value;
|
|
157
|
+
return true;
|
|
158
|
+
});
|
|
159
|
+
const $io2 = (input3) => "object" === typeof input3.data && null !== input3.data && $io3(input3.data) && "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 && $io6(elem))) && (void 0 === input3.bcv || "number" === typeof input3.bcv);
|
|
160
|
+
const $io3 = (input3) => Array.isArray(input3.dots) && input3.dots.every((elem) => "object" === typeof elem && null !== elem && $io4(elem)) && "string" === typeof input3.volcanoPng && ("object" === typeof input3.plotExtent && null !== input3.plotExtent && $io5(input3.plotExtent)) && "number" === typeof input3.totalRows && "number" === typeof input3.totalSignificantRows && (void 0 === input3.cacheId || "string" === typeof input3.cacheId);
|
|
161
|
+
const $io4 = (input3) => "number" === typeof input3.original_p_value && "number" === typeof input3.adjusted_p_value && "number" === typeof input3.fold_change && "string" === typeof input3.gene_id && "string" === typeof input3.gene_name;
|
|
162
|
+
const $io5 = (input3) => "number" === typeof input3.xMin && "number" === typeof input3.xMax && "number" === typeof input3.yMin && "number" === typeof input3.yMax && "number" === typeof input3.pixelWidth && "number" === typeof input3.pixelHeight && "number" === typeof input3.plotLeft && "number" === typeof input3.plotTop && "number" === typeof input3.plotRight && "number" === typeof input3.plotBottom && "number" === typeof input3.minNonZeroPValue;
|
|
163
|
+
const $io6 = (input3) => "string" === typeof input3.src && "number" === typeof input3.size && "string" === typeof input3.key;
|
|
164
|
+
const $iu0 = (input3) => (() => {
|
|
165
|
+
if (void 0 !== input3.sample_size1)
|
|
166
|
+
return $io2(input3);
|
|
167
|
+
return $io0(input3);
|
|
168
|
+
})();
|
|
169
|
+
return "object" === typeof input2 && null !== input2 && $iu0(input2);
|
|
170
|
+
};
|
|
171
|
+
if (false === __is(input)) {
|
|
172
|
+
const $report = import_typia.createValidate.report(errors);
|
|
173
|
+
((input2, _path, _exceptionable = true) => {
|
|
174
|
+
const $join = import_typia.createValidate.join;
|
|
175
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.data && null !== input3.data && false === Array.isArray(input3.data) || $report(_exceptionable2, {
|
|
176
|
+
path: _path2 + ".data",
|
|
177
|
+
expected: "Record<string, string | number>",
|
|
178
|
+
value: input3.data
|
|
179
|
+
})) && $vo1(input3.data, _path2 + ".data", _exceptionable2) || $report(_exceptionable2, {
|
|
180
|
+
path: _path2 + ".data",
|
|
181
|
+
expected: "Record<string, string | number>",
|
|
182
|
+
value: input3.data
|
|
183
|
+
})].every((flag) => flag);
|
|
184
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
185
|
+
const value = input3[key];
|
|
186
|
+
if (void 0 === value)
|
|
187
|
+
return true;
|
|
188
|
+
if (RegExp(/(.*)/).test(key))
|
|
189
|
+
return "string" === typeof value || "number" === typeof value || $report(_exceptionable2, {
|
|
190
|
+
path: _path2 + $join(key),
|
|
191
|
+
expected: "(number | string)",
|
|
192
|
+
value
|
|
193
|
+
});
|
|
194
|
+
return true;
|
|
195
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
196
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.data && null !== input3.data || $report(_exceptionable2, {
|
|
197
|
+
path: _path2 + ".data",
|
|
198
|
+
expected: "VolcanoData<GeneDEEntry>",
|
|
199
|
+
value: input3.data
|
|
200
|
+
})) && $vo3(input3.data, _path2 + ".data", _exceptionable2) || $report(_exceptionable2, {
|
|
201
|
+
path: _path2 + ".data",
|
|
202
|
+
expected: "VolcanoData<GeneDEEntry>",
|
|
203
|
+
value: input3.data
|
|
204
|
+
}), "number" === typeof input3.sample_size1 || $report(_exceptionable2, {
|
|
205
|
+
path: _path2 + ".sample_size1",
|
|
206
|
+
expected: "number",
|
|
207
|
+
value: input3.sample_size1
|
|
208
|
+
}), "number" === typeof input3.sample_size2 || $report(_exceptionable2, {
|
|
209
|
+
path: _path2 + ".sample_size2",
|
|
210
|
+
expected: "number",
|
|
211
|
+
value: input3.sample_size2
|
|
212
|
+
}), "string" === typeof input3.method || $report(_exceptionable2, {
|
|
213
|
+
path: _path2 + ".method",
|
|
214
|
+
expected: "string",
|
|
215
|
+
value: input3.method
|
|
216
|
+
}), void 0 === input3.images || (Array.isArray(input3.images) || $report(_exceptionable2, {
|
|
217
|
+
path: _path2 + ".images",
|
|
218
|
+
expected: "(Array<DEImage> | undefined)",
|
|
219
|
+
value: input3.images
|
|
220
|
+
})) && input3.images.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
221
|
+
path: _path2 + ".images[" + _index1 + "]",
|
|
222
|
+
expected: "DEImage",
|
|
223
|
+
value: elem
|
|
224
|
+
})) && $vo6(elem, _path2 + ".images[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
225
|
+
path: _path2 + ".images[" + _index1 + "]",
|
|
226
|
+
expected: "DEImage",
|
|
227
|
+
value: elem
|
|
228
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
229
|
+
path: _path2 + ".images",
|
|
230
|
+
expected: "(Array<DEImage> | undefined)",
|
|
231
|
+
value: input3.images
|
|
232
|
+
}), void 0 === input3.bcv || "number" === typeof input3.bcv || $report(_exceptionable2, {
|
|
233
|
+
path: _path2 + ".bcv",
|
|
234
|
+
expected: "(number | undefined)",
|
|
235
|
+
value: input3.bcv
|
|
236
|
+
})].every((flag) => flag);
|
|
237
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.dots) || $report(_exceptionable2, {
|
|
238
|
+
path: _path2 + ".dots",
|
|
239
|
+
expected: "Array<GeneDEEntry>",
|
|
240
|
+
value: input3.dots
|
|
241
|
+
})) && input3.dots.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
242
|
+
path: _path2 + ".dots[" + _index2 + "]",
|
|
243
|
+
expected: "GeneDEEntry",
|
|
244
|
+
value: elem
|
|
245
|
+
})) && $vo4(elem, _path2 + ".dots[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
246
|
+
path: _path2 + ".dots[" + _index2 + "]",
|
|
247
|
+
expected: "GeneDEEntry",
|
|
248
|
+
value: elem
|
|
249
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
250
|
+
path: _path2 + ".dots",
|
|
251
|
+
expected: "Array<GeneDEEntry>",
|
|
252
|
+
value: input3.dots
|
|
253
|
+
}), "string" === typeof input3.volcanoPng || $report(_exceptionable2, {
|
|
254
|
+
path: _path2 + ".volcanoPng",
|
|
255
|
+
expected: "string",
|
|
256
|
+
value: input3.volcanoPng
|
|
257
|
+
}), ("object" === typeof input3.plotExtent && null !== input3.plotExtent || $report(_exceptionable2, {
|
|
258
|
+
path: _path2 + ".plotExtent",
|
|
259
|
+
expected: "PlotExtent",
|
|
260
|
+
value: input3.plotExtent
|
|
261
|
+
})) && $vo5(input3.plotExtent, _path2 + ".plotExtent", _exceptionable2) || $report(_exceptionable2, {
|
|
262
|
+
path: _path2 + ".plotExtent",
|
|
263
|
+
expected: "PlotExtent",
|
|
264
|
+
value: input3.plotExtent
|
|
265
|
+
}), "number" === typeof input3.totalRows || $report(_exceptionable2, {
|
|
266
|
+
path: _path2 + ".totalRows",
|
|
267
|
+
expected: "number",
|
|
268
|
+
value: input3.totalRows
|
|
269
|
+
}), "number" === typeof input3.totalSignificantRows || $report(_exceptionable2, {
|
|
270
|
+
path: _path2 + ".totalSignificantRows",
|
|
271
|
+
expected: "number",
|
|
272
|
+
value: input3.totalSignificantRows
|
|
273
|
+
}), void 0 === input3.cacheId || "string" === typeof input3.cacheId || $report(_exceptionable2, {
|
|
274
|
+
path: _path2 + ".cacheId",
|
|
275
|
+
expected: "(string | undefined)",
|
|
276
|
+
value: input3.cacheId
|
|
277
|
+
})].every((flag) => flag);
|
|
278
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.original_p_value || $report(_exceptionable2, {
|
|
279
|
+
path: _path2 + ".original_p_value",
|
|
280
|
+
expected: "number",
|
|
281
|
+
value: input3.original_p_value
|
|
282
|
+
}), "number" === typeof input3.adjusted_p_value || $report(_exceptionable2, {
|
|
283
|
+
path: _path2 + ".adjusted_p_value",
|
|
284
|
+
expected: "number",
|
|
285
|
+
value: input3.adjusted_p_value
|
|
286
|
+
}), "number" === typeof input3.fold_change || $report(_exceptionable2, {
|
|
287
|
+
path: _path2 + ".fold_change",
|
|
288
|
+
expected: "number",
|
|
289
|
+
value: input3.fold_change
|
|
290
|
+
}), "string" === typeof input3.gene_id || $report(_exceptionable2, {
|
|
291
|
+
path: _path2 + ".gene_id",
|
|
292
|
+
expected: "string",
|
|
293
|
+
value: input3.gene_id
|
|
294
|
+
}), "string" === typeof input3.gene_name || $report(_exceptionable2, {
|
|
295
|
+
path: _path2 + ".gene_name",
|
|
296
|
+
expected: "string",
|
|
297
|
+
value: input3.gene_name
|
|
298
|
+
})].every((flag) => flag);
|
|
299
|
+
const $vo5 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.xMin || $report(_exceptionable2, {
|
|
300
|
+
path: _path2 + ".xMin",
|
|
301
|
+
expected: "number",
|
|
302
|
+
value: input3.xMin
|
|
303
|
+
}), "number" === typeof input3.xMax || $report(_exceptionable2, {
|
|
304
|
+
path: _path2 + ".xMax",
|
|
305
|
+
expected: "number",
|
|
306
|
+
value: input3.xMax
|
|
307
|
+
}), "number" === typeof input3.yMin || $report(_exceptionable2, {
|
|
308
|
+
path: _path2 + ".yMin",
|
|
309
|
+
expected: "number",
|
|
310
|
+
value: input3.yMin
|
|
311
|
+
}), "number" === typeof input3.yMax || $report(_exceptionable2, {
|
|
312
|
+
path: _path2 + ".yMax",
|
|
313
|
+
expected: "number",
|
|
314
|
+
value: input3.yMax
|
|
315
|
+
}), "number" === typeof input3.pixelWidth || $report(_exceptionable2, {
|
|
316
|
+
path: _path2 + ".pixelWidth",
|
|
317
|
+
expected: "number",
|
|
318
|
+
value: input3.pixelWidth
|
|
319
|
+
}), "number" === typeof input3.pixelHeight || $report(_exceptionable2, {
|
|
320
|
+
path: _path2 + ".pixelHeight",
|
|
321
|
+
expected: "number",
|
|
322
|
+
value: input3.pixelHeight
|
|
323
|
+
}), "number" === typeof input3.plotLeft || $report(_exceptionable2, {
|
|
324
|
+
path: _path2 + ".plotLeft",
|
|
325
|
+
expected: "number",
|
|
326
|
+
value: input3.plotLeft
|
|
327
|
+
}), "number" === typeof input3.plotTop || $report(_exceptionable2, {
|
|
328
|
+
path: _path2 + ".plotTop",
|
|
329
|
+
expected: "number",
|
|
330
|
+
value: input3.plotTop
|
|
331
|
+
}), "number" === typeof input3.plotRight || $report(_exceptionable2, {
|
|
332
|
+
path: _path2 + ".plotRight",
|
|
333
|
+
expected: "number",
|
|
334
|
+
value: input3.plotRight
|
|
335
|
+
}), "number" === typeof input3.plotBottom || $report(_exceptionable2, {
|
|
336
|
+
path: _path2 + ".plotBottom",
|
|
337
|
+
expected: "number",
|
|
338
|
+
value: input3.plotBottom
|
|
339
|
+
}), "number" === typeof input3.minNonZeroPValue || $report(_exceptionable2, {
|
|
340
|
+
path: _path2 + ".minNonZeroPValue",
|
|
341
|
+
expected: "number",
|
|
342
|
+
value: input3.minNonZeroPValue
|
|
343
|
+
})].every((flag) => flag);
|
|
344
|
+
const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.src || $report(_exceptionable2, {
|
|
345
|
+
path: _path2 + ".src",
|
|
346
|
+
expected: "string",
|
|
347
|
+
value: input3.src
|
|
348
|
+
}), "number" === typeof input3.size || $report(_exceptionable2, {
|
|
349
|
+
path: _path2 + ".size",
|
|
350
|
+
expected: "number",
|
|
351
|
+
value: input3.size
|
|
352
|
+
}), "string" === typeof input3.key || $report(_exceptionable2, {
|
|
353
|
+
path: _path2 + ".key",
|
|
354
|
+
expected: "string",
|
|
355
|
+
value: input3.key
|
|
356
|
+
})].every((flag) => flag);
|
|
357
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
358
|
+
if (void 0 !== input3.sample_size1)
|
|
359
|
+
return $vo2(input3, _path2, _exceptionable2);
|
|
360
|
+
return $vo0(input3, _path2, _exceptionable2);
|
|
361
|
+
})();
|
|
362
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
363
|
+
path: _path + "",
|
|
364
|
+
expected: "(DEFullResponse | DEPreAnalysisResponse)",
|
|
365
|
+
value: input2
|
|
366
|
+
})) && $vu0(input2, _path + "", true) || $report(true, {
|
|
367
|
+
path: _path + "",
|
|
368
|
+
expected: "(DEFullResponse | DEPreAnalysisResponse)",
|
|
369
|
+
value: input2
|
|
370
|
+
});
|
|
371
|
+
})(input, "$input", true);
|
|
372
|
+
}
|
|
373
|
+
const success = 0 === errors.length;
|
|
374
|
+
return {
|
|
375
|
+
success,
|
|
376
|
+
errors,
|
|
377
|
+
data: success ? input : void 0
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
export {
|
|
382
|
+
diffExpPayload,
|
|
383
|
+
validDERequest,
|
|
384
|
+
validDEResponse
|
|
385
|
+
};
|
|
@@ -58,7 +58,7 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
58
58
|
const __is = (input2) => {
|
|
59
59
|
const $join = import_typia.createValidate.join;
|
|
60
60
|
const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
|
|
61
|
-
const $io1 = (input3) => Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && (
|
|
61
|
+
const $io1 = (input3) => Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && (void 0 === input3.metaResults || Array.isArray(input3.metaResults) && input3.metaResults.every((elem) => "object" === typeof elem && null !== elem && $io4(elem)));
|
|
62
62
|
const $io2 = (input3) => "string" === typeof input3.sample && (void 0 === input3.experiments || Array.isArray(input3.experiments) && input3.experiments.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && Object.keys(input3).every((key) => {
|
|
63
63
|
if (["sample", "experiments"].some((prop) => key === prop))
|
|
64
64
|
return true;
|
|
@@ -70,6 +70,7 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
70
70
|
return true;
|
|
71
71
|
});
|
|
72
72
|
const $io3 = (input3) => void 0 === input3.experimentID || "string" === typeof input3.experimentID;
|
|
73
|
+
const $io4 = (input3) => "string" === typeof input3.name;
|
|
73
74
|
const $iu0 = (input3) => (() => {
|
|
74
75
|
if (void 0 !== input3.status)
|
|
75
76
|
return $io0(input3);
|
|
@@ -108,34 +109,22 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
108
109
|
path: _path2 + ".samples",
|
|
109
110
|
expected: "Array<SingleCellSample>",
|
|
110
111
|
value: input3.samples
|
|
111
|
-
}), (Array.isArray(input3.
|
|
112
|
-
path: _path2 + ".
|
|
113
|
-
expected: "Array<
|
|
114
|
-
value: input3.
|
|
115
|
-
})) && input3.
|
|
116
|
-
path: _path2 + ".
|
|
117
|
-
expected: "
|
|
112
|
+
}), void 0 === input3.metaResults || (Array.isArray(input3.metaResults) || $report(_exceptionable2, {
|
|
113
|
+
path: _path2 + ".metaResults",
|
|
114
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
115
|
+
value: input3.metaResults
|
|
116
|
+
})) && input3.metaResults.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
117
|
+
path: _path2 + ".metaResults[" + _index2 + "]",
|
|
118
|
+
expected: "__type.o1",
|
|
118
119
|
value: elem
|
|
119
|
-
}))
|
|
120
|
-
path: _path2 + ".
|
|
121
|
-
expected: "
|
|
122
|
-
value: input3.fields
|
|
123
|
-
}), (Array.isArray(input3.columnNames) || $report(_exceptionable2, {
|
|
124
|
-
path: _path2 + ".columnNames",
|
|
125
|
-
expected: "Array<string>",
|
|
126
|
-
value: input3.columnNames
|
|
127
|
-
})) && input3.columnNames.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable2, {
|
|
128
|
-
path: _path2 + ".columnNames[" + _index3 + "]",
|
|
129
|
-
expected: "string",
|
|
120
|
+
})) && $vo4(elem, _path2 + ".metaResults[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
121
|
+
path: _path2 + ".metaResults[" + _index2 + "]",
|
|
122
|
+
expected: "__type.o1",
|
|
130
123
|
value: elem
|
|
131
124
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
132
|
-
path: _path2 + ".
|
|
133
|
-
expected: "Array<
|
|
134
|
-
value: input3.
|
|
135
|
-
}), void 0 === input3.sameLegend || "boolean" === typeof input3.sameLegend || $report(_exceptionable2, {
|
|
136
|
-
path: _path2 + ".sameLegend",
|
|
137
|
-
expected: "(boolean | undefined)",
|
|
138
|
-
value: input3.sameLegend
|
|
125
|
+
path: _path2 + ".metaResults",
|
|
126
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
127
|
+
value: input3.metaResults
|
|
139
128
|
})].every((flag) => flag);
|
|
140
129
|
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.sample || $report(_exceptionable2, {
|
|
141
130
|
path: _path2 + ".sample",
|
|
@@ -145,12 +134,12 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
145
134
|
path: _path2 + ".experiments",
|
|
146
135
|
expected: "(Array<__type> | undefined)",
|
|
147
136
|
value: input3.experiments
|
|
148
|
-
})) && input3.experiments.map((elem,
|
|
149
|
-
path: _path2 + ".experiments[" +
|
|
137
|
+
})) && input3.experiments.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
138
|
+
path: _path2 + ".experiments[" + _index3 + "]",
|
|
150
139
|
expected: "__type",
|
|
151
140
|
value: elem
|
|
152
|
-
})) && $vo3(elem, _path2 + ".experiments[" +
|
|
153
|
-
path: _path2 + ".experiments[" +
|
|
141
|
+
})) && $vo3(elem, _path2 + ".experiments[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
142
|
+
path: _path2 + ".experiments[" + _index3 + "]",
|
|
154
143
|
expected: "__type",
|
|
155
144
|
value: elem
|
|
156
145
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
@@ -172,6 +161,11 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
172
161
|
expected: "(string | undefined)",
|
|
173
162
|
value: input3.experimentID
|
|
174
163
|
})].every((flag) => flag);
|
|
164
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
165
|
+
path: _path2 + ".name",
|
|
166
|
+
expected: "string",
|
|
167
|
+
value: input3.name
|
|
168
|
+
})].every((flag) => flag);
|
|
175
169
|
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
176
170
|
if (void 0 !== input3.status)
|
|
177
171
|
return $vo0(input3, _path2, _exceptionable2);
|
|
@@ -22,7 +22,7 @@ var validTermdbSingleCellDataRequest = (input) => {
|
|
|
22
22
|
const errors = [];
|
|
23
23
|
const __is = (input2) => {
|
|
24
24
|
const $join = import_typia.createValidate.join;
|
|
25
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.sample && null !== input3.sample && $io1(input3.sample)) && (Array.isArray(input3.plots) && input3.plots.every((elem) => "string" === typeof elem)) && (void 0 === input3.gene || "string" === typeof input3.gene) && (void 0 === input3.colorBy || "string" === typeof input3.colorBy) && (void 0 === input3.colorMap || "object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) && $io2(input3.colorMap)) && true;
|
|
25
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.sample && null !== input3.sample && $io1(input3.sample)) && (Array.isArray(input3.plots) && input3.plots.every((elem) => "string" === typeof elem)) && (void 0 === input3.checkPlotAvailability || "boolean" === typeof input3.checkPlotAvailability) && (void 0 === input3.gene || "string" === typeof input3.gene) && (void 0 === input3.colorBy || "string" === typeof input3.colorBy) && (void 0 === input3.colorMap || "object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) && $io2(input3.colorMap)) && true;
|
|
26
26
|
const $io1 = (input3) => (void 0 === input3.eID || "string" === typeof input3.eID) && "string" === typeof input3.sID;
|
|
27
27
|
const $io2 = (input3) => Object.keys(input3).every((key) => {
|
|
28
28
|
const value = input3[key];
|
|
@@ -66,6 +66,10 @@ var validTermdbSingleCellDataRequest = (input) => {
|
|
|
66
66
|
path: _path2 + ".plots",
|
|
67
67
|
expected: "Array<string>",
|
|
68
68
|
value: input3.plots
|
|
69
|
+
}), void 0 === input3.checkPlotAvailability || "boolean" === typeof input3.checkPlotAvailability || $report(_exceptionable2, {
|
|
70
|
+
path: _path2 + ".checkPlotAvailability",
|
|
71
|
+
expected: "(boolean | undefined)",
|
|
72
|
+
value: input3.checkPlotAvailability
|
|
69
73
|
}), void 0 === input3.gene || "string" === typeof input3.gene || $report(_exceptionable2, {
|
|
70
74
|
path: _path2 + ".gene",
|
|
71
75
|
expected: "(string | undefined)",
|
package/dist/index.js
CHANGED
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
termdbSingleCellDEgenesPayload,
|
|
23
23
|
validTermdbSingleCellDEgenesRequest,
|
|
24
24
|
validTermdbSingleCellDEgenesResponse
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NLANDPY7.js";
|
|
26
26
|
import {
|
|
27
27
|
termdbSingleCellDataPayload,
|
|
28
28
|
validTermdbSingleCellDataRequest,
|
|
29
29
|
validTermdbSingleCellDataResponse
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Z3IYM5OK.js";
|
|
31
31
|
import {
|
|
32
32
|
termdbSingleCellSamplesPayload,
|
|
33
33
|
validTermdbSingleCellSamplesRequest,
|
|
34
34
|
validTermdbSingleCellSamplesResponse
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VCEWZVLZ.js";
|
|
36
36
|
import {
|
|
37
37
|
termChildrenPayload,
|
|
38
38
|
validTermChildrenRequest,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
diffMethPayload,
|
|
113
113
|
validDiffMethRequest,
|
|
114
114
|
validDiffMethResponse
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-CWJZUUEF.js";
|
|
116
116
|
import {
|
|
117
117
|
TermdbDmrPayload,
|
|
118
118
|
validTermdbDmrRequest,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
diffExpPayload,
|
|
153
153
|
validDERequest,
|
|
154
154
|
validDEResponse
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-UGGNWTJZ.js";
|
|
156
156
|
import {
|
|
157
157
|
termdbCategoriesPayload,
|
|
158
158
|
validCategoriesRequest,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
termdbClusterPayload,
|
|
170
170
|
validTermdbClusterRequest,
|
|
171
171
|
validTermdbClusterResponse
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-JMVDRHBL.js";
|
|
173
173
|
import {
|
|
174
174
|
termdbCohortSummaryPayload,
|
|
175
175
|
validTermdbCohortSummaryRequest,
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
genesetEnrichmentPayload,
|
|
230
230
|
validGenesetEnrichmentRequest,
|
|
231
231
|
validGenesetEnrichmentResponse
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-DII56MJ7.js";
|
|
233
233
|
import {
|
|
234
234
|
genesetOverrepresentationPayload,
|
|
235
235
|
validGenesetOverrepresentationRequest,
|
package/dist/termdb.DE.js
CHANGED
package/dist/termdb.cluster.js
CHANGED
package/dist/termdb.diffMeth.js
CHANGED