@sjcrh/proteinpaint-types 2.159.0 → 2.160.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.
- package/dist/{chunk-4LOGWDCZ.js → chunk-3EVYVWI2.js} +4 -4
- package/dist/{chunk-5BNDT4E6.js → chunk-GDZUCVIB.js} +6 -2
- package/dist/index.js +2 -2
- 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/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",
|
|
@@ -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/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,
|
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 = {
|
|
@@ -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
|
|