@sjcrh/proteinpaint-types 2.118.1-1 → 2.118.3-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.
|
@@ -69,7 +69,7 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
69
69
|
return true;
|
|
70
70
|
return true;
|
|
71
71
|
});
|
|
72
|
-
const $io3 = (input3) => "string" === typeof input3.experimentID;
|
|
72
|
+
const $io3 = (input3) => void 0 === input3.experimentID || "string" === typeof input3.experimentID;
|
|
73
73
|
const $iu0 = (input3) => (() => {
|
|
74
74
|
if (void 0 !== input3.status)
|
|
75
75
|
return $io0(input3);
|
|
@@ -94,19 +94,19 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
94
94
|
})].every((flag) => flag);
|
|
95
95
|
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.samples) || $report(_exceptionable2, {
|
|
96
96
|
path: _path2 + ".samples",
|
|
97
|
-
expected: "Array<
|
|
97
|
+
expected: "Array<SingleCellSample>",
|
|
98
98
|
value: input3.samples
|
|
99
99
|
})) && input3.samples.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
100
100
|
path: _path2 + ".samples[" + _index1 + "]",
|
|
101
|
-
expected: "
|
|
101
|
+
expected: "SingleCellSample",
|
|
102
102
|
value: elem
|
|
103
103
|
})) && $vo2(elem, _path2 + ".samples[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
104
104
|
path: _path2 + ".samples[" + _index1 + "]",
|
|
105
|
-
expected: "
|
|
105
|
+
expected: "SingleCellSample",
|
|
106
106
|
value: elem
|
|
107
107
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
108
108
|
path: _path2 + ".samples",
|
|
109
|
-
expected: "Array<
|
|
109
|
+
expected: "Array<SingleCellSample>",
|
|
110
110
|
value: input3.samples
|
|
111
111
|
}), (Array.isArray(input3.fields) || $report(_exceptionable2, {
|
|
112
112
|
path: _path2 + ".fields",
|
|
@@ -167,9 +167,9 @@ var validTermdbSingleCellSamplesResponse = (input) => {
|
|
|
167
167
|
return true;
|
|
168
168
|
return true;
|
|
169
169
|
}).every((flag) => flag)].every((flag) => flag);
|
|
170
|
-
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.experimentID || $report(_exceptionable2, {
|
|
170
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => [true, void 0 === input3.experimentID || "string" === typeof input3.experimentID || $report(_exceptionable2, {
|
|
171
171
|
path: _path2 + ".experimentID",
|
|
172
|
-
expected: "string",
|
|
172
|
+
expected: "(string | undefined)",
|
|
173
173
|
value: input3.experimentID
|
|
174
174
|
})].every((flag) => flag);
|
|
175
175
|
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -587,11 +587,11 @@ type Probe2Cnv = {
|
|
|
587
587
|
*/
|
|
588
588
|
|
|
589
589
|
type RnaseqGeneCount = {
|
|
590
|
-
/** Name of the HDF5
|
|
590
|
+
/** Name of the HDF5 file */
|
|
591
591
|
file: string
|
|
592
592
|
samplesFile?: string
|
|
593
|
-
/** Storage_type for storing data (HDF5
|
|
594
|
-
storage_type: '
|
|
593
|
+
/** Storage_type for storing data (HDF5) */
|
|
594
|
+
storage_type: 'HDF5'
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
/** the metabolite query */
|
|
@@ -623,8 +623,6 @@ export type GeneExpressionQueryNative = {
|
|
|
623
623
|
samples?: number[]
|
|
624
624
|
/** dynamically added flag during launch */
|
|
625
625
|
nochr?: boolean
|
|
626
|
-
/** if true, the file is in HDF5 format */
|
|
627
|
-
hdf5File?: boolean
|
|
628
626
|
/** dynamically added getter */
|
|
629
627
|
get?: (param: any) => void
|
|
630
628
|
/** This dictionary is used to store/cache the default bins calculated for a geneExpression term when initialized in the fillTermWrapper */
|
|
@@ -635,7 +633,7 @@ export type GeneExpressionQuery = GeneExpressionQueryGdc | GeneExpressionQueryNa
|
|
|
635
633
|
|
|
636
634
|
export type SingleCellGeneExpressionNative = {
|
|
637
635
|
src: 'native'
|
|
638
|
-
/** path to HDF5 files. for now only
|
|
636
|
+
/** path to HDF5 files. for now only HDF5 is supported.
|
|
639
637
|
each is a gene-by-cell matrix for a sample, with ".h5" suffix. missing files are detected and handled */
|
|
640
638
|
folder: string
|
|
641
639
|
/** dynamically added getter */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RoutePayload } from './routeApi.js'
|
|
2
2
|
import type { ErrorResponse } from './errorResponse.ts'
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type SingleCellSample = {
|
|
5
5
|
/** Sample name, required */
|
|
6
6
|
sample: string
|
|
7
7
|
/** optional list of sc data files available for this sample, gdc-specific
|
|
@@ -13,7 +13,10 @@ export type Sample = {
|
|
|
13
13
|
if no exp, then each sample will just have one experiment identifiable by its sample name, and this name is used in request
|
|
14
14
|
*/
|
|
15
15
|
[key: string]: any //sample column/term value
|
|
16
|
-
experiments?: {
|
|
16
|
+
experiments?: {
|
|
17
|
+
sampleName: any
|
|
18
|
+
experimentID?: string
|
|
19
|
+
}[]
|
|
17
20
|
|
|
18
21
|
// a sample may have additional fields that will be displayed in table, see singleCell.samples.sampleColumns[]
|
|
19
22
|
}
|
|
@@ -27,7 +30,7 @@ export type TermdbSingleCellSamplesRequest = {
|
|
|
27
30
|
}
|
|
28
31
|
type ValidResponse = {
|
|
29
32
|
/** List of sample names with singlecell data */
|
|
30
|
-
samples:
|
|
33
|
+
samples: SingleCellSample[]
|
|
31
34
|
fields: string[]
|
|
32
35
|
columnNames: string[]
|
|
33
36
|
sameLegend?: boolean
|