@sjcrh/proteinpaint-types 2.153.1-2 → 2.157.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-EYKGJDKU.js → chunk-4LOGWDCZ.js} +26 -22
- package/dist/{chunk-4LZHDYI3.js → chunk-WCF7WIJY.js} +13 -37
- package/dist/grin2.js +1 -1
- package/dist/index.js +2 -2
- package/dist/termdb.singlecellDEgenes.js +1 -1
- package/package.json +1 -1
- package/src/routes/grin2.ts +13 -18
- package/src/routes/termdb.singlecellDEgenes.ts +8 -6
|
@@ -69,12 +69,12 @@ var validTermdbSingleCellDEgenesResponse = (input) => {
|
|
|
69
69
|
const errors = [];
|
|
70
70
|
const __is = (input2) => {
|
|
71
71
|
const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
|
|
72
|
-
const $io1 = (input3) => Array.isArray(input3.
|
|
73
|
-
const $io2 = (input3) => "string" === typeof input3.
|
|
72
|
+
const $io1 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io2(elem));
|
|
73
|
+
const $io2 = (input3) => "string" === typeof input3.gene_name && "number" === typeof input3.adjusted_p_value && "number" === typeof input3.original_p_value && "number" === typeof input3.fold_change;
|
|
74
74
|
const $iu0 = (input3) => (() => {
|
|
75
75
|
if (void 0 !== input3.status)
|
|
76
76
|
return $io0(input3);
|
|
77
|
-
if (void 0 !== input3.
|
|
77
|
+
if (void 0 !== input3.data)
|
|
78
78
|
return $io1(input3);
|
|
79
79
|
return false;
|
|
80
80
|
})();
|
|
@@ -92,40 +92,44 @@ var validTermdbSingleCellDEgenesResponse = (input) => {
|
|
|
92
92
|
expected: "string",
|
|
93
93
|
value: input3.error
|
|
94
94
|
})].every((flag) => flag);
|
|
95
|
-
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.
|
|
96
|
-
path: _path2 + ".
|
|
95
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.data) || $report(_exceptionable2, {
|
|
96
|
+
path: _path2 + ".data",
|
|
97
97
|
expected: "Array<__type>",
|
|
98
|
-
value: input3.
|
|
99
|
-
})) && input3.
|
|
100
|
-
path: _path2 + ".
|
|
98
|
+
value: input3.data
|
|
99
|
+
})) && input3.data.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
100
|
+
path: _path2 + ".data[" + _index1 + "]",
|
|
101
101
|
expected: "__type",
|
|
102
102
|
value: elem
|
|
103
|
-
})) && $vo2(elem, _path2 + ".
|
|
104
|
-
path: _path2 + ".
|
|
103
|
+
})) && $vo2(elem, _path2 + ".data[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
104
|
+
path: _path2 + ".data[" + _index1 + "]",
|
|
105
105
|
expected: "__type",
|
|
106
106
|
value: elem
|
|
107
107
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
108
|
-
path: _path2 + ".
|
|
108
|
+
path: _path2 + ".data",
|
|
109
109
|
expected: "Array<__type>",
|
|
110
|
-
value: input3.
|
|
110
|
+
value: input3.data
|
|
111
111
|
})].every((flag) => flag);
|
|
112
|
-
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.
|
|
113
|
-
path: _path2 + ".
|
|
112
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.gene_name || $report(_exceptionable2, {
|
|
113
|
+
path: _path2 + ".gene_name",
|
|
114
114
|
expected: "string",
|
|
115
|
-
value: input3.
|
|
116
|
-
}), "number" === typeof input3.
|
|
117
|
-
path: _path2 + ".
|
|
115
|
+
value: input3.gene_name
|
|
116
|
+
}), "number" === typeof input3.adjusted_p_value || $report(_exceptionable2, {
|
|
117
|
+
path: _path2 + ".adjusted_p_value",
|
|
118
118
|
expected: "number",
|
|
119
|
-
value: input3.
|
|
120
|
-
}), "number" === typeof input3.
|
|
121
|
-
path: _path2 + ".
|
|
119
|
+
value: input3.adjusted_p_value
|
|
120
|
+
}), "number" === typeof input3.original_p_value || $report(_exceptionable2, {
|
|
121
|
+
path: _path2 + ".original_p_value",
|
|
122
122
|
expected: "number",
|
|
123
|
-
value: input3.
|
|
123
|
+
value: input3.original_p_value
|
|
124
|
+
}), "number" === typeof input3.fold_change || $report(_exceptionable2, {
|
|
125
|
+
path: _path2 + ".fold_change",
|
|
126
|
+
expected: "number",
|
|
127
|
+
value: input3.fold_change
|
|
124
128
|
})].every((flag) => flag);
|
|
125
129
|
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
126
130
|
if (void 0 !== input3.status)
|
|
127
131
|
return $vo0(input3, _path2, _exceptionable2);
|
|
128
|
-
if (void 0 !== input3.
|
|
132
|
+
if (void 0 !== input3.data)
|
|
129
133
|
return $vo1(input3, _path2, _exceptionable2);
|
|
130
134
|
return $report(_exceptionable2, {
|
|
131
135
|
path: _path2,
|
|
@@ -190,8 +190,8 @@ var validGRIN2Response = (input) => {
|
|
|
190
190
|
const __is = (input2) => {
|
|
191
191
|
const $join = import_typia.createValidate.join;
|
|
192
192
|
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) && (void 0 === input3.plotData || "object" === typeof input3.plotData && null !== input3.plotData && $io1(input3.plotData)) && true && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io5(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 && $io8(input3.timing)) && (void 0 === input3.processingSummary || "object" === typeof input3.processingSummary && null !== input3.processingSummary && false === Array.isArray(input3.processingSummary) && $io9(input3.processingSummary)) && (void 0 === input3.cacheFileName || "string" === typeof input3.cacheFileName);
|
|
193
|
-
const $io1 = (input3) => Array.isArray(input3.points) && input3.points.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) && $io3(input3.chrom_data)) && "
|
|
194
|
-
const $io2 = (input3) => "number" === typeof input3.x && "number" === typeof input3.y && "
|
|
193
|
+
const $io1 = (input3) => Array.isArray(input3.points) && input3.points.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) && $io3(input3.chrom_data)) && "number" === typeof input3.total_genome_length;
|
|
194
|
+
const $io2 = (input3) => "number" === typeof input3.x && "number" === typeof input3.y && "string" === typeof input3.color && "string" === typeof input3.type && "string" === typeof input3.gene && "string" === typeof input3.chrom && "number" === typeof input3.start && "number" === typeof input3.end && "number" === typeof input3.pos && "number" === typeof input3.nsubj;
|
|
195
195
|
const $io3 = (input3) => Object.keys(input3).every((key) => {
|
|
196
196
|
const value = input3[key];
|
|
197
197
|
if (void 0 === value)
|
|
@@ -302,34 +302,10 @@ var validGRIN2Response = (input) => {
|
|
|
302
302
|
path: _path2 + ".chrom_data",
|
|
303
303
|
expected: "Record<string, __type>",
|
|
304
304
|
value: input3.chrom_data
|
|
305
|
-
}), "boolean" === typeof input3.y_axis_scaled || $report(_exceptionable2, {
|
|
306
|
-
path: _path2 + ".y_axis_scaled",
|
|
307
|
-
expected: "boolean",
|
|
308
|
-
value: input3.y_axis_scaled
|
|
309
|
-
}), "number" === typeof input3.scale_factor || $report(_exceptionable2, {
|
|
310
|
-
path: _path2 + ".scale_factor",
|
|
311
|
-
expected: "number",
|
|
312
|
-
value: input3.scale_factor
|
|
313
305
|
}), "number" === typeof input3.total_genome_length || $report(_exceptionable2, {
|
|
314
306
|
path: _path2 + ".total_genome_length",
|
|
315
307
|
expected: "number",
|
|
316
308
|
value: input3.total_genome_length
|
|
317
|
-
}), "number" === typeof input3.plot_width || $report(_exceptionable2, {
|
|
318
|
-
path: _path2 + ".plot_width",
|
|
319
|
-
expected: "number",
|
|
320
|
-
value: input3.plot_width
|
|
321
|
-
}), "number" === typeof input3.plot_height || $report(_exceptionable2, {
|
|
322
|
-
path: _path2 + ".plot_height",
|
|
323
|
-
expected: "number",
|
|
324
|
-
value: input3.plot_height
|
|
325
|
-
}), "number" === typeof input3.device_pixel_ratio || $report(_exceptionable2, {
|
|
326
|
-
path: _path2 + ".device_pixel_ratio",
|
|
327
|
-
expected: "number",
|
|
328
|
-
value: input3.device_pixel_ratio
|
|
329
|
-
}), "number" === typeof input3.dpi || $report(_exceptionable2, {
|
|
330
|
-
path: _path2 + ".dpi",
|
|
331
|
-
expected: "number",
|
|
332
|
-
value: input3.dpi
|
|
333
309
|
})].every((flag) => flag);
|
|
334
310
|
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x || $report(_exceptionable2, {
|
|
335
311
|
path: _path2 + ".x",
|
|
@@ -339,14 +315,6 @@ var validGRIN2Response = (input) => {
|
|
|
339
315
|
path: _path2 + ".y",
|
|
340
316
|
expected: "number",
|
|
341
317
|
value: input3.y
|
|
342
|
-
}), "number" === typeof input3.svg_x || $report(_exceptionable2, {
|
|
343
|
-
path: _path2 + ".svg_x",
|
|
344
|
-
expected: "number",
|
|
345
|
-
value: input3.svg_x
|
|
346
|
-
}), "number" === typeof input3.svg_y || $report(_exceptionable2, {
|
|
347
|
-
path: _path2 + ".svg_y",
|
|
348
|
-
expected: "number",
|
|
349
|
-
value: input3.svg_y
|
|
350
318
|
}), "string" === typeof input3.color || $report(_exceptionable2, {
|
|
351
319
|
path: _path2 + ".color",
|
|
352
320
|
expected: "string",
|
|
@@ -363,14 +331,22 @@ var validGRIN2Response = (input) => {
|
|
|
363
331
|
path: _path2 + ".chrom",
|
|
364
332
|
expected: "string",
|
|
365
333
|
value: input3.chrom
|
|
334
|
+
}), "number" === typeof input3.start || $report(_exceptionable2, {
|
|
335
|
+
path: _path2 + ".start",
|
|
336
|
+
expected: "number",
|
|
337
|
+
value: input3.start
|
|
338
|
+
}), "number" === typeof input3.end || $report(_exceptionable2, {
|
|
339
|
+
path: _path2 + ".end",
|
|
340
|
+
expected: "number",
|
|
341
|
+
value: input3.end
|
|
366
342
|
}), "number" === typeof input3.pos || $report(_exceptionable2, {
|
|
367
343
|
path: _path2 + ".pos",
|
|
368
344
|
expected: "number",
|
|
369
345
|
value: input3.pos
|
|
370
|
-
}), "number" === typeof input3.
|
|
371
|
-
path: _path2 + ".
|
|
346
|
+
}), "number" === typeof input3.nsubj || $report(_exceptionable2, {
|
|
347
|
+
path: _path2 + ".nsubj",
|
|
372
348
|
expected: "number",
|
|
373
|
-
value: input3.
|
|
349
|
+
value: input3.nsubj
|
|
374
350
|
})].every((flag) => flag);
|
|
375
351
|
const $vo3 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
376
352
|
const value = input3[key];
|
package/dist/grin2.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
termdbSingleCellDEgenesPayload,
|
|
53
53
|
validTermdbSingleCellDEgenesRequest,
|
|
54
54
|
validTermdbSingleCellDEgenesResponse
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4LOGWDCZ.js";
|
|
56
56
|
import {
|
|
57
57
|
termdbSingleCellDataPayload,
|
|
58
58
|
validTermdbSingleCellDataRequest,
|
|
@@ -217,7 +217,7 @@ import {
|
|
|
217
217
|
GRIN2Payload,
|
|
218
218
|
validGRIN2Request,
|
|
219
219
|
validGRIN2Response
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-WCF7WIJY.js";
|
|
221
221
|
import {
|
|
222
222
|
healthcheckPayload,
|
|
223
223
|
validHealthCheckRequest,
|
package/package.json
CHANGED
package/src/routes/grin2.ts
CHANGED
|
@@ -82,21 +82,22 @@ export type GRIN2Request = {
|
|
|
82
82
|
maxGenesToShow?: number // Default: 500
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
/** Simple Interface to store the complex plot data from the
|
|
85
|
+
/** Simple Interface to store the complex plot data from the rust Manhattan plot */
|
|
86
86
|
interface grin2PlotData {
|
|
87
87
|
points: Array<{
|
|
88
|
-
x: number
|
|
89
|
-
y: number
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
pos: number
|
|
97
|
-
|
|
88
|
+
x: number // X-axis position (base pair/genomic position in the pixel space)
|
|
89
|
+
y: number // Y-axis position (-log10(q-value) in the pixel space)
|
|
90
|
+
color: string // Point color (hexadecimal string representing a color for mutation type)
|
|
91
|
+
type: string // Mutation type (e.g., 'mutation', 'loss', 'gain', 'fusion', 'sv')
|
|
92
|
+
gene: string // Gene symbol
|
|
93
|
+
chrom: string // Chromosome in the form of <chrX>
|
|
94
|
+
start: number // Starting position of this chromosome in base pairs/genomic coordinates. Used in hover table
|
|
95
|
+
end: number // Ending position of this chromosome in base pairs/genomic coordinates
|
|
96
|
+
pos: number // Mid-point of this chromosome in base pairs/genomic coordinates
|
|
97
|
+
nsubj: number // Number of subjects with this mutation. Used for hover table subject count
|
|
98
98
|
}>
|
|
99
99
|
chrom_data: Record<
|
|
100
|
+
// Data for chromosome labels and positioning on the x-axis
|
|
100
101
|
string,
|
|
101
102
|
{
|
|
102
103
|
start: number
|
|
@@ -104,13 +105,7 @@ interface grin2PlotData {
|
|
|
104
105
|
center: number
|
|
105
106
|
}
|
|
106
107
|
>
|
|
107
|
-
|
|
108
|
-
scale_factor: number
|
|
109
|
-
total_genome_length: number
|
|
110
|
-
plot_width: number
|
|
111
|
-
plot_height: number
|
|
112
|
-
device_pixel_ratio: number
|
|
113
|
-
dpi: number
|
|
108
|
+
total_genome_length: number // Gives us the full length of the genome so we can easily append x buffer space when building d3 x-axis
|
|
114
109
|
}
|
|
115
110
|
|
|
116
111
|
/**
|
|
@@ -18,14 +18,16 @@ export type TermdbSingleCellDEgenesRequest = {
|
|
|
18
18
|
|
|
19
19
|
export type HasDataResponse = {
|
|
20
20
|
/** list of significant DE genes for the given category in the sample */
|
|
21
|
-
|
|
21
|
+
data: {
|
|
22
22
|
/** gene name */
|
|
23
|
-
|
|
23
|
+
gene_name: string
|
|
24
24
|
/** adjusted p-value */
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
adjusted_p_value: number
|
|
26
|
+
/** original p-value */
|
|
27
|
+
original_p_value: number
|
|
28
|
+
/** log2 fold change */
|
|
29
|
+
fold_change: number
|
|
30
|
+
}[] // TODO: May replace with DataEntry from termdb.DE.ts in the future
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export type TermdbSingleCellDEgenesResponse = ErrorResponse | HasDataResponse
|