@sjcrh/proteinpaint-types 2.186.0 → 2.187.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-5N7V62ZL.js +231 -0
- package/dist/index.js +18 -10
- package/dist/termdb.profileForms2Scores.js +11 -0
- package/package.json +1 -1
- package/src/dataset.ts +2 -0
- package/src/routes/termdb.profileForms2Scores.ts +25 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-YNHC5SXO.js";
|
|
5
|
+
|
|
6
|
+
// dist/termdb.profileForms2Scores.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/termdb.profileForms2Scores.ts
|
|
10
|
+
var ProfileForms2ScoresPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "ProfileForms2ScoresRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "ProfileForms2ScoresResponse"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// dist/termdb.profileForms2Scores.ts
|
|
20
|
+
var validProfileForms2ScoresRequest = (input) => {
|
|
21
|
+
const errors = [];
|
|
22
|
+
const __is = (input2) => {
|
|
23
|
+
const $io0 = (input3) => Array.isArray(input3.scoreTerms) && input3.scoreTerms.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && (void 0 === input3.scScoreTerms || Array.isArray(input3.scScoreTerms) && input3.scScoreTerms.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && true && (void 0 === input3.filterByUserSites || "boolean" === typeof input3.filterByUserSites);
|
|
24
|
+
const $io1 = (input3) => "object" === typeof input3.term && null !== input3.term && "string" === typeof input3.term.id && true;
|
|
25
|
+
const $io3 = (input3) => "object" === typeof input3.term && null !== input3.term && "string" === typeof input3.term.id && true;
|
|
26
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
27
|
+
};
|
|
28
|
+
if (false === __is(input)) {
|
|
29
|
+
const $report = import_typia.createValidate.report(errors);
|
|
30
|
+
((input2, _path, _exceptionable = true) => {
|
|
31
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.scoreTerms) || $report(_exceptionable2, {
|
|
32
|
+
path: _path2 + ".scoreTerms",
|
|
33
|
+
expected: "Array<__type>",
|
|
34
|
+
value: input3.scoreTerms
|
|
35
|
+
})) && input3.scoreTerms.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
36
|
+
path: _path2 + ".scoreTerms[" + _index1 + "]",
|
|
37
|
+
expected: "__type",
|
|
38
|
+
value: elem
|
|
39
|
+
})) && $vo1(elem, _path2 + ".scoreTerms[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
40
|
+
path: _path2 + ".scoreTerms[" + _index1 + "]",
|
|
41
|
+
expected: "__type",
|
|
42
|
+
value: elem
|
|
43
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
44
|
+
path: _path2 + ".scoreTerms",
|
|
45
|
+
expected: "Array<__type>",
|
|
46
|
+
value: input3.scoreTerms
|
|
47
|
+
}), void 0 === input3.scScoreTerms || (Array.isArray(input3.scScoreTerms) || $report(_exceptionable2, {
|
|
48
|
+
path: _path2 + ".scScoreTerms",
|
|
49
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
50
|
+
value: input3.scScoreTerms
|
|
51
|
+
})) && input3.scScoreTerms.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
52
|
+
path: _path2 + ".scScoreTerms[" + _index2 + "]",
|
|
53
|
+
expected: "__type.o2",
|
|
54
|
+
value: elem
|
|
55
|
+
})) && $vo3(elem, _path2 + ".scScoreTerms[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
56
|
+
path: _path2 + ".scScoreTerms[" + _index2 + "]",
|
|
57
|
+
expected: "__type.o2",
|
|
58
|
+
value: elem
|
|
59
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
60
|
+
path: _path2 + ".scScoreTerms",
|
|
61
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
62
|
+
value: input3.scScoreTerms
|
|
63
|
+
}), true, void 0 === input3.filterByUserSites || "boolean" === typeof input3.filterByUserSites || $report(_exceptionable2, {
|
|
64
|
+
path: _path2 + ".filterByUserSites",
|
|
65
|
+
expected: "(boolean | undefined)",
|
|
66
|
+
value: input3.filterByUserSites
|
|
67
|
+
})].every((flag) => flag);
|
|
68
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
69
|
+
path: _path2 + ".term",
|
|
70
|
+
expected: "__type.o1",
|
|
71
|
+
value: input3.term
|
|
72
|
+
})) && $vo2(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
73
|
+
path: _path2 + ".term",
|
|
74
|
+
expected: "__type.o1",
|
|
75
|
+
value: input3.term
|
|
76
|
+
}), true].every((flag) => flag);
|
|
77
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
78
|
+
path: _path2 + ".id",
|
|
79
|
+
expected: "string",
|
|
80
|
+
value: input3.id
|
|
81
|
+
})].every((flag) => flag);
|
|
82
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
83
|
+
path: _path2 + ".term",
|
|
84
|
+
expected: "__type.o3",
|
|
85
|
+
value: input3.term
|
|
86
|
+
})) && $vo4(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
87
|
+
path: _path2 + ".term",
|
|
88
|
+
expected: "__type.o3",
|
|
89
|
+
value: input3.term
|
|
90
|
+
}), true].every((flag) => flag);
|
|
91
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
92
|
+
path: _path2 + ".id",
|
|
93
|
+
expected: "string",
|
|
94
|
+
value: input3.id
|
|
95
|
+
})].every((flag) => flag);
|
|
96
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
97
|
+
path: _path + "",
|
|
98
|
+
expected: "ProfileForms2ScoresRequest",
|
|
99
|
+
value: input2
|
|
100
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
101
|
+
path: _path + "",
|
|
102
|
+
expected: "ProfileForms2ScoresRequest",
|
|
103
|
+
value: input2
|
|
104
|
+
});
|
|
105
|
+
})(input, "$input", true);
|
|
106
|
+
}
|
|
107
|
+
const success = 0 === errors.length;
|
|
108
|
+
return {
|
|
109
|
+
success,
|
|
110
|
+
errors,
|
|
111
|
+
data: success ? input : void 0
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
var validProfileForms2ScoresResponse = (input) => {
|
|
115
|
+
const errors = [];
|
|
116
|
+
const __is = (input2) => {
|
|
117
|
+
const $join = import_typia.createValidate.join;
|
|
118
|
+
const $io0 = (input3) => "object" === typeof input3.term2Score && null !== input3.term2Score && false === Array.isArray(input3.term2Score) && $io1(input3.term2Score) && (Array.isArray(input3.sites) && input3.sites.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && "number" === typeof input3.n;
|
|
119
|
+
const $io1 = (input3) => Object.keys(input3).every((key) => {
|
|
120
|
+
const value = input3[key];
|
|
121
|
+
if (void 0 === value)
|
|
122
|
+
return true;
|
|
123
|
+
if (RegExp(/(.*)/).test(key))
|
|
124
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
|
|
125
|
+
return true;
|
|
126
|
+
});
|
|
127
|
+
const $io2 = (input3) => Object.keys(input3).every((key) => {
|
|
128
|
+
const value = input3[key];
|
|
129
|
+
if (void 0 === value)
|
|
130
|
+
return true;
|
|
131
|
+
if (RegExp(/(.*)/).test(key))
|
|
132
|
+
return "number" === typeof value;
|
|
133
|
+
return true;
|
|
134
|
+
});
|
|
135
|
+
const $io3 = (input3) => "string" === typeof input3.label && "string" === typeof input3.value;
|
|
136
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
137
|
+
};
|
|
138
|
+
if (false === __is(input)) {
|
|
139
|
+
const $report = import_typia.createValidate.report(errors);
|
|
140
|
+
((input2, _path, _exceptionable = true) => {
|
|
141
|
+
const $join = import_typia.createValidate.join;
|
|
142
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term2Score && null !== input3.term2Score && false === Array.isArray(input3.term2Score) || $report(_exceptionable2, {
|
|
143
|
+
path: _path2 + ".term2Score",
|
|
144
|
+
expected: "__type",
|
|
145
|
+
value: input3.term2Score
|
|
146
|
+
})) && $vo1(input3.term2Score, _path2 + ".term2Score", _exceptionable2) || $report(_exceptionable2, {
|
|
147
|
+
path: _path2 + ".term2Score",
|
|
148
|
+
expected: "__type",
|
|
149
|
+
value: input3.term2Score
|
|
150
|
+
}), (Array.isArray(input3.sites) || $report(_exceptionable2, {
|
|
151
|
+
path: _path2 + ".sites",
|
|
152
|
+
expected: "Array<__type>",
|
|
153
|
+
value: input3.sites
|
|
154
|
+
})) && input3.sites.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
155
|
+
path: _path2 + ".sites[" + _index1 + "]",
|
|
156
|
+
expected: "__type.o2",
|
|
157
|
+
value: elem
|
|
158
|
+
})) && $vo3(elem, _path2 + ".sites[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
159
|
+
path: _path2 + ".sites[" + _index1 + "]",
|
|
160
|
+
expected: "__type.o2",
|
|
161
|
+
value: elem
|
|
162
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
163
|
+
path: _path2 + ".sites",
|
|
164
|
+
expected: "Array<__type>",
|
|
165
|
+
value: input3.sites
|
|
166
|
+
}), "number" === typeof input3.n || $report(_exceptionable2, {
|
|
167
|
+
path: _path2 + ".n",
|
|
168
|
+
expected: "number",
|
|
169
|
+
value: input3.n
|
|
170
|
+
})].every((flag) => flag);
|
|
171
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
172
|
+
const value = input3[key];
|
|
173
|
+
if (void 0 === value)
|
|
174
|
+
return true;
|
|
175
|
+
if (RegExp(/(.*)/).test(key))
|
|
176
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable2, {
|
|
177
|
+
path: _path2 + $join(key),
|
|
178
|
+
expected: "__type.o1",
|
|
179
|
+
value
|
|
180
|
+
})) && $vo2(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
|
|
181
|
+
path: _path2 + $join(key),
|
|
182
|
+
expected: "__type.o1",
|
|
183
|
+
value
|
|
184
|
+
});
|
|
185
|
+
return true;
|
|
186
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
187
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
188
|
+
const value = input3[key];
|
|
189
|
+
if (void 0 === value)
|
|
190
|
+
return true;
|
|
191
|
+
if (RegExp(/(.*)/).test(key))
|
|
192
|
+
return "number" === typeof value || $report(_exceptionable2, {
|
|
193
|
+
path: _path2 + $join(key),
|
|
194
|
+
expected: "number",
|
|
195
|
+
value
|
|
196
|
+
});
|
|
197
|
+
return true;
|
|
198
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
199
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
|
|
200
|
+
path: _path2 + ".label",
|
|
201
|
+
expected: "string",
|
|
202
|
+
value: input3.label
|
|
203
|
+
}), "string" === typeof input3.value || $report(_exceptionable2, {
|
|
204
|
+
path: _path2 + ".value",
|
|
205
|
+
expected: "string",
|
|
206
|
+
value: input3.value
|
|
207
|
+
})].every((flag) => flag);
|
|
208
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
209
|
+
path: _path + "",
|
|
210
|
+
expected: "ProfileForms2ScoresResponse",
|
|
211
|
+
value: input2
|
|
212
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
213
|
+
path: _path + "",
|
|
214
|
+
expected: "ProfileForms2ScoresResponse",
|
|
215
|
+
value: input2
|
|
216
|
+
});
|
|
217
|
+
})(input, "$input", true);
|
|
218
|
+
}
|
|
219
|
+
const success = 0 === errors.length;
|
|
220
|
+
return {
|
|
221
|
+
success,
|
|
222
|
+
errors,
|
|
223
|
+
data: success ? input : void 0
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export {
|
|
228
|
+
ProfileForms2ScoresPayload,
|
|
229
|
+
validProfileForms2ScoresRequest,
|
|
230
|
+
validProfileForms2ScoresResponse
|
|
231
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
termdbTopVariablyExpressedGenesPayload,
|
|
3
|
+
validTermdbTopVariablyExpressedGenesRequest,
|
|
4
|
+
validTermdbTopVariablyExpressedGenesResponse
|
|
5
|
+
} from "./chunk-DPJUULKQ.js";
|
|
1
6
|
import {
|
|
2
7
|
validViolinBoxRequest,
|
|
3
8
|
validViolinBoxResponse,
|
|
@@ -18,6 +23,11 @@ import {
|
|
|
18
23
|
validWSISamplesResponse,
|
|
19
24
|
wsiSamplesPayload
|
|
20
25
|
} from "./chunk-2744ACBX.js";
|
|
26
|
+
import {
|
|
27
|
+
termdbSingleSampleMutationPayload,
|
|
28
|
+
validTermdbSingleSampleMutationRequest,
|
|
29
|
+
validTermdbSingleSampleMutationResponse
|
|
30
|
+
} from "./chunk-5L4VF3ZL.js";
|
|
21
31
|
import {
|
|
22
32
|
termdbSingleCellDEgenesPayload,
|
|
23
33
|
validTermdbSingleCellDEgenesRequest,
|
|
@@ -53,16 +63,16 @@ import {
|
|
|
53
63
|
validTermdbTopTermsByTypeRequest,
|
|
54
64
|
validTermdbTopTermsByTypeResponse
|
|
55
65
|
} from "./chunk-AYTV7V46.js";
|
|
56
|
-
import {
|
|
57
|
-
termdbTopVariablyExpressedGenesPayload,
|
|
58
|
-
validTermdbTopVariablyExpressedGenesRequest,
|
|
59
|
-
validTermdbTopVariablyExpressedGenesResponse
|
|
60
|
-
} from "./chunk-DPJUULKQ.js";
|
|
61
66
|
import {
|
|
62
67
|
ProfileFormScoresPayload,
|
|
63
68
|
validProfileFormScoresRequest,
|
|
64
69
|
validProfileFormScoresResponse
|
|
65
70
|
} from "./chunk-ZIOJDN75.js";
|
|
71
|
+
import {
|
|
72
|
+
ProfileForms2ScoresPayload,
|
|
73
|
+
validProfileForms2ScoresRequest,
|
|
74
|
+
validProfileForms2ScoresResponse
|
|
75
|
+
} from "./chunk-5N7V62ZL.js";
|
|
66
76
|
import {
|
|
67
77
|
ProfileScoresPayload,
|
|
68
78
|
validProfileScoresRequest,
|
|
@@ -93,11 +103,6 @@ import {
|
|
|
93
103
|
validTermdbSampleScatterRequest,
|
|
94
104
|
validTermdbSampleScatterResponse
|
|
95
105
|
} from "./chunk-RXJNXOZC.js";
|
|
96
|
-
import {
|
|
97
|
-
termdbSingleSampleMutationPayload,
|
|
98
|
-
validTermdbSingleSampleMutationRequest,
|
|
99
|
-
validTermdbSingleSampleMutationResponse
|
|
100
|
-
} from "./chunk-5L4VF3ZL.js";
|
|
101
106
|
import {
|
|
102
107
|
termdbCohortsPayload,
|
|
103
108
|
validTermdbCohortsRequest,
|
|
@@ -338,6 +343,7 @@ export {
|
|
|
338
343
|
GRIN2Payload,
|
|
339
344
|
GdcMafPayload,
|
|
340
345
|
ProfileFormScoresPayload,
|
|
346
|
+
ProfileForms2ScoresPayload,
|
|
341
347
|
ProfileScoresPayload,
|
|
342
348
|
TermdbDmrPayload,
|
|
343
349
|
TermdbIsoformAvailabilityPayload,
|
|
@@ -465,6 +471,8 @@ export {
|
|
|
465
471
|
validPercentileResponse,
|
|
466
472
|
validProfileFormScoresRequest,
|
|
467
473
|
validProfileFormScoresResponse,
|
|
474
|
+
validProfileForms2ScoresRequest,
|
|
475
|
+
validProfileForms2ScoresResponse,
|
|
468
476
|
validProfileScoresRequest,
|
|
469
477
|
validProfileScoresResponse,
|
|
470
478
|
validRootTermRequest,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProfileForms2ScoresPayload,
|
|
3
|
+
validProfileForms2ScoresRequest,
|
|
4
|
+
validProfileForms2ScoresResponse
|
|
5
|
+
} from "./chunk-5N7V62ZL.js";
|
|
6
|
+
import "./chunk-YNHC5SXO.js";
|
|
7
|
+
export {
|
|
8
|
+
ProfileForms2ScoresPayload,
|
|
9
|
+
validProfileForms2ScoresRequest,
|
|
10
|
+
validProfileForms2ScoresResponse
|
|
11
|
+
};
|
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -740,6 +740,8 @@ export type ProteomeAbundanceQuery = {
|
|
|
740
740
|
overlayTerm: BaseTerm
|
|
741
741
|
columnIdx: number
|
|
742
742
|
columnValue?: string
|
|
743
|
+
/** genome assembly name for this organism, e.g. 'hg38' or 'mm10' */
|
|
744
|
+
genomeName?: string
|
|
743
745
|
assays: {
|
|
744
746
|
[assayName: string]: ProteomeAssayConfig
|
|
745
747
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.js'
|
|
2
|
+
|
|
3
|
+
export type ProfileForms2ScoresRequest = {
|
|
4
|
+
// q is optional: term wrappers from getMultivalueTWs() carry no q field,
|
|
5
|
+
// and JSON.stringify drops `q: undefined`, so the field may be absent on the wire.
|
|
6
|
+
scoreTerms: { term: { id: string }; q?: any }[]
|
|
7
|
+
scScoreTerms?: { term: { id: string }; q?: any }[]
|
|
8
|
+
filter?: any
|
|
9
|
+
filterByUserSites?: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ProfileForms2ScoresResponse = {
|
|
13
|
+
term2Score: { [termId: string]: { [category: string]: number } }
|
|
14
|
+
sites: { label: string; value: string }[]
|
|
15
|
+
n: number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const ProfileForms2ScoresPayload: RoutePayload = {
|
|
19
|
+
request: {
|
|
20
|
+
typeId: 'ProfileForms2ScoresRequest'
|
|
21
|
+
},
|
|
22
|
+
response: {
|
|
23
|
+
typeId: 'ProfileForms2ScoresResponse'
|
|
24
|
+
}
|
|
25
|
+
}
|