@sjcrh/proteinpaint-types 2.113.0 → 2.115.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/brainImaging.js +1 -1
- package/dist/chunk-5HL5BPE5.js +126 -0
- package/dist/{chunk-A72XYNKT.js → chunk-7GSVLBKZ.js} +22 -22
- package/dist/{chunk-7Z3AE4AY.js → chunk-C7DJDPLP.js} +592 -496
- package/dist/{chunk-GHAIGRB7.js → chunk-EQGBEPDC.js} +22 -22
- package/dist/{chunk-KHPBBU43.js → chunk-GS37E7DB.js} +592 -496
- package/dist/{chunk-TXZQ56TX.js → chunk-I3U2T7HV.js} +590 -494
- package/dist/{chunk-Q5F2XI6A.js → chunk-IJHMCHUT.js} +31 -23
- package/dist/{chunk-GGKNEHME.js → chunk-KBTAXZM4.js} +331 -305
- package/dist/{chunk-4CCAF4O5.js → chunk-KZIZMP7Y.js} +64 -64
- package/dist/{chunk-ES6BRZ4L.js → chunk-M26XQDA4.js} +22 -22
- package/dist/{chunk-FMW25T52.js → chunk-MDBZCBM2.js} +293 -197
- package/dist/{chunk-OJWYCYKF.js → chunk-NESPJ4GG.js} +76 -76
- package/dist/{chunk-2WZPM25H.js → chunk-PTYGGJLG.js} +592 -496
- package/dist/{chunk-ZFUF4XMD.js → chunk-ZPN2DV5E.js} +22 -22
- package/dist/correlationVolcano.js +1 -1
- package/dist/index.js +45 -37
- 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.topMutatedGenes.js +11 -0
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violin.js +1 -1
- package/dist/wsisamples.js +11 -0
- package/package.json +1 -1
- package/src/dataset.ts +32 -9
- package/src/index.ts +2 -1
- package/src/routes/{gdc.topMutatedGenes.ts → termdb.topMutatedGenes.ts} +9 -7
- package/src/routes/wsisamples.ts +25 -0
- package/src/terms/geneVariant.ts +23 -2
- package/src/terms/numeric.ts +2 -2
- package/src/terms/term.ts +18 -9
- package/dist/gdc.topMutatedGenes.js +0 -11
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { RoutePayload } from './routeApi.js'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type topMutatedGeneRequest = {
|
|
4
|
+
genome: string
|
|
5
|
+
dslabel: string
|
|
4
6
|
/** to restrict to CGC genes */
|
|
5
7
|
geneFilter?: 'CGC'
|
|
6
8
|
/** max number of genes to return */
|
|
@@ -9,7 +11,7 @@ export type GdcTopMutatedGeneRequest = {
|
|
|
9
11
|
filter0?: object
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
export type
|
|
14
|
+
export type MutatedGene = {
|
|
13
15
|
/** gene symbol */
|
|
14
16
|
gene: string
|
|
15
17
|
/** optional attributes on number of mutated cases per dt */
|
|
@@ -22,16 +24,16 @@ export type GdcGene = {
|
|
|
22
24
|
}[]
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
export type
|
|
26
|
-
genes:
|
|
27
|
+
export type topMutatedGeneResponse = {
|
|
28
|
+
genes: MutatedGene[]
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
export const
|
|
31
|
+
export const topMutatedGenePayload: RoutePayload = {
|
|
30
32
|
request: {
|
|
31
|
-
typeId: '
|
|
33
|
+
typeId: 'topMutatedGeneRequest'
|
|
32
34
|
},
|
|
33
35
|
response: {
|
|
34
|
-
typeId: '
|
|
36
|
+
typeId: 'topMutatedGeneResponse'
|
|
35
37
|
}
|
|
36
38
|
//examples: []
|
|
37
39
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.js'
|
|
2
|
+
|
|
3
|
+
export type WSISamplesRequest = {
|
|
4
|
+
genome: string
|
|
5
|
+
dslabel: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type WSISamplesResponse = {
|
|
9
|
+
samples: Array<WSISample>
|
|
10
|
+
error?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type WSISample = {
|
|
14
|
+
sampleId: string
|
|
15
|
+
wsimages: Array<string>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const wsiSamplesPayload: RoutePayload = {
|
|
19
|
+
request: {
|
|
20
|
+
typeId: 'WSISamplesRequest'
|
|
21
|
+
},
|
|
22
|
+
response: {
|
|
23
|
+
typeId: 'WSISamplesResponse'
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/terms/geneVariant.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
MinBaseQ,
|
|
3
|
+
BaseTerm,
|
|
4
|
+
EnabledTermGroupSetting,
|
|
5
|
+
BaseTW,
|
|
6
|
+
GroupSettingQ,
|
|
7
|
+
ValuesQ,
|
|
8
|
+
TermValues
|
|
9
|
+
} from '../index.ts'
|
|
10
|
+
import type { TermSettingInstance } from '../termsetting.ts'
|
|
3
11
|
|
|
4
12
|
export type GeneVariantBaseQ = MinBaseQ & {
|
|
5
13
|
cnvGainCutoff?: number
|
|
@@ -49,3 +57,16 @@ export type GeneVariantTermSettingInstance = TermSettingInstance & {
|
|
|
49
57
|
category2samplecount: any
|
|
50
58
|
groupSettingInstance?: any
|
|
51
59
|
}
|
|
60
|
+
|
|
61
|
+
export type DtTerm = {
|
|
62
|
+
id: string
|
|
63
|
+
name: string
|
|
64
|
+
parent_id: any
|
|
65
|
+
isleaf: boolean
|
|
66
|
+
type: string
|
|
67
|
+
dt: number
|
|
68
|
+
origin?: string
|
|
69
|
+
values?: TermValues
|
|
70
|
+
min?: number
|
|
71
|
+
max?: number
|
|
72
|
+
}
|
package/src/terms/numeric.ts
CHANGED
|
@@ -34,7 +34,7 @@ export type NumericTerm = BaseTerm & {
|
|
|
34
34
|
id?: string
|
|
35
35
|
// these concrete term.type values make it clear that only these are numeric,
|
|
36
36
|
// "categorical", "condition", and other term.types are not included in this union
|
|
37
|
-
type: 'integer' | 'float' | 'geneExpression' | 'metaboliteIntensity'
|
|
37
|
+
type: 'integer' | 'float' | 'geneExpression' | 'metaboliteIntensity' | 'date'
|
|
38
38
|
bins: PresetNumericBins
|
|
39
39
|
values?: TermValues
|
|
40
40
|
unit?: string
|
|
@@ -50,7 +50,7 @@ export type NumericTerm = BaseTerm & {
|
|
|
50
50
|
|
|
51
51
|
export type NumericDictTerm = BaseTerm & {
|
|
52
52
|
id?: string
|
|
53
|
-
type: 'integer' | 'float'
|
|
53
|
+
type: 'integer' | 'float' | 'date'
|
|
54
54
|
bins: PresetNumericBins
|
|
55
55
|
values?: TermValues
|
|
56
56
|
unit?: string
|
package/src/terms/term.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Filter } from '../filter.js'
|
|
2
|
-
import { CategoricalTerm, CategoricalBaseQ } from './categorical.js'
|
|
3
|
-
import { ConditionTerm } from './condition.js'
|
|
4
|
-
import { NumericTerm } from './numeric.js'
|
|
5
|
-
import { GeneVariantTerm } from './geneVariant.js'
|
|
6
|
-
import { SampleLstTerm } from './samplelst.js'
|
|
7
|
-
import { SnpsTerm } from './snps.js'
|
|
1
|
+
import type { Filter } from '../filter.js'
|
|
2
|
+
import type { CategoricalTerm, CategoricalBaseQ } from './categorical.js'
|
|
3
|
+
import type { ConditionTerm } from './condition.js'
|
|
4
|
+
import type { NumericTerm } from './numeric.js'
|
|
5
|
+
import type { GeneVariantTerm } from './geneVariant.js'
|
|
6
|
+
import type { SampleLstTerm } from './samplelst.js'
|
|
7
|
+
import type { SnpsTerm } from './snps.js'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @param id term.id for dictionary terms, undefined for non-dictionary terms
|
|
@@ -56,6 +56,8 @@ export type BaseQ = {
|
|
|
56
56
|
| 'custom-groupset'
|
|
57
57
|
/** Applies to samplelst terms */
|
|
58
58
|
| 'custom-samplelst'
|
|
59
|
+
/** Applies to geneVariant term */
|
|
60
|
+
| 'filter'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
export type ValuesQ = CategoricalBaseQ & {
|
|
@@ -72,7 +74,11 @@ export type CustomGroupSettingQ = CategoricalBaseQ & {
|
|
|
72
74
|
customset: BaseGroupSet
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
export type
|
|
77
|
+
export type FilterQ = BaseQ & {
|
|
78
|
+
type: 'filter'
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type GroupSettingQ = ValuesQ | FilterQ | PredefinedGroupSettingQ | CustomGroupSettingQ
|
|
76
82
|
|
|
77
83
|
/*** types supporting termwrapper term ***/
|
|
78
84
|
|
|
@@ -99,6 +105,7 @@ export type BaseTerm = {
|
|
|
99
105
|
included_types?: string[]
|
|
100
106
|
isleaf?: boolean
|
|
101
107
|
values?: TermValues
|
|
108
|
+
filter?: any
|
|
102
109
|
}
|
|
103
110
|
|
|
104
111
|
export type Term = BaseTerm &
|
|
@@ -115,7 +122,8 @@ export type ValuesGroup = {
|
|
|
115
122
|
export type FilterGroup = {
|
|
116
123
|
name: string
|
|
117
124
|
type: 'filter'
|
|
118
|
-
filter:
|
|
125
|
+
filter: any
|
|
126
|
+
uncomputable?: boolean // if true, do not include this group in computations
|
|
119
127
|
}
|
|
120
128
|
|
|
121
129
|
export type GroupEntry = ValuesGroup | FilterGroup
|
|
@@ -128,6 +136,7 @@ type Groupset = {
|
|
|
128
136
|
name: string
|
|
129
137
|
is_grade?: boolean
|
|
130
138
|
is_subcondition?: boolean
|
|
139
|
+
id?: string // to identify groupset, used by geneVariant term
|
|
131
140
|
} & BaseGroupSet
|
|
132
141
|
|
|
133
142
|
export type EnabledTermGroupSetting = {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
gdcTopMutatedGenePayload,
|
|
3
|
-
validGdcTopMutatedGeneRequest,
|
|
4
|
-
validGdcTopMutatedGeneResponse
|
|
5
|
-
} from "./chunk-Q5F2XI6A.js";
|
|
6
|
-
import "./chunk-CNSSF43V.js";
|
|
7
|
-
export {
|
|
8
|
-
gdcTopMutatedGenePayload,
|
|
9
|
-
validGdcTopMutatedGeneRequest,
|
|
10
|
-
validGdcTopMutatedGeneResponse
|
|
11
|
-
};
|