@sjcrh/proteinpaint-types 2.159.0 → 2.161.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-4LOGWDCZ.js → chunk-3EVYVWI2.js} +4 -4
- package/dist/{chunk-D37D752M.js → chunk-CSPVFAJ7.js} +5 -1
- package/dist/{chunk-5BNDT4E6.js → chunk-GDZUCVIB.js} +6 -2
- package/dist/grin2.js +1 -1
- package/dist/index.js +3 -3
- package/dist/termdb.sampleScatter.js +1 -1
- package/dist/termdb.singlecellDEgenes.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +21 -18
- package/src/routes/grin2.ts +2 -0
- package/src/routes/termdb.sampleScatter.ts +1 -0
- package/src/routes/termdb.singlecellDEgenes.ts +8 -5
|
@@ -21,7 +21,7 @@ var termdbSingleCellDEgenesPayload = {
|
|
|
21
21
|
var validTermdbSingleCellDEgenesRequest = (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 && "string" === typeof input2.
|
|
24
|
+
return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel && "string" === typeof input2.sample && "string" === typeof input2.termId && "string" === typeof input2.categoryName);
|
|
25
25
|
};
|
|
26
26
|
if (false === __is(input)) {
|
|
27
27
|
const $report = import_typia.createValidate.report(errors);
|
|
@@ -38,10 +38,10 @@ var validTermdbSingleCellDEgenesRequest = (input) => {
|
|
|
38
38
|
path: _path2 + ".sample",
|
|
39
39
|
expected: "string",
|
|
40
40
|
value: input3.sample
|
|
41
|
-
}), "string" === typeof input3.
|
|
42
|
-
path: _path2 + ".
|
|
41
|
+
}), "string" === typeof input3.termId || $report(_exceptionable2, {
|
|
42
|
+
path: _path2 + ".termId",
|
|
43
43
|
expected: "string",
|
|
44
|
-
value: input3.
|
|
44
|
+
value: input3.termId
|
|
45
45
|
}), "string" === typeof input3.categoryName || $report(_exceptionable2, {
|
|
46
46
|
path: _path2 + ".categoryName",
|
|
47
47
|
expected: "string",
|
|
@@ -207,7 +207,7 @@ var validGRIN2Response = (input) => {
|
|
|
207
207
|
const $io5 = (input3) => Array.isArray(input3.columns) && input3.columns.every((elem) => "object" === typeof elem && null !== elem && $io6(elem)) && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && $io7(elem2))));
|
|
208
208
|
const $io6 = (input3) => "string" === typeof input3.label && "boolean" === typeof input3.sortable;
|
|
209
209
|
const $io7 = (input3) => "string" === typeof input3.value || "number" === typeof input3.value;
|
|
210
|
-
const $io8 = (input3) => "number" === typeof input3.processingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.totalTime;
|
|
210
|
+
const $io8 = (input3) => "number" === typeof input3.processingTime && "number" === typeof input3.grin2Time && "number" === typeof input3.plottingTime && "number" === typeof input3.totalTime;
|
|
211
211
|
const $io9 = (input3) => (void 0 === input3.totalSamples || "number" === typeof input3.totalSamples) && (void 0 === input3.processedSamples || "number" === typeof input3.processedSamples) && (void 0 === input3.failedSamples || "number" === typeof input3.failedSamples) && (void 0 === input3.failedFiles || Array.isArray(input3.failedFiles) && input3.failedFiles.every((elem) => "object" === typeof elem && null !== elem && $io10(elem))) && (void 0 === input3.totalLesions || "number" === typeof input3.totalLesions) && (void 0 === input3.processedLesions || "number" === typeof input3.processedLesions) && (void 0 === input3.unprocessedSamples || "number" === typeof input3.unprocessedSamples) && (void 0 === input3.lesionCounts || "object" === typeof input3.lesionCounts && null !== input3.lesionCounts && false === Array.isArray(input3.lesionCounts) && $io11(input3.lesionCounts));
|
|
212
212
|
const $io10 = (input3) => "string" === typeof input3.sampleName && "string" === typeof input3.filePath && "string" === typeof input3.error;
|
|
213
213
|
const $io11 = (input3) => (void 0 === input3.total || "number" === typeof input3.total) && (void 0 === input3.byType || "object" === typeof input3.byType && null !== input3.byType && false === Array.isArray(input3.byType) && $io12(input3.byType));
|
|
@@ -444,6 +444,10 @@ var validGRIN2Response = (input) => {
|
|
|
444
444
|
path: _path2 + ".grin2Time",
|
|
445
445
|
expected: "number",
|
|
446
446
|
value: input3.grin2Time
|
|
447
|
+
}), "number" === typeof input3.plottingTime || $report(_exceptionable2, {
|
|
448
|
+
path: _path2 + ".plottingTime",
|
|
449
|
+
expected: "number",
|
|
450
|
+
value: input3.plottingTime
|
|
447
451
|
}), "number" === typeof input3.totalTime || $report(_exceptionable2, {
|
|
448
452
|
path: _path2 + ".totalTime",
|
|
449
453
|
expected: "number",
|
|
@@ -20,7 +20,7 @@ var termdbSampleScatterPayload = {
|
|
|
20
20
|
var validTermdbSampleScatterRequest = (input) => {
|
|
21
21
|
const errors = [];
|
|
22
22
|
const __is = (input2) => {
|
|
23
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && true && true && true && (void 0 === input3.coordTWs || Array.isArray(input3.coordTWs)) && (void 0 === input3.plotName || "string" === typeof input3.plotName) && true && true && true;
|
|
23
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && true && true && true && (void 0 === input3.coordTWs || Array.isArray(input3.coordTWs)) && (void 0 === input3.plotName || "string" === typeof input3.plotName) && true && true && (void 0 === input3.chartType || "string" === typeof input3.chartType) && true;
|
|
24
24
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
25
25
|
};
|
|
26
26
|
if (false === __is(input)) {
|
|
@@ -42,7 +42,11 @@ var validTermdbSampleScatterRequest = (input) => {
|
|
|
42
42
|
path: _path2 + ".plotName",
|
|
43
43
|
expected: "(string | undefined)",
|
|
44
44
|
value: input3.plotName
|
|
45
|
-
}), true, true,
|
|
45
|
+
}), true, true, void 0 === input3.chartType || "string" === typeof input3.chartType || $report(_exceptionable2, {
|
|
46
|
+
path: _path2 + ".chartType",
|
|
47
|
+
expected: "(string | undefined)",
|
|
48
|
+
value: input3.chartType
|
|
49
|
+
}), true].every((flag) => flag);
|
|
46
50
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
47
51
|
path: _path + "",
|
|
48
52
|
expected: "TermdbSampleScatterRequest",
|
package/dist/grin2.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
termdbSampleScatterPayload,
|
|
43
43
|
validTermdbSampleScatterRequest,
|
|
44
44
|
validTermdbSampleScatterResponse
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GDZUCVIB.js";
|
|
46
46
|
import {
|
|
47
47
|
termdbSingleSampleMutationPayload,
|
|
48
48
|
validTermdbSingleSampleMutationRequest,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
termdbSingleCellDEgenesPayload,
|
|
53
53
|
validTermdbSingleCellDEgenesRequest,
|
|
54
54
|
validTermdbSingleCellDEgenesResponse
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-3EVYVWI2.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-CSPVFAJ7.js";
|
|
221
221
|
import {
|
|
222
222
|
healthcheckPayload,
|
|
223
223
|
validHealthCheckRequest,
|
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -756,28 +756,40 @@ export type SingleCellSamples = {
|
|
|
756
756
|
extraSampleTabLabel?: string
|
|
757
757
|
}
|
|
758
758
|
|
|
759
|
-
|
|
760
|
-
|
|
759
|
+
type SingleCellDataBase = {
|
|
760
|
+
/** when a sample has multiple tsne plots, this flag allows allows all plots to share one cell type legend */
|
|
761
761
|
sameLegend: boolean
|
|
762
|
-
|
|
762
|
+
/** name of ref cells? */
|
|
763
763
|
refName?: string
|
|
764
|
+
/** dynamically added getter */
|
|
765
|
+
get?: (q: any) => any
|
|
766
|
+
/** width and height of the plots */
|
|
767
|
+
settings?: { [key: string]: any }
|
|
768
|
+
/** In development
|
|
769
|
+
* Replacing colorColumns in gdc plot objs.*/
|
|
770
|
+
twLst?: object[]
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
export type SingleCellDataGdc = SingleCellDataBase & {
|
|
774
|
+
src: 'gdcapi'
|
|
764
775
|
plots: GDCSingleCellPlot[]
|
|
765
|
-
settings?: { [key: string]: string }
|
|
766
776
|
}
|
|
767
777
|
|
|
768
778
|
export type SingleCellDEgeneGdc = {
|
|
769
779
|
src: 'gdcapi'
|
|
770
|
-
/** Column name.
|
|
771
|
-
this must be the colorColumn from one of the plots.
|
|
780
|
+
/** termId = Column name.
|
|
781
|
+
this must be the colorColumn from one of the plots. In the client app, as soon as the plot data loads and maps renders, client finds the cell groups based on this columnName value, and shows a drop down of these groups on UI. user selects a group, and passes it as request body to backend to get DE genes for this group
|
|
772
782
|
*/
|
|
773
|
-
|
|
783
|
+
termId: string
|
|
774
784
|
}
|
|
775
785
|
|
|
776
786
|
type GDCSingleCellPlot = {
|
|
777
787
|
name: string
|
|
778
788
|
colorColumns: ColorColumn[]
|
|
779
789
|
coordsColumns: { x: number; y: number }
|
|
780
|
-
/** if true the plot is shown by default. otherwise hidden
|
|
790
|
+
/** if true the plot is shown by default. otherwise hidden
|
|
791
|
+
* Will not be needed when the singleCellPlot is depreciated.
|
|
792
|
+
*/
|
|
781
793
|
selected?: boolean
|
|
782
794
|
}
|
|
783
795
|
|
|
@@ -818,19 +830,10 @@ type SingleCellPlot = {
|
|
|
818
830
|
/** if true the plot is shown by default. otherwise hidden */
|
|
819
831
|
selected?: boolean
|
|
820
832
|
}
|
|
821
|
-
export type SingleCellDataNative = {
|
|
833
|
+
export type SingleCellDataNative = SingleCellDataBase & {
|
|
822
834
|
src: 'native'
|
|
823
|
-
/** when a sample has multiple tsne plots, this flag allows allows all plots to share one cell type legend */
|
|
824
|
-
sameLegend: boolean
|
|
825
835
|
/** available tsne type of plots for each sample */
|
|
826
836
|
plots: SingleCellPlot[]
|
|
827
|
-
/** name of ref cells? */
|
|
828
|
-
refName?: string
|
|
829
|
-
/** dynamically added getter */
|
|
830
|
-
get?: (q: any) => any
|
|
831
|
-
/** width and height of the plots */
|
|
832
|
-
|
|
833
|
-
settings?: { [key: string]: any }
|
|
834
837
|
}
|
|
835
838
|
|
|
836
839
|
export type SingleCellQuery = {
|
package/src/routes/grin2.ts
CHANGED
|
@@ -151,6 +151,8 @@ export type GRIN2Response = {
|
|
|
151
151
|
processingTime: number
|
|
152
152
|
/** Time taken to run GRIN2 processing */
|
|
153
153
|
grin2Time: number
|
|
154
|
+
/** Time taken to run Manhattan plot generation */
|
|
155
|
+
plottingTime: number
|
|
154
156
|
/** Total time taken for the entire run */
|
|
155
157
|
totalTime: number
|
|
156
158
|
}
|
|
@@ -7,12 +7,15 @@ export type TermdbSingleCellDEgenesRequest = {
|
|
|
7
7
|
/** Dataset label */
|
|
8
8
|
dslabel: string
|
|
9
9
|
/** Sample name
|
|
10
|
-
for GDC the value is "seurat.analysis.tsv" file UUID
|
|
11
|
-
|
|
10
|
+
for GDC the value is "seurat.analysis.tsv" file UUID
|
|
11
|
+
rather than sample name. the file contains the analysis
|
|
12
|
+
results for an experiment */
|
|
12
13
|
sample: string
|
|
13
|
-
/** column name to provide cell groups/clustering,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** column name to provide cell groups/clustering,
|
|
15
|
+
* for which DE genes are precomputed. */
|
|
16
|
+
termId: string
|
|
17
|
+
/** User selected cell group/cluster, corresponds to termId,
|
|
18
|
+
* for which DE genes will be returned to client */
|
|
16
19
|
categoryName: string
|
|
17
20
|
}
|
|
18
21
|
|