@sjcrh/proteinpaint-types 2.137.1 → 2.137.2-1
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/brainImaging.js +1 -1
- package/dist/{chunk-OQVYIYZL.js → chunk-657TS66W.js} +338 -394
- package/dist/{chunk-UG7RYMCA.js → chunk-6H6TQ3MA.js} +117 -145
- package/dist/{chunk-DA6B77HN.js → chunk-6LRQCE3E.js} +117 -145
- package/dist/{chunk-AKJWBIUV.js → chunk-7YFANJ2A.js} +268 -296
- package/dist/{chunk-HF2D3UVQ.js → chunk-CBPDONEQ.js} +268 -296
- package/dist/{chunk-B2FSTXLW.js → chunk-FMSTAFII.js} +117 -145
- package/dist/{chunk-3P6M5ZNJ.js → chunk-IE3MSHTB.js} +268 -296
- package/dist/{chunk-MLAGM7F5.js → chunk-MDPMNCMV.js} +268 -296
- package/dist/{chunk-M7HKDHB3.js → chunk-PAQX4HYF.js} +329 -357
- package/dist/{chunk-BS7BYTYZ.js → chunk-QCGBPQ7S.js} +113 -141
- package/dist/{chunk-C32XALTH.js → chunk-SUL2XLYM.js} +304 -360
- package/dist/{chunk-G5SBQR25.js → chunk-YGOZU46P.js} +117 -145
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +12 -12
- package/dist/termdb.boxplot.js +1 -1
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.numericcategories.js +1 -1
- package/dist/termdb.percentile.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violin.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +4 -3
- package/src/terms/geneVariant.ts +29 -19
- package/src/terms/term.ts +4 -12
package/dist/index.js
CHANGED
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
termdbTopTermsByTypePayload,
|
|
8
8
|
validTermdbTopTermsByTypeRequest,
|
|
9
9
|
validTermdbTopTermsByTypeResponse
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SUL2XLYM.js";
|
|
11
11
|
import {
|
|
12
12
|
termdbTopVariablyExpressedGenesPayload,
|
|
13
13
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
14
14
|
validTermdbTopVariablyExpressedGenesResponse
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6H6TQ3MA.js";
|
|
16
16
|
import {
|
|
17
17
|
validViolinRequest,
|
|
18
18
|
validViolinResponse,
|
|
19
19
|
violinPayload
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YGOZU46P.js";
|
|
21
21
|
import {
|
|
22
22
|
tilePayload,
|
|
23
23
|
validTileRequest,
|
|
@@ -72,22 +72,22 @@ import {
|
|
|
72
72
|
termsByIdsPayload,
|
|
73
73
|
validTermsByIdsRequest,
|
|
74
74
|
validTermsByIdsResponse
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-7YFANJ2A.js";
|
|
76
76
|
import {
|
|
77
77
|
boxplotPayload,
|
|
78
78
|
validBoxPlotRequest,
|
|
79
79
|
validBoxPlotResponse
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-MDPMNCMV.js";
|
|
81
81
|
import {
|
|
82
82
|
termdbCategoriesPayload,
|
|
83
83
|
validCategoriesRequest,
|
|
84
84
|
validCategoriesResponse
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CBPDONEQ.js";
|
|
86
86
|
import {
|
|
87
87
|
termdbClusterPayload,
|
|
88
88
|
validTermdbClusterRequest,
|
|
89
89
|
validTermdbClusterResponse
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-657TS66W.js";
|
|
91
91
|
import {
|
|
92
92
|
termdbCohortSummaryPayload,
|
|
93
93
|
validTermdbCohortSummaryRequest,
|
|
@@ -102,17 +102,17 @@ import {
|
|
|
102
102
|
descrStatsPayload,
|
|
103
103
|
validDescrStatsRequest,
|
|
104
104
|
validDescrStatsResponse
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-IE3MSHTB.js";
|
|
106
106
|
import {
|
|
107
107
|
numericCategoriesPayload,
|
|
108
108
|
validNumericCategoriesRequest,
|
|
109
109
|
validNumericCategoriesResponse
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-FMSTAFII.js";
|
|
111
111
|
import {
|
|
112
112
|
percentilePayload,
|
|
113
113
|
validPercentileRequest,
|
|
114
114
|
validPercentileResponse
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-6LRQCE3E.js";
|
|
116
116
|
import {
|
|
117
117
|
ntseqPayload,
|
|
118
118
|
validNtseqRequest,
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
brainImagingPayload,
|
|
236
236
|
validBrainImagingRequest,
|
|
237
237
|
validBrainImagingResponse
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-QCGBPQ7S.js";
|
|
239
239
|
import {
|
|
240
240
|
brainImagingSamplesPayload,
|
|
241
241
|
validBrainImagingSamplesRequest,
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
CorrelationVolcanoPayload,
|
|
258
258
|
validCorrelationVolcanoRequest,
|
|
259
259
|
validCorrelationVolcanoResponse
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-PAQX4HYF.js";
|
|
261
261
|
import {
|
|
262
262
|
datasetPayload,
|
|
263
263
|
validDatasetRequest,
|
package/dist/termdb.boxplot.js
CHANGED
package/dist/termdb.cluster.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termdbTopVariablyExpressedGenesPayload,
|
|
3
3
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
4
4
|
validTermdbTopVariablyExpressedGenesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6H6TQ3MA.js";
|
|
6
6
|
import "./chunk-CNSSF43V.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbTopVariablyExpressedGenesPayload,
|
package/dist/termdb.violin.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -743,14 +743,13 @@ export type SingleCellGeneExpressionGdc = {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
export type SingleCellSamples = {
|
|
746
|
-
/** if missing refer to the samples as 'sample', this provides override e.g. 'case' */
|
|
747
746
|
/** logic to decide sample table columns (the one shown on singlecell app ui, displaying a table of samples with sc data)
|
|
748
747
|
a sample table will always have a sample column, to show sample.sample value
|
|
749
748
|
- use uiLabels.Sample to customize the name of the first column
|
|
750
749
|
- the other two properties allow to declare additional columns to be shown in table, that are for display only
|
|
751
750
|
when sample.experiments[] are used, a last column of experiment id will be auto added
|
|
752
751
|
*/
|
|
753
|
-
/** any columns to be added to sample table. each is a term id */
|
|
752
|
+
/** any columns to be added to sample table. each is a term id, limited to categorical/numeric dictionary terms */
|
|
754
753
|
sampleColumns?: { termid: string }[]
|
|
755
754
|
/** used on client but not on ds */
|
|
756
755
|
experimentColumns?: { label: string }[]
|
|
@@ -803,7 +802,9 @@ type SingleCellPlot = {
|
|
|
803
802
|
/** value is display as plot name on ui and also used as identifier for a plot, must be unique */
|
|
804
803
|
name: string
|
|
805
804
|
/** folder in which per-sample files are stored.
|
|
806
|
-
each file is a tabular text file with all cells (rows) from that sample.
|
|
805
|
+
- each file is a tabular text file with all cells (rows) from that sample. each file is named by the sample and includes optional suffix
|
|
806
|
+
- folder must only contain per-sample files! files with names that cannot be matched to sample will crash dataset. this improves debugging
|
|
807
|
+
|
|
807
808
|
all files must have same set of columns:
|
|
808
809
|
- 1st column is cell barcode
|
|
809
810
|
- x/y coordinate column number is defined in coordsColumns{x,y} below
|
package/src/terms/geneVariant.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MinBaseQ, BaseTerm, TermGroupSetting, BaseTW, TermValues, BaseGroupSet } from '../index.ts'
|
|
1
|
+
import type { MinBaseQ, BaseTerm, TermGroupSetting, BaseTW, TermValues, BaseGroupSet, FilterGroup } from '../index.ts'
|
|
2
2
|
import type { TermSettingInstance } from '../termsetting.ts'
|
|
3
3
|
|
|
4
4
|
// q types
|
|
@@ -10,18 +10,16 @@ export type GvBaseQ = MinBaseQ & {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
type RawGvValuesQ = GvBaseQ & { type?: 'values' }
|
|
13
|
+
type RawGvPredefinedGsQ = GvBaseQ & { type: 'predefined-groupset'; predefined_groupset_idx?: number }
|
|
13
14
|
type RawGvCustomGsQ = GvBaseQ & { type: 'custom-groupset'; customset?: BaseGroupSet }
|
|
14
15
|
|
|
15
16
|
export type GvValuesQ = GvBaseQ & { type: 'values' }
|
|
17
|
+
export type GvPredefinedGsQ = GvBaseQ & { type: 'predefined-groupset'; predefined_groupset_idx: number }
|
|
16
18
|
export type GvCustomGsQ = GvBaseQ & { type: 'custom-groupset'; customset: BaseGroupSet }
|
|
17
19
|
|
|
18
|
-
export type GvQ = GvValuesQ | GvCustomGsQ
|
|
20
|
+
export type GvQ = GvValuesQ | GvPredefinedGsQ | GvCustomGsQ
|
|
19
21
|
|
|
20
22
|
// term types
|
|
21
|
-
type GvBaseTerm = BaseTerm & {
|
|
22
|
-
type: 'geneVariant'
|
|
23
|
-
}
|
|
24
|
-
|
|
25
23
|
export type GvGene = {
|
|
26
24
|
kind: 'gene'
|
|
27
25
|
gene: string
|
|
@@ -40,17 +38,17 @@ export type GvCoord = {
|
|
|
40
38
|
stop: number
|
|
41
39
|
}
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
type GvBaseTerm = BaseTerm & { type: 'geneVariant' } & (GvGene | GvCoord)
|
|
42
|
+
|
|
43
|
+
export type RawGvTerm = GvBaseTerm & {
|
|
44
|
+
groupsetting?: TermGroupSetting
|
|
45
|
+
childTerms?: DtTerm[]
|
|
46
|
+
}
|
|
48
47
|
|
|
49
|
-
export type GvTerm = GvBaseTerm &
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
48
|
+
export type GvTerm = GvBaseTerm & {
|
|
49
|
+
groupsetting: TermGroupSetting
|
|
50
|
+
childTerms: DtTerm[]
|
|
51
|
+
}
|
|
54
52
|
|
|
55
53
|
// tw types
|
|
56
54
|
export type RawGvValuesTW = BaseTW & {
|
|
@@ -59,6 +57,12 @@ export type RawGvValuesTW = BaseTW & {
|
|
|
59
57
|
q: RawGvValuesQ
|
|
60
58
|
}
|
|
61
59
|
|
|
60
|
+
export type RawGvPredefinedGsTW = BaseTW & {
|
|
61
|
+
type?: 'GvPredefinedGsTW'
|
|
62
|
+
term: RawGvTerm
|
|
63
|
+
q: RawGvPredefinedGsQ
|
|
64
|
+
}
|
|
65
|
+
|
|
62
66
|
export type RawGvCustomGsTW = BaseTW & {
|
|
63
67
|
type?: 'GvCustomGsTW'
|
|
64
68
|
term: RawGvTerm
|
|
@@ -71,21 +75,27 @@ export type GvValuesTW = BaseTW & {
|
|
|
71
75
|
q: GvValuesQ
|
|
72
76
|
}
|
|
73
77
|
|
|
78
|
+
export type GvPredefinedGsTW = BaseTW & {
|
|
79
|
+
type: 'GvPredefinedGsTW'
|
|
80
|
+
term: GvTerm
|
|
81
|
+
q: GvPredefinedGsQ
|
|
82
|
+
}
|
|
83
|
+
|
|
74
84
|
export type GvCustomGsTW = BaseTW & {
|
|
75
85
|
type: 'GvCustomGsTW'
|
|
76
86
|
term: GvTerm
|
|
77
87
|
q: GvCustomGsQ
|
|
78
88
|
}
|
|
79
89
|
|
|
80
|
-
export type RawGvTW = RawGvValuesTW | RawGvCustomGsTW
|
|
81
|
-
export type GvTW = GvValuesTW | GvCustomGsTW
|
|
90
|
+
export type RawGvTW = RawGvValuesTW | RawGvPredefinedGsTW | RawGvCustomGsTW
|
|
91
|
+
export type GvTW = GvValuesTW | GvPredefinedGsTW | GvCustomGsTW
|
|
82
92
|
|
|
83
93
|
// termsetting types
|
|
84
94
|
export type GeneVariantTermSettingInstance = TermSettingInstance & {
|
|
85
95
|
q: GvQ
|
|
86
96
|
term: GvTerm
|
|
87
97
|
category2samplecount: any
|
|
88
|
-
|
|
98
|
+
groups: FilterGroup[] // will store groups created in edit UI
|
|
89
99
|
}
|
|
90
100
|
|
|
91
101
|
// miscellaneous types
|
package/src/terms/term.ts
CHANGED
|
@@ -136,22 +136,14 @@ type Groupset = {
|
|
|
136
136
|
name: string
|
|
137
137
|
is_grade?: boolean
|
|
138
138
|
is_subcondition?: boolean
|
|
139
|
-
|
|
139
|
+
dt?: number // dt of groupset, used by geneVariant term
|
|
140
140
|
} & BaseGroupSet
|
|
141
141
|
|
|
142
|
-
export type
|
|
143
|
-
disabled
|
|
144
|
-
lst
|
|
142
|
+
export type TermGroupSetting = {
|
|
143
|
+
disabled: boolean // true when term has <= 2 values, otherwise false
|
|
144
|
+
lst?: Groupset[] // array of predefined groupsets
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
export type TermGroupSetting =
|
|
148
|
-
| EnabledTermGroupSetting
|
|
149
|
-
| {
|
|
150
|
-
/** disabled=false when groupsetting is not applicable for term (e.g., when term has only two categories) */
|
|
151
|
-
disabled: true | boolean // can remove boolean fallback once common.js is converted to .ts and can declare `disabled: true as const`
|
|
152
|
-
lst?: []
|
|
153
|
-
}
|
|
154
|
-
|
|
155
147
|
/*** types supporting termwrapper ***/
|
|
156
148
|
|
|
157
149
|
export type BaseTW = {
|