@sjcrh/proteinpaint-types 2.98.2-1 → 2.99.1-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.
@@ -0,0 +1,91 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-Z6B6IQIY.js";
5
+
6
+ // dist/img.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/img.ts
10
+ var imgPayload = {
11
+ request: {
12
+ typeId: "imgRequest"
13
+ },
14
+ response: {
15
+ typeId: "imgResponse"
16
+ }
17
+ };
18
+
19
+ // dist/img.ts
20
+ var validimgRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ return "object" === typeof input2 && null !== input2 && "string" === typeof input2.file;
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.file || $report(_exceptionable2, {
29
+ path: _path2 + ".file",
30
+ expected: "string",
31
+ value: input3.file
32
+ })].every((flag) => flag);
33
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
34
+ path: _path + "",
35
+ expected: "imgRequest",
36
+ value: input2
37
+ })) && $vo0(input2, _path + "", true) || $report(true, {
38
+ path: _path + "",
39
+ expected: "imgRequest",
40
+ value: input2
41
+ });
42
+ })(input, "$input", true);
43
+ }
44
+ const success = 0 === errors.length;
45
+ return {
46
+ success,
47
+ errors,
48
+ data: success ? input : void 0
49
+ };
50
+ };
51
+ var validimgResponse = (input) => {
52
+ const errors = [];
53
+ const __is = (input2) => {
54
+ return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.src && "string" === typeof input2.size);
55
+ };
56
+ if (false === __is(input)) {
57
+ const $report = import_typia.createValidate.report(errors);
58
+ ((input2, _path, _exceptionable = true) => {
59
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.src || $report(_exceptionable2, {
60
+ path: _path2 + ".src",
61
+ expected: "string",
62
+ value: input3.src
63
+ }), "string" === typeof input3.size || $report(_exceptionable2, {
64
+ path: _path2 + ".size",
65
+ expected: "string",
66
+ value: input3.size
67
+ })].every((flag) => flag);
68
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
69
+ path: _path + "",
70
+ expected: "imgResponse",
71
+ value: input2
72
+ })) && $vo0(input2, _path + "", true) || $report(true, {
73
+ path: _path + "",
74
+ expected: "imgResponse",
75
+ value: input2
76
+ });
77
+ })(input, "$input", true);
78
+ }
79
+ const success = 0 === errors.length;
80
+ return {
81
+ success,
82
+ errors,
83
+ data: success ? input : void 0
84
+ };
85
+ };
86
+
87
+ export {
88
+ imgPayload,
89
+ validimgRequest,
90
+ validimgResponse
91
+ };
package/dist/img.js ADDED
@@ -0,0 +1,11 @@
1
+ import {
2
+ imgPayload,
3
+ validimgRequest,
4
+ validimgResponse
5
+ } from "./chunk-NBLSSFQV.js";
6
+ import "./chunk-Z6B6IQIY.js";
7
+ export {
8
+ imgPayload,
9
+ validimgRequest,
10
+ validimgResponse
11
+ };
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ import {
2
+ termsByIdsPayload,
3
+ validTermsByIdsRequest,
4
+ validTermsByIdsResponse
5
+ } from "./chunk-QV7KKZV4.js";
1
6
  import {
2
7
  termdbTopTermsByTypePayload,
3
8
  validTermdbTopTermsByTypeRequest,
@@ -23,6 +28,11 @@ import {
23
28
  validWSImagesResponse,
24
29
  wsImagesPayload
25
30
  } from "./chunk-XLBSZOMF.js";
31
+ import {
32
+ percentilePayload,
33
+ validPercentileRequest,
34
+ validPercentileResponse
35
+ } from "./chunk-IORCECK2.js";
26
36
  import {
27
37
  rootTermPayload,
28
38
  validRootTermRequest,
@@ -59,10 +69,10 @@ import {
59
69
  validTermChildrenResponse
60
70
  } from "./chunk-5RZYB4M4.js";
61
71
  import {
62
- termsByIdsPayload,
63
- validTermsByIdsRequest,
64
- validTermsByIdsResponse
65
- } from "./chunk-QV7KKZV4.js";
72
+ diffExpPayload,
73
+ validDERequest,
74
+ validDEResponse
75
+ } from "./chunk-Z2WFGV6V.js";
66
76
  import {
67
77
  boxplotPayload,
68
78
  validBoxPlotRequest,
@@ -98,16 +108,16 @@ import {
98
108
  validNumericCategoriesRequest,
99
109
  validNumericCategoriesResponse
100
110
  } from "./chunk-JDJZ35H6.js";
101
- import {
102
- percentilePayload,
103
- validPercentileRequest,
104
- validPercentileResponse
105
- } from "./chunk-IORCECK2.js";
106
111
  import {
107
112
  hicstatPayload,
108
113
  validHicstatRequest,
109
114
  validHicstatResponse
110
115
  } from "./chunk-QX7QLUKY.js";
116
+ import {
117
+ imgPayload,
118
+ validimgRequest,
119
+ validimgResponse
120
+ } from "./chunk-NBLSSFQV.js";
111
121
  import {
112
122
  isoformlstPayload,
113
123
  validIsoformLstRequest,
@@ -133,11 +143,6 @@ import {
133
143
  validSnpRequest,
134
144
  validSnpResponse
135
145
  } from "./chunk-XJCQEOPB.js";
136
- import {
137
- diffExpPayload,
138
- validDERequest,
139
- validDEResponse
140
- } from "./chunk-Z2WFGV6V.js";
141
146
  import {
142
147
  GdcMafPayload,
143
148
  validGdcMafBuildRequest,
@@ -240,6 +245,7 @@ export {
240
245
  hicGenomePayload,
241
246
  hicdataPayload,
242
247
  hicstatPayload,
248
+ imgPayload,
243
249
  isoformlstPayload,
244
250
  ntseqPayload,
245
251
  numericCategoriesPayload,
@@ -350,6 +356,8 @@ export {
350
356
  validViolinResponse,
351
357
  validWSImagesRequest,
352
358
  validWSImagesResponse,
359
+ validimgRequest,
360
+ validimgResponse,
353
361
  violinPayload,
354
362
  wsImagesPayload
355
363
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.98.2-1",
3
+ "version": "2.99.1-0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -567,10 +567,9 @@ export type GeneExpressionQuery = GeneExpressionQueryGdc | GeneExpressionQueryNa
567
567
 
568
568
  export type SingleCellGeneExpressionNative = {
569
569
  src: 'native'
570
- /** path to R rds or HDF5 files, each is a gene-by-cell matrix for a sample, with ".rdx" suffix. missing files are detected and handled */
570
+ /** path to HDF5 files. for now only hdf5 is supported.
571
+ each is a gene-by-cell matrix for a sample, with ".h5" suffix. missing files are detected and handled */
571
572
  folder: string
572
- /** HDF5 or RDS file, will deprecate RDS file later */
573
- storage_type: 'HDF5' | 'RDS'
574
573
  /** dynamically added getter */
575
574
  get?: (q: any) => any
576
575
  /** cached gene exp bins */
@@ -695,6 +694,17 @@ also, sampleView uses this to determine if to invoke the sc plot for a sample
695
694
  geneExpression?: SingleCellGeneExpressionGdc | SingleCellGeneExpressionNative
696
695
  /** Precomputed top differentialy expressed genes for a cell cluster, against rest of cells */
697
696
  DEgenes?: SingleCellDEgeneGdc
697
+ /** supplies per-sample images. will create a new tab on the ui. one image per sample */
698
+ images?: SCImages
699
+ }
700
+
701
+ type SCImages = {
702
+ /** folder where the per-sample image files are stored, as "SCImages/<folder>/<sample>/<fileName>" */
703
+ folder: string
704
+ /** see above */
705
+ fileName: string
706
+ /**Used to name the image tab in the single cell plot */
707
+ label: string
698
708
  }
699
709
 
700
710
  type LdQuery = {
@@ -1012,6 +1022,8 @@ type MatrixSettings = {
1012
1022
  * tb.filter?.values[0]?.dt === 4).isOrdered */
1013
1023
  sortByCNV?: boolean
1014
1024
  cnvUnit?: 'log2ratio' | 'segmedian'
1025
+ /** whether to show white cell border for SNVindel in oncoPrint mode */
1026
+ oncoPrintSNVindelCellBorder?: boolean
1015
1027
  }
1016
1028
 
1017
1029
  type NumericDictTermClusterSettings = {
package/src/index.ts CHANGED
@@ -41,6 +41,7 @@ export * from './routes/termdb.percentile.ts'
41
41
  export * from './routes/termdb.rootterm.ts'
42
42
  export * from './routes/termdb.termchildren.ts'
43
43
  export * from './routes/termdb.sampleImages.ts'
44
+ export * from './routes/img.ts'
44
45
  export * from './routes/termdb.singlecellData.ts'
45
46
  export * from './routes/termdb.singlecellDEgenes.ts'
46
47
  export * from './routes/termdb.singlecellSamples.ts'
@@ -0,0 +1,23 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+
3
+ export type imgRequest = {
4
+ file: string
5
+ }
6
+
7
+ export type SrcImage = {
8
+ src: any
9
+ }
10
+
11
+ export type imgResponse = {
12
+ src: string
13
+ size: string
14
+ }
15
+
16
+ export const imgPayload: RoutePayload = {
17
+ request: {
18
+ typeId: 'imgRequest'
19
+ },
20
+ response: {
21
+ typeId: 'imgResponse'
22
+ }
23
+ }