@sjcrh/proteinpaint-types 2.114.0 → 2.115.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/brainImaging.js +1 -1
- package/dist/chunk-5HL5BPE5.js +126 -0
- package/dist/{chunk-BEXUBE5A.js → chunk-7GSVLBKZ.js} +10 -14
- package/dist/{chunk-H45GALYV.js → chunk-C7DJDPLP.js} +339 -343
- package/dist/{chunk-PR7XHL4T.js → chunk-EQGBEPDC.js} +10 -14
- package/dist/{chunk-BNOGQYXG.js → chunk-GS37E7DB.js} +339 -343
- package/dist/{chunk-KRHYG2ZZ.js → chunk-I3U2T7HV.js} +337 -341
- package/dist/{chunk-Q5F2XI6A.js → chunk-IJHMCHUT.js} +31 -23
- package/dist/{chunk-XDRUNGOV.js → chunk-KBTAXZM4.js} +286 -290
- package/dist/{chunk-JNEIQWTE.js → chunk-KZIZMP7Y.js} +27 -35
- package/dist/{chunk-7AQB3YHO.js → chunk-M26XQDA4.js} +10 -14
- package/dist/{chunk-66XSFQPI.js → chunk-MDBZCBM2.js} +17 -21
- package/dist/{chunk-OSHG443J.js → chunk-NESPJ4GG.js} +36 -44
- package/dist/{chunk-WVBWDL2B.js → chunk-PTYGGJLG.js} +339 -343
- package/dist/{chunk-T3NOHXOJ.js → chunk-ZPN2DV5E.js} +10 -14
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +45 -37
- package/dist/termdb.boxplot.js +1 -1
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.numericcategories.js +1 -1
- package/dist/termdb.percentile.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topMutatedGenes.js +11 -0
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violin.js +1 -1
- package/dist/wsisamples.js +11 -0
- package/package.json +1 -1
- package/src/dataset.ts +13 -3
- package/src/index.ts +2 -1
- package/src/routes/{gdc.topMutatedGenes.ts → termdb.topMutatedGenes.ts} +9 -7
- package/src/routes/wsisamples.ts +25 -0
- package/src/terms/numeric.ts +2 -2
- package/src/terms/term.ts +2 -1
- package/dist/gdc.topMutatedGenes.js +0 -11
|
@@ -75,13 +75,13 @@ var validViolinRequest = (input) => {
|
|
|
75
75
|
});
|
|
76
76
|
const $io5 = (input3) => (void 0 === input3.key || "string" === typeof input3.key) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable) && (void 0 === input3.label || "string" === typeof input3.label || "number" === typeof input3.label) && (void 0 === input3.order || "string" === typeof input3.order) && (void 0 === input3.color || "string" === typeof input3.color) && (void 0 === input3.group || "number" === typeof input3.group) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter));
|
|
77
77
|
const $io6 = (input3) => (void 0 === input3.disabled || "boolean" === typeof input3.disabled) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io7(elem)));
|
|
78
|
-
const $io7 = (input3) => "string" === typeof input3.name && (void 0 === input3.is_grade || "boolean" === typeof input3.is_grade) && (void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition) && (Array.isArray(input3.groups) && input3.groups.every((elem) => "object" === typeof elem && null !== elem && $iu1(elem)));
|
|
78
|
+
const $io7 = (input3) => "string" === typeof input3.name && (void 0 === input3.is_grade || "boolean" === typeof input3.is_grade) && (void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition) && (void 0 === input3.id || "string" === typeof input3.id) && (Array.isArray(input3.groups) && input3.groups.every((elem) => "object" === typeof elem && null !== elem && $iu1(elem)));
|
|
79
79
|
const $io8 = (input3) => "string" === typeof input3.name && "string" === typeof input3.type && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io9(elem))) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
|
|
80
80
|
const $io9 = (input3) => ("string" === typeof input3.key || "number" === typeof input3.key) && "string" === typeof input3.label;
|
|
81
|
-
const $io10 = (input3) => "string" === typeof input3.name && "filter" === input3.type &&
|
|
81
|
+
const $io10 = (input3) => "string" === typeof input3.name && "filter" === input3.type && true && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
|
|
82
82
|
const $io11 = (input3) => "boolean" === typeof input3.disabled && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.length === 0);
|
|
83
83
|
const $io12 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io13(input3.term)) && (Array.isArray(input3.ranges) && input3.ranges.every((elem) => "object" === typeof elem && null !== elem && $iu2(elem))) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io22(elem)));
|
|
84
|
-
const $io13 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && ("integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type) && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && true && ("object" === typeof input3.bins && null !== input3.bins && $io14(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io21(input3.continuousColorScale));
|
|
84
|
+
const $io13 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && ("integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || "date" === input3.type) && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io4(input3.values)) && true && ("object" === typeof input3.bins && null !== input3.bins && $io14(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io21(input3.continuousColorScale));
|
|
85
85
|
const $io14 = (input3) => "object" === typeof input3["default"] && null !== input3["default"] && $iu5(input3["default"]) && ("object" === typeof input3.less && null !== input3.less && $iu5(input3.less)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset) && (void 0 === input3.label_offset_ignored || "boolean" === typeof input3.label_offset_ignored) && (void 0 === input3.rounding || "string" === typeof input3.rounding) && (void 0 === input3.min || "number" === typeof input3.min) && (void 0 === input3.max || "number" === typeof input3.max);
|
|
86
86
|
const $io15 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io16(input3.hiddenValues)) && (void 0 === input3.isAtomic || true === input3.isAtomic) && (void 0 === input3.name || "string" === typeof input3.name) && (void 0 === input3.reuseId || "string" === typeof input3.reuseId) && "regular-bin" === input3.type && (void 0 === input3.mode || "discrete" === input3.mode) && "number" === typeof input3.bin_size && ("object" === typeof input3.first_bin && null !== input3.first_bin && $iu6(input3.first_bin)) && (void 0 === input3.last_bin || "object" === typeof input3.last_bin && null !== input3.last_bin && $iu7(input3.last_bin)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset);
|
|
87
87
|
const $io16 = (input3) => Object.keys(input3).every((key) => {
|
|
@@ -483,6 +483,10 @@ var validViolinRequest = (input) => {
|
|
|
483
483
|
path: _path2 + ".is_subcondition",
|
|
484
484
|
expected: "(boolean | undefined)",
|
|
485
485
|
value: input3.is_subcondition
|
|
486
|
+
}), void 0 === input3.id || "string" === typeof input3.id || $report(_exceptionable2, {
|
|
487
|
+
path: _path2 + ".id",
|
|
488
|
+
expected: "(string | undefined)",
|
|
489
|
+
value: input3.id
|
|
486
490
|
}), (Array.isArray(input3.groups) || $report(_exceptionable2, {
|
|
487
491
|
path: _path2 + ".groups",
|
|
488
492
|
expected: "Array<GroupEntry>",
|
|
@@ -546,15 +550,7 @@ var validViolinRequest = (input) => {
|
|
|
546
550
|
path: _path2 + ".type",
|
|
547
551
|
expected: '"filter"',
|
|
548
552
|
value: input3.type
|
|
549
|
-
}),
|
|
550
|
-
path: _path2 + ".filter",
|
|
551
|
-
expected: "Filter",
|
|
552
|
-
value: input3.filter
|
|
553
|
-
})) && $vo1(input3.filter, _path2 + ".filter", _exceptionable2) || $report(_exceptionable2, {
|
|
554
|
-
path: _path2 + ".filter",
|
|
555
|
-
expected: "Filter",
|
|
556
|
-
value: input3.filter
|
|
557
|
-
}), void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable || $report(_exceptionable2, {
|
|
553
|
+
}), true, void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable || $report(_exceptionable2, {
|
|
558
554
|
path: _path2 + ".uncomputable",
|
|
559
555
|
expected: "(boolean | undefined)",
|
|
560
556
|
value: input3.uncomputable
|
|
@@ -633,9 +629,9 @@ var validViolinRequest = (input) => {
|
|
|
633
629
|
path: _path2 + ".name",
|
|
634
630
|
expected: "string",
|
|
635
631
|
value: input3.name
|
|
636
|
-
}), "integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || $report(_exceptionable2, {
|
|
632
|
+
}), "integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || "date" === input3.type || $report(_exceptionable2, {
|
|
637
633
|
path: _path2 + ".type",
|
|
638
|
-
expected: '("float" | "geneExpression" | "integer" | "metaboliteIntensity")',
|
|
634
|
+
expected: '("date" | "float" | "geneExpression" | "integer" | "metaboliteIntensity")',
|
|
639
635
|
value: input3.type
|
|
640
636
|
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
641
637
|
path: _path2 + ".child_types",
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
termChildrenPayload,
|
|
3
|
-
validTermChildrenRequest,
|
|
4
|
-
validTermChildrenResponse
|
|
5
|
-
} from "./chunk-HKGWC7OO.js";
|
|
6
1
|
import {
|
|
7
2
|
termsByIdsPayload,
|
|
8
3
|
validTermsByIdsRequest,
|
|
9
4
|
validTermsByIdsResponse
|
|
10
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I3U2T7HV.js";
|
|
6
|
+
import {
|
|
7
|
+
topMutatedGenePayload,
|
|
8
|
+
validTopMutatedGeneRequest,
|
|
9
|
+
validTopMutatedGeneResponse
|
|
10
|
+
} from "./chunk-IJHMCHUT.js";
|
|
11
11
|
import {
|
|
12
12
|
termdbTopTermsByTypePayload,
|
|
13
13
|
validTermdbTopTermsByTypeRequest,
|
|
14
14
|
validTermdbTopTermsByTypeResponse
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KZIZMP7Y.js";
|
|
16
16
|
import {
|
|
17
17
|
termdbTopVariablyExpressedGenesPayload,
|
|
18
18
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
19
19
|
validTermdbTopVariablyExpressedGenesResponse
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7GSVLBKZ.js";
|
|
21
21
|
import {
|
|
22
22
|
validViolinRequest,
|
|
23
23
|
validViolinResponse,
|
|
24
24
|
violinPayload
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZPN2DV5E.js";
|
|
26
26
|
import {
|
|
27
27
|
tilePayload,
|
|
28
28
|
validTileRequest,
|
|
@@ -34,15 +34,15 @@ import {
|
|
|
34
34
|
wsImagesPayload
|
|
35
35
|
} from "./chunk-UZH5HOBP.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
37
|
+
validWSISamplesRequest,
|
|
38
|
+
validWSSamplesResponse,
|
|
39
|
+
wsiSamplesPayload
|
|
40
|
+
} from "./chunk-5HL5BPE5.js";
|
|
41
41
|
import {
|
|
42
42
|
percentilePayload,
|
|
43
43
|
validPercentileRequest,
|
|
44
44
|
validPercentileResponse
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-EQGBEPDC.js";
|
|
46
46
|
import {
|
|
47
47
|
rootTermPayload,
|
|
48
48
|
validRootTermRequest,
|
|
@@ -74,10 +74,10 @@ import {
|
|
|
74
74
|
validTermdbSingleCellSamplesResponse
|
|
75
75
|
} from "./chunk-GRI3224V.js";
|
|
76
76
|
import {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
} from "./chunk-
|
|
77
|
+
termChildrenPayload,
|
|
78
|
+
validTermChildrenRequest,
|
|
79
|
+
validTermChildrenResponse
|
|
80
|
+
} from "./chunk-HKGWC7OO.js";
|
|
81
81
|
import {
|
|
82
82
|
diffExpPayload,
|
|
83
83
|
validDERequest,
|
|
@@ -87,17 +87,17 @@ import {
|
|
|
87
87
|
boxplotPayload,
|
|
88
88
|
validBoxPlotRequest,
|
|
89
89
|
validBoxPlotResponse
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-PTYGGJLG.js";
|
|
91
91
|
import {
|
|
92
92
|
termdbCategoriesPayload,
|
|
93
93
|
validCategoriesRequest,
|
|
94
94
|
validCategoriesResponse
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-C7DJDPLP.js";
|
|
96
96
|
import {
|
|
97
97
|
termdbClusterPayload,
|
|
98
98
|
validTermdbClusterRequest,
|
|
99
99
|
validTermdbClusterResponse
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-NESPJ4GG.js";
|
|
101
101
|
import {
|
|
102
102
|
termdbCohortSummaryPayload,
|
|
103
103
|
validTermdbCohortSummaryRequest,
|
|
@@ -112,12 +112,12 @@ import {
|
|
|
112
112
|
descrStatsPayload,
|
|
113
113
|
validDescrStatsRequest,
|
|
114
114
|
validDescrStatsResponse
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-GS37E7DB.js";
|
|
116
116
|
import {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
} from "./chunk-
|
|
117
|
+
numericCategoriesPayload,
|
|
118
|
+
validNumericCategoriesRequest,
|
|
119
|
+
validNumericCategoriesResponse
|
|
120
|
+
} from "./chunk-M26XQDA4.js";
|
|
121
121
|
import {
|
|
122
122
|
hicstatPayload,
|
|
123
123
|
validHicstatRequest,
|
|
@@ -148,6 +148,11 @@ import {
|
|
|
148
148
|
validSampleWSImagesRequest,
|
|
149
149
|
validSampleWSImagesResponse
|
|
150
150
|
} from "./chunk-W4JULXYD.js";
|
|
151
|
+
import {
|
|
152
|
+
snpPayload,
|
|
153
|
+
validSnpRequest,
|
|
154
|
+
validSnpResponse
|
|
155
|
+
} from "./chunk-J4QAF4EU.js";
|
|
151
156
|
import {
|
|
152
157
|
gdcMafPayload,
|
|
153
158
|
validGdcMafRequest,
|
|
@@ -158,11 +163,6 @@ import {
|
|
|
158
163
|
validGdcMafBuildRequest,
|
|
159
164
|
validGdcMafBuildResponse
|
|
160
165
|
} from "./chunk-F5XGJIUS.js";
|
|
161
|
-
import {
|
|
162
|
-
gdcTopMutatedGenePayload,
|
|
163
|
-
validGdcTopMutatedGeneRequest,
|
|
164
|
-
validGdcTopMutatedGeneResponse
|
|
165
|
-
} from "./chunk-Q5F2XI6A.js";
|
|
166
166
|
import {
|
|
167
167
|
geneLookupPayload,
|
|
168
168
|
validGeneLookupRequest,
|
|
@@ -188,11 +188,16 @@ import {
|
|
|
188
188
|
validHicdataRequest,
|
|
189
189
|
validHicdataResponse
|
|
190
190
|
} from "./chunk-VKBTOKI2.js";
|
|
191
|
+
import {
|
|
192
|
+
hicGenomePayload,
|
|
193
|
+
validHicGenomeRequest,
|
|
194
|
+
validHicGenomeResponse
|
|
195
|
+
} from "./chunk-I2KWGMNM.js";
|
|
191
196
|
import {
|
|
192
197
|
brainImagingPayload,
|
|
193
198
|
validBrainImagingRequest,
|
|
194
199
|
validBrainImagingResponse
|
|
195
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-KBTAXZM4.js";
|
|
196
201
|
import {
|
|
197
202
|
brainImagingSamplesPayload,
|
|
198
203
|
validBrainImagingSamplesRequest,
|
|
@@ -207,7 +212,7 @@ import {
|
|
|
207
212
|
CorrelationVolcanoPayload,
|
|
208
213
|
validCorrelationVolcanoRequest,
|
|
209
214
|
validCorrelationVolcanoResponse
|
|
210
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-MDBZCBM2.js";
|
|
211
216
|
import {
|
|
212
217
|
datasetPayload,
|
|
213
218
|
validDatasetRequest,
|
|
@@ -237,7 +242,6 @@ export {
|
|
|
237
242
|
dsDataPayload,
|
|
238
243
|
dzImagesPayload,
|
|
239
244
|
gdcMafPayload,
|
|
240
|
-
gdcTopMutatedGenePayload,
|
|
241
245
|
geneLookupPayload,
|
|
242
246
|
genesetEnrichmentPayload,
|
|
243
247
|
genesetOverrepresentationPayload,
|
|
@@ -268,6 +272,7 @@ export {
|
|
|
268
272
|
termdbTopVariablyExpressedGenesPayload,
|
|
269
273
|
termsByIdsPayload,
|
|
270
274
|
tilePayload,
|
|
275
|
+
topMutatedGenePayload,
|
|
271
276
|
validBoxPlotRequest,
|
|
272
277
|
validBoxPlotResponse,
|
|
273
278
|
validBrainImagingRequest,
|
|
@@ -294,8 +299,6 @@ export {
|
|
|
294
299
|
validGdcMafBuildResponse,
|
|
295
300
|
validGdcMafRequest,
|
|
296
301
|
validGdcMafResponse,
|
|
297
|
-
validGdcTopMutatedGeneRequest,
|
|
298
|
-
validGdcTopMutatedGeneResponse,
|
|
299
302
|
validGeneLookupRequest,
|
|
300
303
|
validGeneLookupResponse,
|
|
301
304
|
validGenesetEnrichmentRequest,
|
|
@@ -352,12 +355,17 @@ export {
|
|
|
352
355
|
validTermsByIdsResponse,
|
|
353
356
|
validTileRequest,
|
|
354
357
|
validTileResponse,
|
|
358
|
+
validTopMutatedGeneRequest,
|
|
359
|
+
validTopMutatedGeneResponse,
|
|
355
360
|
validViolinRequest,
|
|
356
361
|
validViolinResponse,
|
|
362
|
+
validWSISamplesRequest,
|
|
357
363
|
validWSImagesRequest,
|
|
358
364
|
validWSImagesResponse,
|
|
365
|
+
validWSSamplesResponse,
|
|
359
366
|
validimgRequest,
|
|
360
367
|
validimgResponse,
|
|
361
368
|
violinPayload,
|
|
362
|
-
wsImagesPayload
|
|
369
|
+
wsImagesPayload,
|
|
370
|
+
wsiSamplesPayload
|
|
363
371
|
};
|
package/dist/termdb.boxplot.js
CHANGED
package/dist/termdb.cluster.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
topMutatedGenePayload,
|
|
3
|
+
validTopMutatedGeneRequest,
|
|
4
|
+
validTopMutatedGeneResponse
|
|
5
|
+
} from "./chunk-IJHMCHUT.js";
|
|
6
|
+
import "./chunk-CNSSF43V.js";
|
|
7
|
+
export {
|
|
8
|
+
topMutatedGenePayload,
|
|
9
|
+
validTopMutatedGeneRequest,
|
|
10
|
+
validTopMutatedGeneResponse
|
|
11
|
+
};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termdbTopVariablyExpressedGenesPayload,
|
|
3
3
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
4
4
|
validTermdbTopVariablyExpressedGenesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7GSVLBKZ.js";
|
|
6
6
|
import "./chunk-CNSSF43V.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbTopVariablyExpressedGenesPayload,
|
package/dist/termdb.violin.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Mclass } from './Mclass.ts'
|
|
2
|
+
import type { WSImage } from './routes/samplewsimages.ts'
|
|
3
|
+
import type { WSISample } from './routes/wsisamples.ts'
|
|
2
4
|
|
|
3
5
|
/*** General usage types ***/
|
|
4
6
|
type FileObj = {
|
|
@@ -461,6 +463,8 @@ type TopVariablyExpressedGenesQuery = {
|
|
|
461
463
|
}
|
|
462
464
|
|
|
463
465
|
type TopMutatedGenes = {
|
|
466
|
+
/** ds supplied getter. if not, dynamically adds one during launch */
|
|
467
|
+
get?: (f: any) => void
|
|
464
468
|
/** Specifies the dom element rendered in the menu */
|
|
465
469
|
arguments?: GeneArgumentEntry[]
|
|
466
470
|
}
|
|
@@ -853,10 +857,16 @@ image file to sample mapping is stored in wsimages table
|
|
|
853
857
|
export type WSImages = {
|
|
854
858
|
// type of the image, e.g. H&E
|
|
855
859
|
type: string
|
|
856
|
-
// path to the folder where sample images are stored
|
|
857
|
-
imageBySampleFolder?: string
|
|
858
860
|
|
|
859
|
-
|
|
861
|
+
/* path to the folder where sample images are stored
|
|
862
|
+
required; for both cases where image files are hosted locally, or loaded from remote via ds-supplied getter
|
|
863
|
+
*/
|
|
864
|
+
imageBySampleFolder: string
|
|
865
|
+
|
|
866
|
+
/** either ds supplied or dynamically added on launch with built in logic (retrieve the sample list from the wsimages table) */
|
|
867
|
+
getSamples?: () => Promise<Array<WSISample>>
|
|
868
|
+
/** either ds supplied or dynamically added on launch with built in logic */
|
|
869
|
+
getWSImages?: (sampleName: string) => Promise<WSImage[]>
|
|
860
870
|
}
|
|
861
871
|
|
|
862
872
|
/*** types supporting Termdb ***/
|
package/src/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ export * from './routes/errorResponse.ts'
|
|
|
17
17
|
export * from './routes/filter.gdc.ts'
|
|
18
18
|
export * from './routes/gdc.maf.ts'
|
|
19
19
|
export * from './routes/gdc.mafBuild.ts'
|
|
20
|
-
export * from './routes/
|
|
20
|
+
export * from './routes/termdb.topMutatedGenes.ts'
|
|
21
21
|
export * from './routes/genelookup.ts'
|
|
22
22
|
export * from './routes/genesetEnrichment.ts'
|
|
23
23
|
export * from './routes/genesetOverrepresentation.ts'
|
|
@@ -54,6 +54,7 @@ export * from './routes/termdb.topVariablyExpressedGenes.ts'
|
|
|
54
54
|
export * from './routes/termdb.violin.ts'
|
|
55
55
|
export * from './routes/tileserver.ts'
|
|
56
56
|
export * from './routes/wsimages.ts'
|
|
57
|
+
export * from './routes/wsisamples.ts'
|
|
57
58
|
export * from './terms/categorical.ts'
|
|
58
59
|
export * from './terms/condition.ts'
|
|
59
60
|
export * from './terms/numeric.ts'
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { RoutePayload } from './routeApi.js'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type topMutatedGeneRequest = {
|
|
4
|
+
genome: string
|
|
5
|
+
dslabel: string
|
|
4
6
|
/** to restrict to CGC genes */
|
|
5
7
|
geneFilter?: 'CGC'
|
|
6
8
|
/** max number of genes to return */
|
|
@@ -9,7 +11,7 @@ export type GdcTopMutatedGeneRequest = {
|
|
|
9
11
|
filter0?: object
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
export type
|
|
14
|
+
export type MutatedGene = {
|
|
13
15
|
/** gene symbol */
|
|
14
16
|
gene: string
|
|
15
17
|
/** optional attributes on number of mutated cases per dt */
|
|
@@ -22,16 +24,16 @@ export type GdcGene = {
|
|
|
22
24
|
}[]
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
export type
|
|
26
|
-
genes:
|
|
27
|
+
export type topMutatedGeneResponse = {
|
|
28
|
+
genes: MutatedGene[]
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
export const
|
|
31
|
+
export const topMutatedGenePayload: RoutePayload = {
|
|
30
32
|
request: {
|
|
31
|
-
typeId: '
|
|
33
|
+
typeId: 'topMutatedGeneRequest'
|
|
32
34
|
},
|
|
33
35
|
response: {
|
|
34
|
-
typeId: '
|
|
36
|
+
typeId: 'topMutatedGeneResponse'
|
|
35
37
|
}
|
|
36
38
|
//examples: []
|
|
37
39
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.js'
|
|
2
|
+
|
|
3
|
+
export type WSISamplesRequest = {
|
|
4
|
+
genome: string
|
|
5
|
+
dslabel: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type WSISamplesResponse = {
|
|
9
|
+
samples: Array<WSISample>
|
|
10
|
+
error?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type WSISample = {
|
|
14
|
+
sampleId: string
|
|
15
|
+
wsimages: Array<string>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const wsiSamplesPayload: RoutePayload = {
|
|
19
|
+
request: {
|
|
20
|
+
typeId: 'WSISamplesRequest'
|
|
21
|
+
},
|
|
22
|
+
response: {
|
|
23
|
+
typeId: 'WSISamplesResponse'
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/terms/numeric.ts
CHANGED
|
@@ -34,7 +34,7 @@ export type NumericTerm = BaseTerm & {
|
|
|
34
34
|
id?: string
|
|
35
35
|
// these concrete term.type values make it clear that only these are numeric,
|
|
36
36
|
// "categorical", "condition", and other term.types are not included in this union
|
|
37
|
-
type: 'integer' | 'float' | 'geneExpression' | 'metaboliteIntensity'
|
|
37
|
+
type: 'integer' | 'float' | 'geneExpression' | 'metaboliteIntensity' | 'date'
|
|
38
38
|
bins: PresetNumericBins
|
|
39
39
|
values?: TermValues
|
|
40
40
|
unit?: string
|
|
@@ -50,7 +50,7 @@ export type NumericTerm = BaseTerm & {
|
|
|
50
50
|
|
|
51
51
|
export type NumericDictTerm = BaseTerm & {
|
|
52
52
|
id?: string
|
|
53
|
-
type: 'integer' | 'float'
|
|
53
|
+
type: 'integer' | 'float' | 'date'
|
|
54
54
|
bins: PresetNumericBins
|
|
55
55
|
values?: TermValues
|
|
56
56
|
unit?: string
|
package/src/terms/term.ts
CHANGED
|
@@ -122,7 +122,7 @@ export type ValuesGroup = {
|
|
|
122
122
|
export type FilterGroup = {
|
|
123
123
|
name: string
|
|
124
124
|
type: 'filter'
|
|
125
|
-
filter:
|
|
125
|
+
filter: any
|
|
126
126
|
uncomputable?: boolean // if true, do not include this group in computations
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -136,6 +136,7 @@ type Groupset = {
|
|
|
136
136
|
name: string
|
|
137
137
|
is_grade?: boolean
|
|
138
138
|
is_subcondition?: boolean
|
|
139
|
+
id?: string // to identify groupset, used by geneVariant term
|
|
139
140
|
} & BaseGroupSet
|
|
140
141
|
|
|
141
142
|
export type EnabledTermGroupSetting = {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
gdcTopMutatedGenePayload,
|
|
3
|
-
validGdcTopMutatedGeneRequest,
|
|
4
|
-
validGdcTopMutatedGeneResponse
|
|
5
|
-
} from "./chunk-Q5F2XI6A.js";
|
|
6
|
-
import "./chunk-CNSSF43V.js";
|
|
7
|
-
export {
|
|
8
|
-
gdcTopMutatedGenePayload,
|
|
9
|
-
validGdcTopMutatedGeneRequest,
|
|
10
|
-
validGdcTopMutatedGeneResponse
|
|
11
|
-
};
|