@sjcrh/proteinpaint-types 2.138.1 → 2.138.3-2
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/aiProjectAdmin.js +11 -0
- package/dist/aiProjectList.js +11 -0
- package/dist/chunk-4KJDCFS4.js +123 -0
- package/dist/chunk-EAHOJPLM.js +96 -0
- package/dist/{chunk-EGEOFGXO.js → chunk-FYRWYZEE.js} +63 -49
- package/dist/{chunk-RWMZSRX7.js → chunk-KRYTJ2SL.js} +2 -2
- package/dist/{chunk-XH7LJZRQ.js → chunk-LDQNJLYQ.js} +2 -2
- package/dist/{chunk-Z2VOERJ2.js → chunk-VHEL5P6L.js} +2 -2
- package/dist/{chunk-O7IJ2JNI.js → chunk-XJU4JALX.js} +2 -2
- package/dist/gdc.grin2.js +1 -1
- package/dist/grin2.js +1 -1
- package/dist/healthcheck.js +1 -1
- package/dist/index.js +72 -56
- package/dist/sampleWsiAiApi.js +1 -1
- package/dist/samplewsimages.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +21 -4
- package/src/index.ts +2 -0
- package/src/routes/aiProjectAdmin.ts +26 -0
- package/src/routes/aiProjectList.ts +20 -0
- package/src/routes/samplewsimages.ts +22 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
aiProjectAdminPayload,
|
|
3
|
+
validAIProjectAdminRequest,
|
|
4
|
+
validAIProjectAdminResponse
|
|
5
|
+
} from "./chunk-4KJDCFS4.js";
|
|
6
|
+
import "./chunk-CNSSF43V.js";
|
|
7
|
+
export {
|
|
8
|
+
aiProjectAdminPayload,
|
|
9
|
+
validAIProjectAdminRequest,
|
|
10
|
+
validAIProjectAdminResponse
|
|
11
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-CNSSF43V.js";
|
|
5
|
+
|
|
6
|
+
// dist/aiProjectAdmin.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/aiProjectAdmin.ts
|
|
10
|
+
var aiProjectAdminPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "AIProjectAdminRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "AIProjectAdminResponse"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// dist/aiProjectAdmin.ts
|
|
20
|
+
var validAIProjectAdminRequest = (input) => {
|
|
21
|
+
const errors = [];
|
|
22
|
+
const __is = (input2) => {
|
|
23
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.project && null !== input3.project && $io1(input3.project));
|
|
24
|
+
const $io1 = (input3) => "string" === typeof input3.name && (void 0 === input3.id || "number" === typeof input3.id) && (void 0 === input3.fitler || "string" === typeof input3.fitler) && (void 0 === input3.classes || Array.isArray(input3.classes));
|
|
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) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
31
|
+
path: _path2 + ".genome",
|
|
32
|
+
expected: "string",
|
|
33
|
+
value: input3.genome
|
|
34
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
35
|
+
path: _path2 + ".dslabel",
|
|
36
|
+
expected: "string",
|
|
37
|
+
value: input3.dslabel
|
|
38
|
+
}), ("object" === typeof input3.project && null !== input3.project || $report(_exceptionable2, {
|
|
39
|
+
path: _path2 + ".project",
|
|
40
|
+
expected: "__type",
|
|
41
|
+
value: input3.project
|
|
42
|
+
})) && $vo1(input3.project, _path2 + ".project", _exceptionable2) || $report(_exceptionable2, {
|
|
43
|
+
path: _path2 + ".project",
|
|
44
|
+
expected: "__type",
|
|
45
|
+
value: input3.project
|
|
46
|
+
})].every((flag) => flag);
|
|
47
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
48
|
+
path: _path2 + ".name",
|
|
49
|
+
expected: "string",
|
|
50
|
+
value: input3.name
|
|
51
|
+
}), void 0 === input3.id || "number" === typeof input3.id || $report(_exceptionable2, {
|
|
52
|
+
path: _path2 + ".id",
|
|
53
|
+
expected: "(number | undefined)",
|
|
54
|
+
value: input3.id
|
|
55
|
+
}), void 0 === input3.fitler || "string" === typeof input3.fitler || $report(_exceptionable2, {
|
|
56
|
+
path: _path2 + ".fitler",
|
|
57
|
+
expected: "(string | undefined)",
|
|
58
|
+
value: input3.fitler
|
|
59
|
+
}), void 0 === input3.classes || Array.isArray(input3.classes) || $report(_exceptionable2, {
|
|
60
|
+
path: _path2 + ".classes",
|
|
61
|
+
expected: "(Array<any> | undefined)",
|
|
62
|
+
value: input3.classes
|
|
63
|
+
})].every((flag) => flag);
|
|
64
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
65
|
+
path: _path + "",
|
|
66
|
+
expected: "AIProjectAdminRequest",
|
|
67
|
+
value: input2
|
|
68
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
69
|
+
path: _path + "",
|
|
70
|
+
expected: "AIProjectAdminRequest",
|
|
71
|
+
value: input2
|
|
72
|
+
});
|
|
73
|
+
})(input, "$input", true);
|
|
74
|
+
}
|
|
75
|
+
const success = 0 === errors.length;
|
|
76
|
+
return {
|
|
77
|
+
success,
|
|
78
|
+
errors,
|
|
79
|
+
data: success ? input : void 0
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
var validAIProjectAdminResponse = (input) => {
|
|
83
|
+
const errors = [];
|
|
84
|
+
const __is = (input2) => {
|
|
85
|
+
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
|
|
86
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
87
|
+
};
|
|
88
|
+
if (false === __is(input)) {
|
|
89
|
+
const $report = import_typia.createValidate.report(errors);
|
|
90
|
+
((input2, _path, _exceptionable = true) => {
|
|
91
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
92
|
+
path: _path2 + ".status",
|
|
93
|
+
expected: '("error" | "ok")',
|
|
94
|
+
value: input3.status
|
|
95
|
+
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
96
|
+
path: _path2 + ".error",
|
|
97
|
+
expected: "(string | undefined)",
|
|
98
|
+
value: input3.error
|
|
99
|
+
})].every((flag) => flag);
|
|
100
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
101
|
+
path: _path + "",
|
|
102
|
+
expected: "AIProjectAdminResponse",
|
|
103
|
+
value: input2
|
|
104
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
105
|
+
path: _path + "",
|
|
106
|
+
expected: "AIProjectAdminResponse",
|
|
107
|
+
value: input2
|
|
108
|
+
});
|
|
109
|
+
})(input, "$input", true);
|
|
110
|
+
}
|
|
111
|
+
const success = 0 === errors.length;
|
|
112
|
+
return {
|
|
113
|
+
success,
|
|
114
|
+
errors,
|
|
115
|
+
data: success ? input : void 0
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export {
|
|
120
|
+
aiProjectAdminPayload,
|
|
121
|
+
validAIProjectAdminRequest,
|
|
122
|
+
validAIProjectAdminResponse
|
|
123
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-CNSSF43V.js";
|
|
5
|
+
|
|
6
|
+
// dist/aiProjectList.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/aiProjectList.ts
|
|
10
|
+
var aiProjectListPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "AIProjectListRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "AIProjectListResponse"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// dist/aiProjectList.ts
|
|
20
|
+
var validAIProjectListRequest = (input) => {
|
|
21
|
+
const errors = [];
|
|
22
|
+
const __is = (input2) => {
|
|
23
|
+
return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel);
|
|
24
|
+
};
|
|
25
|
+
if (false === __is(input)) {
|
|
26
|
+
const $report = import_typia.createValidate.report(errors);
|
|
27
|
+
((input2, _path, _exceptionable = true) => {
|
|
28
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
29
|
+
path: _path2 + ".genome",
|
|
30
|
+
expected: "string",
|
|
31
|
+
value: input3.genome
|
|
32
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
33
|
+
path: _path2 + ".dslabel",
|
|
34
|
+
expected: "string",
|
|
35
|
+
value: input3.dslabel
|
|
36
|
+
})].every((flag) => flag);
|
|
37
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
38
|
+
path: _path + "",
|
|
39
|
+
expected: "AIProjectListRequest",
|
|
40
|
+
value: input2
|
|
41
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
42
|
+
path: _path + "",
|
|
43
|
+
expected: "AIProjectListRequest",
|
|
44
|
+
value: input2
|
|
45
|
+
});
|
|
46
|
+
})(input, "$input", true);
|
|
47
|
+
}
|
|
48
|
+
const success = 0 === errors.length;
|
|
49
|
+
return {
|
|
50
|
+
success,
|
|
51
|
+
errors,
|
|
52
|
+
data: success ? input : void 0
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
var validAIProjectListResponse = (input) => {
|
|
56
|
+
const errors = [];
|
|
57
|
+
const __is = (input2) => {
|
|
58
|
+
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
|
|
59
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
60
|
+
};
|
|
61
|
+
if (false === __is(input)) {
|
|
62
|
+
const $report = import_typia.createValidate.report(errors);
|
|
63
|
+
((input2, _path, _exceptionable = true) => {
|
|
64
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
65
|
+
path: _path2 + ".status",
|
|
66
|
+
expected: '("error" | "ok")',
|
|
67
|
+
value: input3.status
|
|
68
|
+
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
69
|
+
path: _path2 + ".error",
|
|
70
|
+
expected: "(string | undefined)",
|
|
71
|
+
value: input3.error
|
|
72
|
+
})].every((flag) => flag);
|
|
73
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
74
|
+
path: _path + "",
|
|
75
|
+
expected: "AIProjectListResponse",
|
|
76
|
+
value: input2
|
|
77
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
78
|
+
path: _path + "",
|
|
79
|
+
expected: "AIProjectListResponse",
|
|
80
|
+
value: input2
|
|
81
|
+
});
|
|
82
|
+
})(input, "$input", true);
|
|
83
|
+
}
|
|
84
|
+
const success = 0 === errors.length;
|
|
85
|
+
return {
|
|
86
|
+
success,
|
|
87
|
+
errors,
|
|
88
|
+
data: success ? input : void 0
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
aiProjectListPayload,
|
|
94
|
+
validAIProjectListRequest,
|
|
95
|
+
validAIProjectListResponse
|
|
96
|
+
};
|
|
@@ -21,7 +21,7 @@ var sampleWSImagesPayload = {
|
|
|
21
21
|
var validSampleWSImagesRequest = (input) => {
|
|
22
22
|
const errors = [];
|
|
23
23
|
const __is = (input2) => {
|
|
24
|
-
return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel && "string" === typeof input2.sample_id && "string" === typeof input2.wsimage
|
|
24
|
+
return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel && "string" === typeof input2.sample_id && "string" === typeof input2.wsimage);
|
|
25
25
|
};
|
|
26
26
|
if (false === __is(input)) {
|
|
27
27
|
const $report = import_typia.createValidate.report(errors);
|
|
@@ -42,10 +42,6 @@ var validSampleWSImagesRequest = (input) => {
|
|
|
42
42
|
path: _path2 + ".wsimage",
|
|
43
43
|
expected: "string",
|
|
44
44
|
value: input3.wsimage
|
|
45
|
-
}), "number" === typeof input3.index || $report(_exceptionable2, {
|
|
46
|
-
path: _path2 + ".index",
|
|
47
|
-
expected: "number",
|
|
48
|
-
value: input3.index
|
|
49
45
|
})].every((flag) => flag);
|
|
50
46
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
51
47
|
path: _path + "",
|
|
@@ -69,9 +65,10 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
69
65
|
const errors = [];
|
|
70
66
|
const __is = (input2) => {
|
|
71
67
|
const $io0 = (input3) => Array.isArray(input3.sampleWSImages) && input3.sampleWSImages.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
|
|
72
|
-
const $io1 = (input3) => "string" === typeof input3.filename && (void 0 === input3.overlays || Array.isArray(input3.overlays) && input3.overlays.every((elem) => "string" === typeof elem)) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && (void 0 === input3.
|
|
73
|
-
const $io2 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && "string" === typeof input3
|
|
74
|
-
const $io3 = (input3) => "number" === typeof input3.
|
|
68
|
+
const $io1 = (input3) => "string" === typeof input3.filename && (void 0 === input3.overlays || Array.isArray(input3.overlays) && input3.overlays.every((elem) => "string" === typeof elem)) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && "string" === typeof input3.metadata && (void 0 === input3.annotationsData || Array.isArray(input3.annotationsData) && input3.annotationsData.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.predictions || Array.isArray(input3.predictions) && input3.predictions.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.classes || Array.isArray(input3.classes) && input3.classes.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && true && (void 0 === input3.activePatchColor || "string" === typeof input3.activePatchColor) && (void 0 === input3.tileSize || "number" === typeof input3.tileSize);
|
|
69
|
+
const $io2 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && "string" === typeof input3["class"];
|
|
70
|
+
const $io3 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && "string" === typeof input3.type && "string" === typeof input3["class"] && "number" === typeof input3.uncertainty;
|
|
71
|
+
const $io4 = (input3) => "number" === typeof input3.id && "string" === typeof input3.shortcut && "string" === typeof input3.label && "string" === typeof input3.color;
|
|
75
72
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
76
73
|
};
|
|
77
74
|
if (false === __is(input)) {
|
|
@@ -122,57 +119,42 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
122
119
|
path: _path2 + ".predictionLayers",
|
|
123
120
|
expected: "(Array<string> | undefined)",
|
|
124
121
|
value: input3.predictionLayers
|
|
125
|
-
}), void 0 === input3.zoomInPoints || (Array.isArray(input3.zoomInPoints) || $report(_exceptionable2, {
|
|
126
|
-
path: _path2 + ".zoomInPoints",
|
|
127
|
-
expected: "(Array<[number, number]> | undefined)",
|
|
128
|
-
value: input3.zoomInPoints
|
|
129
|
-
})) && input3.zoomInPoints.map((elem, _index4) => (Array.isArray(elem) || $report(_exceptionable2, {
|
|
130
|
-
path: _path2 + ".zoomInPoints[" + _index4 + "]",
|
|
131
|
-
expected: "[number, number]",
|
|
132
|
-
value: elem
|
|
133
|
-
})) && ((elem.length === 2 || $report(_exceptionable2, {
|
|
134
|
-
path: _path2 + ".zoomInPoints[" + _index4 + "]",
|
|
135
|
-
expected: "[number, number]",
|
|
136
|
-
value: elem
|
|
137
|
-
})) && [
|
|
138
|
-
"number" === typeof elem[0] || $report(_exceptionable2, {
|
|
139
|
-
path: _path2 + ".zoomInPoints[" + _index4 + "][0]",
|
|
140
|
-
expected: "number",
|
|
141
|
-
value: elem[0]
|
|
142
|
-
}),
|
|
143
|
-
"number" === typeof elem[1] || $report(_exceptionable2, {
|
|
144
|
-
path: _path2 + ".zoomInPoints[" + _index4 + "][1]",
|
|
145
|
-
expected: "number",
|
|
146
|
-
value: elem[1]
|
|
147
|
-
})
|
|
148
|
-
].every((flag) => flag)) || $report(_exceptionable2, {
|
|
149
|
-
path: _path2 + ".zoomInPoints[" + _index4 + "]",
|
|
150
|
-
expected: "[number, number]",
|
|
151
|
-
value: elem
|
|
152
|
-
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
153
|
-
path: _path2 + ".zoomInPoints",
|
|
154
|
-
expected: "(Array<[number, number]> | undefined)",
|
|
155
|
-
value: input3.zoomInPoints
|
|
156
122
|
}), "string" === typeof input3.metadata || $report(_exceptionable2, {
|
|
157
123
|
path: _path2 + ".metadata",
|
|
158
124
|
expected: "string",
|
|
159
125
|
value: input3.metadata
|
|
160
126
|
}), void 0 === input3.annotationsData || (Array.isArray(input3.annotationsData) || $report(_exceptionable2, {
|
|
161
127
|
path: _path2 + ".annotationsData",
|
|
162
|
-
expected: "(Array<
|
|
128
|
+
expected: "(Array<Annotation> | undefined)",
|
|
163
129
|
value: input3.annotationsData
|
|
164
|
-
})) && input3.annotationsData.map((elem,
|
|
165
|
-
path: _path2 + ".annotationsData[" +
|
|
166
|
-
expected: "
|
|
130
|
+
})) && input3.annotationsData.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
131
|
+
path: _path2 + ".annotationsData[" + _index4 + "]",
|
|
132
|
+
expected: "Annotation",
|
|
167
133
|
value: elem
|
|
168
|
-
})) && $vo2(elem, _path2 + ".annotationsData[" +
|
|
169
|
-
path: _path2 + ".annotationsData[" +
|
|
170
|
-
expected: "
|
|
134
|
+
})) && $vo2(elem, _path2 + ".annotationsData[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
135
|
+
path: _path2 + ".annotationsData[" + _index4 + "]",
|
|
136
|
+
expected: "Annotation",
|
|
171
137
|
value: elem
|
|
172
138
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
173
139
|
path: _path2 + ".annotationsData",
|
|
174
|
-
expected: "(Array<
|
|
140
|
+
expected: "(Array<Annotation> | undefined)",
|
|
175
141
|
value: input3.annotationsData
|
|
142
|
+
}), void 0 === input3.predictions || (Array.isArray(input3.predictions) || $report(_exceptionable2, {
|
|
143
|
+
path: _path2 + ".predictions",
|
|
144
|
+
expected: "(Array<Prediction> | undefined)",
|
|
145
|
+
value: input3.predictions
|
|
146
|
+
})) && input3.predictions.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
147
|
+
path: _path2 + ".predictions[" + _index5 + "]",
|
|
148
|
+
expected: "Prediction",
|
|
149
|
+
value: elem
|
|
150
|
+
})) && $vo3(elem, _path2 + ".predictions[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
151
|
+
path: _path2 + ".predictions[" + _index5 + "]",
|
|
152
|
+
expected: "Prediction",
|
|
153
|
+
value: elem
|
|
154
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
155
|
+
path: _path2 + ".predictions",
|
|
156
|
+
expected: "(Array<Prediction> | undefined)",
|
|
157
|
+
value: input3.predictions
|
|
176
158
|
}), void 0 === input3.classes || (Array.isArray(input3.classes) || $report(_exceptionable2, {
|
|
177
159
|
path: _path2 + ".classes",
|
|
178
160
|
expected: "(Array<WSIClass> | undefined)",
|
|
@@ -181,7 +163,7 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
181
163
|
path: _path2 + ".classes[" + _index6 + "]",
|
|
182
164
|
expected: "WSIClass",
|
|
183
165
|
value: elem
|
|
184
|
-
})) && $
|
|
166
|
+
})) && $vo4(elem, _path2 + ".classes[" + _index6 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
185
167
|
path: _path2 + ".classes[" + _index6 + "]",
|
|
186
168
|
expected: "WSIClass",
|
|
187
169
|
value: elem
|
|
@@ -193,6 +175,10 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
193
175
|
path: _path2 + ".activePatchColor",
|
|
194
176
|
expected: "(string | undefined)",
|
|
195
177
|
value: input3.activePatchColor
|
|
178
|
+
}), void 0 === input3.tileSize || "number" === typeof input3.tileSize || $report(_exceptionable2, {
|
|
179
|
+
path: _path2 + ".tileSize",
|
|
180
|
+
expected: "(number | undefined)",
|
|
181
|
+
value: input3.tileSize
|
|
196
182
|
})].every((flag) => flag);
|
|
197
183
|
const $vo2 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
|
|
198
184
|
path: _path2 + ".zoomCoordinates",
|
|
@@ -217,6 +203,34 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
217
203
|
path: _path2 + ".zoomCoordinates",
|
|
218
204
|
expected: "[number, number]",
|
|
219
205
|
value: input3.zoomCoordinates
|
|
206
|
+
}), "string" === typeof input3["class"] || $report(_exceptionable2, {
|
|
207
|
+
path: _path2 + '["class"]',
|
|
208
|
+
expected: "string",
|
|
209
|
+
value: input3["class"]
|
|
210
|
+
})].every((flag) => flag);
|
|
211
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
|
|
212
|
+
path: _path2 + ".zoomCoordinates",
|
|
213
|
+
expected: "[number, number]",
|
|
214
|
+
value: input3.zoomCoordinates
|
|
215
|
+
})) && ((input3.zoomCoordinates.length === 2 || $report(_exceptionable2, {
|
|
216
|
+
path: _path2 + ".zoomCoordinates",
|
|
217
|
+
expected: "[number, number]",
|
|
218
|
+
value: input3.zoomCoordinates
|
|
219
|
+
})) && [
|
|
220
|
+
"number" === typeof input3.zoomCoordinates[0] || $report(_exceptionable2, {
|
|
221
|
+
path: _path2 + ".zoomCoordinates[0]",
|
|
222
|
+
expected: "number",
|
|
223
|
+
value: input3.zoomCoordinates[0]
|
|
224
|
+
}),
|
|
225
|
+
"number" === typeof input3.zoomCoordinates[1] || $report(_exceptionable2, {
|
|
226
|
+
path: _path2 + ".zoomCoordinates[1]",
|
|
227
|
+
expected: "number",
|
|
228
|
+
value: input3.zoomCoordinates[1]
|
|
229
|
+
})
|
|
230
|
+
].every((flag) => flag)) || $report(_exceptionable2, {
|
|
231
|
+
path: _path2 + ".zoomCoordinates",
|
|
232
|
+
expected: "[number, number]",
|
|
233
|
+
value: input3.zoomCoordinates
|
|
220
234
|
}), "string" === typeof input3.type || $report(_exceptionable2, {
|
|
221
235
|
path: _path2 + ".type",
|
|
222
236
|
expected: "string",
|
|
@@ -230,7 +244,7 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
230
244
|
expected: "number",
|
|
231
245
|
value: input3.uncertainty
|
|
232
246
|
})].every((flag) => flag);
|
|
233
|
-
const $
|
|
247
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.id || $report(_exceptionable2, {
|
|
234
248
|
path: _path2 + ".id",
|
|
235
249
|
expected: "number",
|
|
236
250
|
value: input3.id
|
|
@@ -65,7 +65,7 @@ var validHealthCheckResponse = (input) => {
|
|
|
65
65
|
const errors = [];
|
|
66
66
|
const __is = (input2) => {
|
|
67
67
|
const $join = import_typia.createValidate.join;
|
|
68
|
-
const $io0 = (input3) => ("
|
|
68
|
+
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && ("object" === typeof input3.genomes && null !== input3.genomes && false === Array.isArray(input3.genomes) && $io1(input3.genomes)) && ("object" === typeof input3.versionInfo && null !== input3.versionInfo && $io6(input3.versionInfo)) && (void 0 === input3.byDataset || "object" === typeof input3.byDataset && null !== input3.byDataset && false === Array.isArray(input3.byDataset) && $io9(input3.byDataset)) && (void 0 === input3.auth || "object" === typeof input3.auth && null !== input3.auth && false === Array.isArray(input3.auth) && $io10(input3.auth)) && (void 0 === input3.w || Array.isArray(input3.w) && input3.w.every((elem) => "number" === typeof elem)) && (void 0 === input3.rs || "number" === typeof input3.rs);
|
|
69
69
|
const $io1 = (input3) => Object.keys(input3).every((key) => {
|
|
70
70
|
const value = input3[key];
|
|
71
71
|
if (void 0 === value)
|
|
@@ -117,7 +117,7 @@ var validHealthCheckResponse = (input) => {
|
|
|
117
117
|
const $report = import_typia.createValidate.report(errors);
|
|
118
118
|
((input2, _path, _exceptionable = true) => {
|
|
119
119
|
const $join = import_typia.createValidate.join;
|
|
120
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["
|
|
120
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
121
121
|
path: _path2 + ".status",
|
|
122
122
|
expected: '("error" | "ok")',
|
|
123
123
|
value: input3.status
|
|
@@ -457,7 +457,7 @@ var validRunGRIN2Response = (input) => {
|
|
|
457
457
|
const errors = [];
|
|
458
458
|
const __is = (input2) => {
|
|
459
459
|
const $join = import_typia.createValidate.join;
|
|
460
|
-
const $io0 = (input3) => ("
|
|
460
|
+
const $io0 = (input3) => ("error" === input3.status || "success" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && true && (void 0 === input3.rustResult || "object" === typeof input3.rustResult && null !== input3.rustResult && $io1(input3.rustResult)) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io11(input3.timing));
|
|
461
461
|
const $io1 = (input3) => "string" === typeof input3.successful_data && (Array.isArray(input3.failed_files) && input3.failed_files.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && ("object" === typeof input3.summary && null !== input3.summary && $io3(input3.summary));
|
|
462
462
|
const $io2 = (input3) => "string" === typeof input3.case_id && "string" === typeof input3.data_type && "string" === typeof input3.error_type && "string" === typeof input3.error_details && "number" === typeof input3.attempts_made;
|
|
463
463
|
const $io3 = (input3) => "summary" === input3.type && "number" === typeof input3.total_files && "number" === typeof input3.successful_files && "number" === typeof input3.failed_files && (Array.isArray(input3.errors) && input3.errors.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && "number" === typeof input3.filtered_records && "number" === typeof input3.filtered_maf_records && "number" === typeof input3.filtered_cnv_records && "number" === typeof input3.included_maf_records && "number" === typeof input3.included_cnv_records && ("object" === typeof input3.filtered_records_by_case && null !== input3.filtered_records_by_case && false === Array.isArray(input3.filtered_records_by_case) && $io4(input3.filtered_records_by_case)) && ("object" === typeof input3.hyper_mutator_records && null !== input3.hyper_mutator_records && false === Array.isArray(input3.hyper_mutator_records) && $io10(input3.hyper_mutator_records)) && ("object" === typeof input3.excluded_by_max_record && null !== input3.excluded_by_max_record && false === Array.isArray(input3.excluded_by_max_record) && $io10(input3.excluded_by_max_record));
|
|
@@ -503,7 +503,7 @@ var validRunGRIN2Response = (input) => {
|
|
|
503
503
|
const $report = import_typia.createValidate.report(errors);
|
|
504
504
|
((input2, _path, _exceptionable = true) => {
|
|
505
505
|
const $join = import_typia.createValidate.join;
|
|
506
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["
|
|
506
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "success" === input3.status || $report(_exceptionable2, {
|
|
507
507
|
path: _path2 + ".status",
|
|
508
508
|
expected: '("error" | "success")',
|
|
509
509
|
value: input3.status
|
|
@@ -146,7 +146,7 @@ var validGRIN2Request = (input) => {
|
|
|
146
146
|
var validGRIN2Response = (input) => {
|
|
147
147
|
const errors = [];
|
|
148
148
|
const __is = (input2) => {
|
|
149
|
-
const $io0 = (input3) => ("
|
|
149
|
+
const $io0 = (input3) => ("error" === input3.status || "success" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && true && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io1(input3.topGeneTable)) && (void 0 === input3.totalGenes || "number" === typeof input3.totalGenes) && (void 0 === input3.showingTop || "number" === typeof input3.showingTop) && (void 0 === input3.timing || "object" === typeof input3.timing && null !== input3.timing && $io4(input3.timing)) && (void 0 === input3.processingSummary || "object" === typeof input3.processingSummary && null !== input3.processingSummary && $io5(input3.processingSummary));
|
|
150
150
|
const $io1 = (input3) => Array.isArray(input3.columns) && input3.columns.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && $io3(elem2))));
|
|
151
151
|
const $io2 = (input3) => "string" === typeof input3.label && "boolean" === typeof input3.sortable;
|
|
152
152
|
const $io3 = (input3) => "string" === typeof input3.value || "number" === typeof input3.value;
|
|
@@ -158,7 +158,7 @@ var validGRIN2Response = (input) => {
|
|
|
158
158
|
if (false === __is(input)) {
|
|
159
159
|
const $report = import_typia.createValidate.report(errors);
|
|
160
160
|
((input2, _path, _exceptionable = true) => {
|
|
161
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["
|
|
161
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "success" === input3.status || $report(_exceptionable2, {
|
|
162
162
|
path: _path2 + ".status",
|
|
163
163
|
expected: '("error" | "success")',
|
|
164
164
|
value: input3.status
|
|
@@ -60,13 +60,13 @@ var validSampleWSIAiApiRequest = (input) => {
|
|
|
60
60
|
var validSampleWSIAiApiResponse = (input) => {
|
|
61
61
|
const errors = [];
|
|
62
62
|
const __is = (input2) => {
|
|
63
|
-
const $io0 = (input3) => ("
|
|
63
|
+
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
|
|
64
64
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
65
65
|
};
|
|
66
66
|
if (false === __is(input)) {
|
|
67
67
|
const $report = import_typia.createValidate.report(errors);
|
|
68
68
|
((input2, _path, _exceptionable = true) => {
|
|
69
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["
|
|
69
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
70
70
|
path: _path2 + ".status",
|
|
71
71
|
expected: '("error" | "ok")',
|
|
72
72
|
value: input3.status
|
package/dist/gdc.grin2.js
CHANGED
package/dist/grin2.js
CHANGED
package/dist/healthcheck.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
validWSISamplesRequest,
|
|
3
|
+
validWSISamplesResponse,
|
|
4
|
+
wsiSamplesPayload
|
|
5
|
+
} from "./chunk-W6NLM363.js";
|
|
6
|
+
import {
|
|
7
|
+
termChildrenPayload,
|
|
8
|
+
validTermChildrenRequest,
|
|
9
|
+
validTermChildrenResponse
|
|
10
|
+
} from "./chunk-HKGWC7OO.js";
|
|
11
|
+
import {
|
|
12
|
+
termsByIdsPayload,
|
|
13
|
+
validTermsByIdsRequest,
|
|
14
|
+
validTermsByIdsResponse
|
|
15
|
+
} from "./chunk-CC3OBRKE.js";
|
|
1
16
|
import {
|
|
2
17
|
topMutatedGenePayload,
|
|
3
18
|
validtopMutatedGeneRequest,
|
|
@@ -29,10 +44,15 @@ import {
|
|
|
29
44
|
wsImagesPayload
|
|
30
45
|
} from "./chunk-CQDDRHRY.js";
|
|
31
46
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
47
|
+
numericCategoriesPayload,
|
|
48
|
+
validNumericCategoriesRequest,
|
|
49
|
+
validNumericCategoriesResponse
|
|
50
|
+
} from "./chunk-DD2RLZHC.js";
|
|
51
|
+
import {
|
|
52
|
+
percentilePayload,
|
|
53
|
+
validPercentileRequest,
|
|
54
|
+
validPercentileResponse
|
|
55
|
+
} from "./chunk-6HAS5WRS.js";
|
|
36
56
|
import {
|
|
37
57
|
rootTermPayload,
|
|
38
58
|
validRootTermRequest,
|
|
@@ -64,15 +84,15 @@ import {
|
|
|
64
84
|
validTermdbSingleCellSamplesResponse
|
|
65
85
|
} from "./chunk-LPBYQJG4.js";
|
|
66
86
|
import {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
87
|
+
snpPayload,
|
|
88
|
+
validSnpRequest,
|
|
89
|
+
validSnpResponse
|
|
90
|
+
} from "./chunk-J4QAF4EU.js";
|
|
71
91
|
import {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
} from "./chunk-
|
|
92
|
+
diffExpPayload,
|
|
93
|
+
validDERequest,
|
|
94
|
+
validDEResponse
|
|
95
|
+
} from "./chunk-3C26VWPU.js";
|
|
76
96
|
import {
|
|
77
97
|
boxplotPayload,
|
|
78
98
|
validBoxPlotRequest,
|
|
@@ -104,15 +124,10 @@ import {
|
|
|
104
124
|
validDescrStatsResponse
|
|
105
125
|
} from "./chunk-I2BMMKPN.js";
|
|
106
126
|
import {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
} from "./chunk-
|
|
111
|
-
import {
|
|
112
|
-
percentilePayload,
|
|
113
|
-
validPercentileRequest,
|
|
114
|
-
validPercentileResponse
|
|
115
|
-
} from "./chunk-6HAS5WRS.js";
|
|
127
|
+
isoformlstPayload,
|
|
128
|
+
validIsoformLstRequest,
|
|
129
|
+
validIsoformLstResponse
|
|
130
|
+
} from "./chunk-B43GFRT4.js";
|
|
116
131
|
import {
|
|
117
132
|
ntseqPayload,
|
|
118
133
|
validNtseqRequest,
|
|
@@ -137,32 +152,32 @@ import {
|
|
|
137
152
|
sampleWsiAiApiPayload,
|
|
138
153
|
validSampleWSIAiApiRequest,
|
|
139
154
|
validSampleWSIAiApiResponse
|
|
140
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-XJU4JALX.js";
|
|
141
156
|
import {
|
|
142
157
|
sampleWSImagesPayload,
|
|
143
158
|
validSampleWSImagesRequest,
|
|
144
159
|
validSampleWSImagesResponse
|
|
145
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-FYRWYZEE.js";
|
|
146
161
|
import {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
} from "./chunk-
|
|
162
|
+
genesetEnrichmentPayload,
|
|
163
|
+
validGenesetEnrichmentRequest,
|
|
164
|
+
validGenesetEnrichmentResponse
|
|
165
|
+
} from "./chunk-HUMZDPUU.js";
|
|
151
166
|
import {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
} from "./chunk-
|
|
167
|
+
genesetOverrepresentationPayload,
|
|
168
|
+
validGenesetOverrepresentationRequest,
|
|
169
|
+
validGenesetOverrepresentationResponse
|
|
170
|
+
} from "./chunk-VMSVBNM6.js";
|
|
156
171
|
import {
|
|
157
172
|
GRIN2Payload,
|
|
158
173
|
validGRIN2Request,
|
|
159
174
|
validGRIN2Response
|
|
160
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-VHEL5P6L.js";
|
|
161
176
|
import {
|
|
162
177
|
healthcheckPayload,
|
|
163
178
|
validHealthCheckRequest,
|
|
164
179
|
validHealthCheckResponse
|
|
165
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-KRYTJ2SL.js";
|
|
166
181
|
import {
|
|
167
182
|
hicdataPayload,
|
|
168
183
|
validHicdataRequest,
|
|
@@ -184,10 +199,15 @@ import {
|
|
|
184
199
|
validimgResponse
|
|
185
200
|
} from "./chunk-KVUJPR42.js";
|
|
186
201
|
import {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
} from "./chunk-
|
|
202
|
+
datasetPayload,
|
|
203
|
+
validDatasetRequest,
|
|
204
|
+
validDatasetResponse
|
|
205
|
+
} from "./chunk-5S3UWYSK.js";
|
|
206
|
+
import {
|
|
207
|
+
dsDataPayload,
|
|
208
|
+
validDsDataRequest,
|
|
209
|
+
validDsDataResponse
|
|
210
|
+
} from "./chunk-4GCROGGK.js";
|
|
191
211
|
import {
|
|
192
212
|
dzImagesPayload,
|
|
193
213
|
validDZImagesRequest,
|
|
@@ -205,7 +225,7 @@ import {
|
|
|
205
225
|
validGdcGRIN2listResponse,
|
|
206
226
|
validRunGRIN2Request,
|
|
207
227
|
validRunGRIN2Response
|
|
208
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-LDQNJLYQ.js";
|
|
209
229
|
import {
|
|
210
230
|
gdcMafPayload,
|
|
211
231
|
validGdcMafRequest,
|
|
@@ -222,15 +242,15 @@ import {
|
|
|
222
242
|
validGeneLookupResponse
|
|
223
243
|
} from "./chunk-HNETXFC7.js";
|
|
224
244
|
import {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
} from "./chunk-
|
|
245
|
+
aiProjectAdminPayload,
|
|
246
|
+
validAIProjectAdminRequest,
|
|
247
|
+
validAIProjectAdminResponse
|
|
248
|
+
} from "./chunk-4KJDCFS4.js";
|
|
229
249
|
import {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
} from "./chunk-
|
|
250
|
+
aiProjectListPayload,
|
|
251
|
+
validAIProjectListRequest,
|
|
252
|
+
validAIProjectListResponse
|
|
253
|
+
} from "./chunk-EAHOJPLM.js";
|
|
234
254
|
import {
|
|
235
255
|
brainImagingPayload,
|
|
236
256
|
validBrainImagingRequest,
|
|
@@ -258,16 +278,6 @@ import {
|
|
|
258
278
|
validCorrelationVolcanoRequest,
|
|
259
279
|
validCorrelationVolcanoResponse
|
|
260
280
|
} from "./chunk-QG776KAI.js";
|
|
261
|
-
import {
|
|
262
|
-
datasetPayload,
|
|
263
|
-
validDatasetRequest,
|
|
264
|
-
validDatasetResponse
|
|
265
|
-
} from "./chunk-5S3UWYSK.js";
|
|
266
|
-
import {
|
|
267
|
-
dsDataPayload,
|
|
268
|
-
validDsDataRequest,
|
|
269
|
-
validDsDataResponse
|
|
270
|
-
} from "./chunk-4GCROGGK.js";
|
|
271
281
|
import "./chunk-CNSSF43V.js";
|
|
272
282
|
export {
|
|
273
283
|
CorrelationVolcanoPayload,
|
|
@@ -276,6 +286,8 @@ export {
|
|
|
276
286
|
GdcMafPayload,
|
|
277
287
|
ProfileFormScoresPayload,
|
|
278
288
|
ProfileScoresPayload,
|
|
289
|
+
aiProjectAdminPayload,
|
|
290
|
+
aiProjectListPayload,
|
|
279
291
|
boxplotPayload,
|
|
280
292
|
brainImagingPayload,
|
|
281
293
|
brainImagingSamplesPayload,
|
|
@@ -321,6 +333,10 @@ export {
|
|
|
321
333
|
termsByIdsPayload,
|
|
322
334
|
tilePayload,
|
|
323
335
|
topMutatedGenePayload,
|
|
336
|
+
validAIProjectAdminRequest,
|
|
337
|
+
validAIProjectAdminResponse,
|
|
338
|
+
validAIProjectListRequest,
|
|
339
|
+
validAIProjectListResponse,
|
|
324
340
|
validBoxPlotRequest,
|
|
325
341
|
validBoxPlotResponse,
|
|
326
342
|
validBrainImagingRequest,
|
package/dist/sampleWsiAiApi.js
CHANGED
package/dist/samplewsimages.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -148,6 +148,19 @@ type GdcApi = {
|
|
|
148
148
|
gdcapi?: boolean
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
type AiApi = {
|
|
152
|
+
/** Represents the configuration for accessing the AI API.
|
|
153
|
+
* For now only AI Histo is supported.
|
|
154
|
+
*/
|
|
155
|
+
aiApi?: boolean
|
|
156
|
+
source?: {
|
|
157
|
+
/** Data source for building the termdb on the fly */
|
|
158
|
+
file: string
|
|
159
|
+
/** Column header for sample ids or names */
|
|
160
|
+
sampleKey: string
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
151
164
|
type SnvIndelFormat = {
|
|
152
165
|
[index: string]: {
|
|
153
166
|
/* has value for a non-GT field indicating the variant
|
|
@@ -1001,6 +1014,7 @@ export type DZImages = {
|
|
|
1001
1014
|
image file to sample mapping is stored in wsimages table
|
|
1002
1015
|
*/
|
|
1003
1016
|
export type WSImages = {
|
|
1017
|
+
db?: { file: string }
|
|
1004
1018
|
// type of the image, e.g. H&E
|
|
1005
1019
|
type: string
|
|
1006
1020
|
|
|
@@ -1011,6 +1025,7 @@ export type WSImages = {
|
|
|
1011
1025
|
activePatchColor?: string
|
|
1012
1026
|
predictionColor?: Array<number>
|
|
1013
1027
|
annotationsColor?: Array<number>
|
|
1028
|
+
tileSize?: number
|
|
1014
1029
|
classes?: WSIClass[]
|
|
1015
1030
|
uncertainty?: { color: string; label: string }[]
|
|
1016
1031
|
|
|
@@ -1023,8 +1038,6 @@ export type WSImages = {
|
|
|
1023
1038
|
/** ds supplied */
|
|
1024
1039
|
getWSIAnnotations?: (sampleName: string, wsiImage: string) => Promise<string[]>
|
|
1025
1040
|
/** ds supplied */
|
|
1026
|
-
getZoomInPoints?: (sampleName: string, wsiImage: string, index: number) => Promise<Array<[number, number]>>
|
|
1027
|
-
/** ds supplied */
|
|
1028
1041
|
makeGeoJson?: (sampleId: string, wsiImage: string) => void
|
|
1029
1042
|
/** ds supplied */
|
|
1030
1043
|
getWSIPredictionOverlay?: (sampleName: string, wsiImage: string) => Promise<string | undefined>
|
|
@@ -1370,8 +1383,11 @@ export type Termdb = {
|
|
|
1370
1383
|
* The required minimum number of samples with data as queried with getData() or other code,
|
|
1371
1384
|
* in order to minimize the ease of extracting identifiable information from aggregate data
|
|
1372
1385
|
* in server response
|
|
1386
|
+
*
|
|
1387
|
+
* sampleCount: the number of samples with matching data from one or more queried terms
|
|
1388
|
+
* q : req.query as processed through app middleware (pre-parsed, may have req.body props, __protectec__, etc)
|
|
1373
1389
|
*/
|
|
1374
|
-
|
|
1390
|
+
hasMinSampleSize?: (sampleCount: number, q: any) => boolean
|
|
1375
1391
|
/** if true, backend is allowed to send sample names to client in charts */
|
|
1376
1392
|
displaySampleIds?: (clientAuthResult: any) => boolean
|
|
1377
1393
|
converSampleIds?: boolean
|
|
@@ -1466,7 +1482,8 @@ keep this setting here for reason of:
|
|
|
1466
1482
|
|
|
1467
1483
|
//GDC
|
|
1468
1484
|
termid2totalsize2?: GdcApi
|
|
1469
|
-
|
|
1485
|
+
/** Do not use a union here. */
|
|
1486
|
+
dictionary?: GdcApi & AiApi
|
|
1470
1487
|
allowCaseDetails?: AllowCaseDetails
|
|
1471
1488
|
isGeneSetTermdb?: boolean
|
|
1472
1489
|
/** Searches the genedb alias list to return the genecode ID */
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './termsetting.ts'
|
|
|
5
5
|
export * from './filter.ts'
|
|
6
6
|
export * from './termdb.matrix.ts'
|
|
7
7
|
export * from './routes/routeApi.ts'
|
|
8
|
+
export * from './routes/aiProjectList.ts'
|
|
9
|
+
export * from './routes/aiProjectAdmin.ts'
|
|
8
10
|
export * from './routes/brainImaging.ts'
|
|
9
11
|
export * from './routes/brainImagingSamples.ts'
|
|
10
12
|
export * from './routes/burden.ts'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
+
|
|
3
|
+
export type AIProjectAdminRequest = {
|
|
4
|
+
genome: string
|
|
5
|
+
dslabel: string
|
|
6
|
+
project: {
|
|
7
|
+
name: string
|
|
8
|
+
id?: number
|
|
9
|
+
fitler?: string
|
|
10
|
+
classes?: any[]
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type AIProjectAdminResponse = {
|
|
15
|
+
status: 'ok' | 'error'
|
|
16
|
+
error?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const aiProjectAdminPayload: RoutePayload = {
|
|
20
|
+
request: {
|
|
21
|
+
typeId: 'AIProjectAdminRequest'
|
|
22
|
+
},
|
|
23
|
+
response: {
|
|
24
|
+
typeId: 'AIProjectAdminResponse'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
+
|
|
3
|
+
export type AIProjectListRequest = {
|
|
4
|
+
genome: string
|
|
5
|
+
dslabel: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type AIProjectListResponse = {
|
|
9
|
+
status: 'ok' | 'error'
|
|
10
|
+
error?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const aiProjectListPayload: RoutePayload = {
|
|
14
|
+
request: {
|
|
15
|
+
typeId: 'AIProjectListRequest'
|
|
16
|
+
},
|
|
17
|
+
response: {
|
|
18
|
+
typeId: 'AIProjectListResponse'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -6,7 +6,6 @@ export type SampleWSImagesRequest = {
|
|
|
6
6
|
dslabel: string
|
|
7
7
|
sample_id: string
|
|
8
8
|
wsimage: string
|
|
9
|
-
index: number
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
export type SampleWSImagesResponse = {
|
|
@@ -17,14 +16,33 @@ export type WSImage = {
|
|
|
17
16
|
filename: string
|
|
18
17
|
overlays?: Array<string>
|
|
19
18
|
predictionLayers?: Array<string>
|
|
20
|
-
zoomInPoints?: Array<[number, number]>
|
|
21
19
|
metadata: string
|
|
22
|
-
annotationsData?:
|
|
23
|
-
|
|
20
|
+
annotationsData?: Array<Annotation>
|
|
21
|
+
predictions?: Array<Prediction>
|
|
22
|
+
classes?: Array<WSIClass>
|
|
24
23
|
/** ds defined uncertainity labels and colors */
|
|
25
24
|
uncertainty?: any
|
|
26
25
|
/** Color to highlight active patches */
|
|
27
26
|
activePatchColor?: string
|
|
27
|
+
/** Tile size in pixels needed for AI scripts */
|
|
28
|
+
tileSize?: number
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type Annotation = {
|
|
32
|
+
zoomCoordinates: [number, number]
|
|
33
|
+
class: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type Prediction = {
|
|
37
|
+
zoomCoordinates: [number, number]
|
|
38
|
+
type: string
|
|
39
|
+
class: string
|
|
40
|
+
uncertainty: number
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type TileSelection = {
|
|
44
|
+
zoomCoordinates: [number, number]
|
|
45
|
+
class?: string
|
|
28
46
|
}
|
|
29
47
|
|
|
30
48
|
export const sampleWSImagesPayload: RoutePayload = {
|