@sjcrh/proteinpaint-types 2.183.0 → 2.184.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.
@@ -2,7 +2,7 @@ import {
2
2
  CorrelationVolcanoPayload,
3
3
  validCorrelationVolcanoRequest,
4
4
  validCorrelationVolcanoResponse
5
- } from "./chunk-R7BQWUIF.js";
5
+ } from "./chunk-LOFBLGRE.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  CorrelationVolcanoPayload,
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  validViolinBoxRequest,
3
3
  validViolinBoxResponse,
4
4
  violinBoxPayload
5
- } from "./chunk-NF6RKK5E.js";
5
+ } from "./chunk-WNUWRPXG.js";
6
6
  import {
7
7
  tilePayload,
8
8
  validTileRequest,
@@ -42,7 +42,7 @@ import {
42
42
  termsByIdsPayload,
43
43
  validTermsByIdsRequest,
44
44
  validTermsByIdsResponse
45
- } from "./chunk-URG6BNUU.js";
45
+ } from "./chunk-UWK6LBTQ.js";
46
46
  import {
47
47
  topMutatedGenePayload,
48
48
  validtopMutatedGeneRequest,
@@ -107,7 +107,7 @@ import {
107
107
  descrStatsPayload,
108
108
  validDescrStatsRequest,
109
109
  validDescrStatsResponse
110
- } from "./chunk-YDJG6VT4.js";
110
+ } from "./chunk-Y6FNAG22.js";
111
111
  import {
112
112
  diffMethPayload,
113
113
  validDiffMethRequest,
@@ -157,7 +157,7 @@ import {
157
157
  termdbCategoriesPayload,
158
158
  validCategoriesRequest,
159
159
  validCategoriesResponse
160
- } from "./chunk-2UNWSR7Y.js";
160
+ } from "./chunk-INIT6CVR.js";
161
161
  import {
162
162
  validChatRequest,
163
163
  validChatResponse
@@ -169,7 +169,7 @@ import {
169
169
  termdbClusterPayload,
170
170
  validTermdbClusterRequest,
171
171
  validTermdbClusterResponse
172
- } from "./chunk-JYTPHVO2.js";
172
+ } from "./chunk-M7WMC7GC.js";
173
173
  import {
174
174
  termdbCohortSummaryPayload,
175
175
  validTermdbCohortSummaryRequest,
@@ -261,7 +261,7 @@ import {
261
261
  CorrelationVolcanoPayload,
262
262
  validCorrelationVolcanoRequest,
263
263
  validCorrelationVolcanoResponse
264
- } from "./chunk-R7BQWUIF.js";
264
+ } from "./chunk-LOFBLGRE.js";
265
265
  import {
266
266
  datasetPayload,
267
267
  validDatasetRequest,
@@ -319,7 +319,7 @@ import {
319
319
  brainImagingPayload,
320
320
  validBrainImagingRequest,
321
321
  validBrainImagingResponse
322
- } from "./chunk-7ZYM6FC6.js";
322
+ } from "./chunk-TI565XIR.js";
323
323
  import {
324
324
  brainImagingSamplesPayload,
325
325
  validBrainImagingSamplesRequest,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-2UNWSR7Y.js";
5
+ } from "./chunk-INIT6CVR.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-JYTPHVO2.js";
5
+ } from "./chunk-M7WMC7GC.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-YDJG6VT4.js";
5
+ } from "./chunk-Y6FNAG22.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-URG6BNUU.js";
5
+ } from "./chunk-UWK6LBTQ.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termsByIdsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinBoxRequest,
3
3
  validViolinBoxResponse,
4
4
  violinBoxPayload
5
- } from "./chunk-NF6RKK5E.js";
5
+ } from "./chunk-WNUWRPXG.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  validViolinBoxRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.183.0",
3
+ "version": "2.184.0",
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
@@ -120,7 +120,7 @@ type SnvindelByRange = {
120
120
  /** allow to apply special configurations to certain INFO fields of the bcf file */
121
121
  infoFields?: InfoFieldEntry[]
122
122
  /** getter function to retrieve data. dynamically added or ds-supplied */
123
- get?: (f: any) => void
123
+ get?: (f: any, f2?: any) => void
124
124
  }
125
125
 
126
126
  type URLEntry = {
@@ -714,7 +714,6 @@ type ProteomeFilter = {
714
714
  }
715
715
 
716
716
  type ProteomeCohortConfig = {
717
- cohortName: string
718
717
  controlFilter: ProteomeFilter[]
719
718
  caseFilter: ProteomeFilter[]
720
719
  }
@@ -722,7 +721,9 @@ type ProteomeCohortConfig = {
722
721
  type ProteomeAssayConfig = {
723
722
  columnIdx: number
724
723
  columnValue: string | number
725
- cohorts: ProteomeCohortConfig[]
724
+ cohorts: {
725
+ [cohortName: string]: ProteomeCohortConfig
726
+ }
726
727
  /** optional PTM type for PTM assay type */
727
728
  PTMType?: string
728
729
  /** optional specific mclass override for PTM assay type */
@@ -732,6 +733,7 @@ type ProteomeAssayConfig = {
732
733
  export type ProteomeAbundanceQuery = {
733
734
  /** database file path */
734
735
  dbfile?: string
736
+ overlayTerm?: BaseTerm
735
737
  /** document structure */
736
738
  assays: {
737
739
  [assayName: string]: ProteomeAssayConfig
@@ -123,13 +123,13 @@ export type TermCollectionTWQual = BaseTW & {
123
123
  // TODO: may add different termCollection TW types here
124
124
  export type TermCollectionTW = TermCollectionTWCont | TermCollectionTWQual
125
125
 
126
- export type RawTermCollectionTWCont = {
126
+ export type RawTermCollectionTWCont = BaseTW & {
127
127
  type?: 'TermCollectionTWCont'
128
128
  term: RawNumericTermCollection
129
129
  q?: TermCollectionQCont
130
130
  }
131
131
 
132
- export type RawTermCollectionTWQual = {
132
+ export type RawTermCollectionTWQual = BaseTW & {
133
133
  type?: 'TermCollectionTWQual'
134
134
  term: RawCategoricalTermCollection
135
135
  q?: TermCollectionQQual
package/src/terms/tw.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { SnpsQ, SnpsTW } from './snps.ts'
2
- import type { ConditionQ, ConditionTW } from './condition.ts'
2
+ import type { ConditionQ, ConditionTW, RawConditionTW } from './condition.ts'
3
3
  import type { SampleLstQ } from './samplelst.ts'
4
- import type { NumTW, NumericQ } from './numeric.ts'
5
- import type { GvTW, GvQ } from './geneVariant.ts'
6
- import type { QualTW, QualQ } from './qualitative.ts'
7
- import type { TermCollectionTW, TermCollectionQ } from './termCollection.ts'
4
+ import type { NumTW, NumericQ, RawNumTW } from './numeric.ts'
5
+ import type { GvTW, GvQ, RawGvTW } from './geneVariant.ts'
6
+ import type { QualTW, QualQ, RawQualTW } from './qualitative.ts'
7
+ import type { TermCollectionTW, TermCollectionQ, RawTermCollectionTW } from './termCollection.ts'
8
8
 
9
9
  export type BaseTW = {
10
10
  id?: string
@@ -19,6 +19,7 @@ export type BaseTW = {
19
19
  sortSamples?: any
20
20
  minNumSamples?: number
21
21
  valueFilter?: any
22
+ values?: { [key: string]: any }
22
23
  }
23
24
 
24
25
  export type TermWrapper = NumTW | GvTW | ConditionTW | SnpsTW | QualTW | TermCollectionTW
@@ -30,27 +31,33 @@ export type TwLst = TermWrapper[]
30
31
 
31
32
  //export type Q = BaseQ | CategoricalQ | ConditionQ | NumericQ | SampleLstQ | SnpsQ
32
33
 
33
- export type RawTW =
34
- //{ id: string } | RawCatTW
35
- //
36
- // BELOW TYPE IS NOT TESTED, only being used to compare tsc type checking behavior
37
- // between non-union versus type-unions, which way is easier to code against
38
- {
39
- id?: string
40
- term?: {
41
- type: 'categorical' | 'condition'
42
- [key: string | number]: any
43
- }
44
- q?: {
45
- //predefined_groupset_idx?: number
46
- //customset?: any
47
- [key: string]: any
48
- //type?: string //'custom-groupset' |
49
- //customset?: any
50
- }
51
- isAtomic?: true
52
- $id?: string
53
- }
34
+ export type RawDictTW = BaseTW & {
35
+ id: string
36
+ term?: undefined
37
+ q?: any
38
+ }
39
+
40
+ export type RawTW = RawDictTW | RawQualTW | RawNumTW | RawGvTW | RawConditionTW | RawTermCollectionTW
41
+ //{ id: string } | RawCatTW
42
+ //
43
+ // BELOW TYPE IS NOT TESTED, only being used to compare tsc type checking behavior
44
+ // between non-union versus type-unions, which way is easier to code against
45
+ // {
46
+ // id?: string
47
+ // term?: {
48
+ // type: 'categorical' | 'condition'
49
+ // [key: string | number]: any
50
+ // }
51
+ // q?: {
52
+ // //predefined_groupset_idx?: number
53
+ // //customset?: any
54
+ // [key: string]: any
55
+ // //type?: string //'custom-groupset' |
56
+ // //customset?: any
57
+ // }
58
+ // isAtomic?: true
59
+ // $id?: string
60
+ // }
54
61
 
55
62
  export interface TwHandler {
56
63
  render?: (opts?: any) => void