@sjcrh/proteinpaint-types 2.138.3-5 → 2.138.3-7

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/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  termsByIdsPayload,
13
13
  validTermsByIdsRequest,
14
14
  validTermsByIdsResponse
15
- } from "./chunk-CC3OBRKE.js";
15
+ } from "./chunk-2QKCLUH3.js";
16
16
  import {
17
17
  topMutatedGenePayload,
18
18
  validtopMutatedGeneRequest,
@@ -22,17 +22,17 @@ import {
22
22
  termdbTopTermsByTypePayload,
23
23
  validTermdbTopTermsByTypeRequest,
24
24
  validTermdbTopTermsByTypeResponse
25
- } from "./chunk-2YASZMH3.js";
25
+ } from "./chunk-5BKOSJEU.js";
26
26
  import {
27
27
  termdbTopVariablyExpressedGenesPayload,
28
28
  validTermdbTopVariablyExpressedGenesRequest,
29
29
  validTermdbTopVariablyExpressedGenesResponse
30
- } from "./chunk-7FTOFTNK.js";
30
+ } from "./chunk-P3Z422N2.js";
31
31
  import {
32
32
  validViolinRequest,
33
33
  validViolinResponse,
34
34
  violinPayload
35
- } from "./chunk-O3NHQOWL.js";
35
+ } from "./chunk-Y6Z6XAFN.js";
36
36
  import {
37
37
  tilePayload,
38
38
  validTileRequest,
@@ -87,12 +87,12 @@ import {
87
87
  termdbCategoriesPayload,
88
88
  validCategoriesRequest,
89
89
  validCategoriesResponse
90
- } from "./chunk-HCBXL376.js";
90
+ } from "./chunk-ZHCVV36H.js";
91
91
  import {
92
92
  termdbClusterPayload,
93
93
  validTermdbClusterRequest,
94
94
  validTermdbClusterResponse
95
- } from "./chunk-LTGT4NK4.js";
95
+ } from "./chunk-NHELOLDH.js";
96
96
  import {
97
97
  termdbCohortSummaryPayload,
98
98
  validTermdbCohortSummaryRequest,
@@ -107,7 +107,7 @@ import {
107
107
  descrStatsPayload,
108
108
  validDescrStatsRequest,
109
109
  validDescrStatsResponse
110
- } from "./chunk-I2BMMKPN.js";
110
+ } from "./chunk-KDHGWAOS.js";
111
111
  import {
112
112
  FilterTermValuesPayload,
113
113
  validFilterTermValuesRequest,
@@ -117,12 +117,12 @@ import {
117
117
  numericCategoriesPayload,
118
118
  validNumericCategoriesRequest,
119
119
  validNumericCategoriesResponse
120
- } from "./chunk-DD2RLZHC.js";
120
+ } from "./chunk-G5BYLEJC.js";
121
121
  import {
122
122
  percentilePayload,
123
123
  validPercentileRequest,
124
124
  validPercentileResponse
125
- } from "./chunk-6HAS5WRS.js";
125
+ } from "./chunk-R3DIKDES.js";
126
126
  import {
127
127
  isoformlstPayload,
128
128
  validIsoformLstRequest,
@@ -162,7 +162,7 @@ import {
162
162
  boxplotPayload,
163
163
  validBoxPlotRequest,
164
164
  validBoxPlotResponse
165
- } from "./chunk-IY6W7HXW.js";
165
+ } from "./chunk-F2ZZ5J3F.js";
166
166
  import {
167
167
  genesetOverrepresentationPayload,
168
168
  validGenesetOverrepresentationRequest,
@@ -255,7 +255,7 @@ import {
255
255
  brainImagingPayload,
256
256
  validBrainImagingRequest,
257
257
  validBrainImagingResponse
258
- } from "./chunk-JKBVXIRQ.js";
258
+ } from "./chunk-HJ7XFSJK.js";
259
259
  import {
260
260
  brainImagingSamplesPayload,
261
261
  validBrainImagingSamplesRequest,
@@ -277,7 +277,7 @@ import {
277
277
  CorrelationVolcanoPayload,
278
278
  validCorrelationVolcanoRequest,
279
279
  validCorrelationVolcanoResponse
280
- } from "./chunk-QG776KAI.js";
280
+ } from "./chunk-34LXTZYA.js";
281
281
  import "./chunk-CNSSF43V.js";
282
282
  export {
283
283
  CorrelationVolcanoPayload,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-IY6W7HXW.js";
5
+ } from "./chunk-F2ZZ5J3F.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-HCBXL376.js";
5
+ } from "./chunk-ZHCVV36H.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-LTGT4NK4.js";
5
+ } from "./chunk-NHELOLDH.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-I2BMMKPN.js";
5
+ } from "./chunk-KDHGWAOS.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  numericCategoriesPayload,
3
3
  validNumericCategoriesRequest,
4
4
  validNumericCategoriesResponse
5
- } from "./chunk-DD2RLZHC.js";
5
+ } from "./chunk-G5BYLEJC.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  numericCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  percentilePayload,
3
3
  validPercentileRequest,
4
4
  validPercentileResponse
5
- } from "./chunk-6HAS5WRS.js";
5
+ } from "./chunk-R3DIKDES.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  percentilePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-CC3OBRKE.js";
5
+ } from "./chunk-2QKCLUH3.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termsByIdsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopTermsByTypePayload,
3
3
  validTermdbTopTermsByTypeRequest,
4
4
  validTermdbTopTermsByTypeResponse
5
- } from "./chunk-2YASZMH3.js";
5
+ } from "./chunk-5BKOSJEU.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbTopTermsByTypePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-7FTOFTNK.js";
5
+ } from "./chunk-P3Z422N2.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-O3NHQOWL.js";
5
+ } from "./chunk-Y6Z6XAFN.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  validViolinRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.138.3-5",
3
+ "version": "2.138.3-7",
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
@@ -973,6 +973,14 @@ type Mds3Queries = {
973
973
  singleSampleMutation?: SingleSampleMutationQuery
974
974
  NIdata?: NIdataQuery
975
975
  geneExpression?: GeneExpressionQuery
976
+ /** single-sample gsea precomputed scores for rnaseq samples, for genesets from geneset db
977
+ requires genome to be equipped with geneset db
978
+ */
979
+ ssGSEA?: {
980
+ /** path to h5 file, matrix of NES scores. rows are msigdb geneset ids, columns are rnaseq samples */
981
+ file: string
982
+ // in case a genome may have more than 1 geneset dbs, here may specify name of db that this result is based on */
983
+ }
976
984
  rnaseqGeneCount?: RnaseqGeneCount
977
985
  /** Used to create the top mutated genes UI in the gene
978
986
  * set edit ui and data requests. */
@@ -981,7 +989,7 @@ type Mds3Queries = {
981
989
  * set edit ui. Also used for data requests */
982
990
  topVariablyExpressedGenes?: TopVariablyExpressedGenesQuery
983
991
  metaboliteIntensity?: {
984
- src: 'native' | 'gdc'
992
+ src: 'native'
985
993
  file: string
986
994
  }
987
995
  singleCell?: SingleCellQuery
package/src/index.ts CHANGED
@@ -71,6 +71,7 @@ export * from './terms/singleCellGeneExpression.ts'
71
71
  export * from './terms/snp.ts'
72
72
  export * from './terms/snps.ts'
73
73
  export * from './terms/samplelst.ts'
74
+ export * from './terms/ssGSEA.ts'
74
75
  export * from './terms/q.ts'
75
76
  export * from './terms/term.ts'
76
77
  export * from './terms/tw.ts'
@@ -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' | 'date'
37
+ type: 'integer' | 'float' | 'geneExpression' | 'metaboliteIntensity' | 'date' | 'ssGSEA'
38
38
  bins: PresetNumericBins
39
39
  values?: TermValues
40
40
  unit?: string
@@ -0,0 +1,26 @@
1
+ import type { TermWrapper } from './tw.ts'
2
+ import type { NumericTerm, NumericQ } from './numeric.ts'
3
+ import type { TermSettingInstance } from '../termsetting.ts'
4
+
5
+ /*
6
+ duplicated from geneExpression.ts
7
+ */
8
+
9
+ export type SsGSEAQ = NumericQ & { dt?: number }
10
+
11
+ export type SsGSEATW = TermWrapper & {
12
+ q: SsGSEAQ
13
+ term: SsGSEATerm
14
+ }
15
+
16
+ export type SsGSEATerm = NumericTerm & {
17
+ /** term.id: geneset db term id for native term, and cache file name for custom term */
18
+ /** term.name: geneset db term name for native term, and user-defined name for custom term */
19
+ /** custom term has list of gene names used for computing score */
20
+ genes?: string[]
21
+ }
22
+
23
+ export type SsGSEATermSettingInstance = TermSettingInstance & {
24
+ q: SsGSEAQ
25
+ term: SsGSEATerm
26
+ }