@sjcrh/proteinpaint-types 2.112.0 → 2.113.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/index.js CHANGED
@@ -97,7 +97,7 @@ import {
97
97
  termdbClusterPayload,
98
98
  validTermdbClusterRequest,
99
99
  validTermdbClusterResponse
100
- } from "./chunk-NPVDG36X.js";
100
+ } from "./chunk-OJWYCYKF.js";
101
101
  import {
102
102
  termdbCohortSummaryPayload,
103
103
  validTermdbCohortSummaryRequest,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-NPVDG36X.js";
5
+ } from "./chunk-OJWYCYKF.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbClusterPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.112.0",
3
+ "version": "2.113.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
@@ -92,12 +92,17 @@ type bcfMafFile = {
92
92
  maffile: string
93
93
  }
94
94
 
95
- type SnvindelByRange = {
96
- /** if true, served from gdc. no other parameters TODO change to src='gdc/native' */
97
- gdcapi?: boolean
95
+ type SnvindelByIsoform = {
96
+ /** if true, served from gdc. no other parameters */
97
+ gdcapi?: true
98
+ /** getter function to retrieve data. dynamically added or ds-supplied */
99
+ get?: (f: any) => void
100
+ }
98
101
 
102
+ type SnvindelByRange = {
103
+ /** if true, served from gdc. no other parameters */
104
+ gdcapi?: true
99
105
  //local ds can have following different setup
100
-
101
106
  /** one single bcf file */
102
107
  bcffile?: string
103
108
  /** one bcf file per chr */
@@ -106,8 +111,8 @@ type SnvindelByRange = {
106
111
  bcfMafFile?: bcfMafFile
107
112
  /** allow to apply special configurations to certain INFO fields of the bcf file */
108
113
  infoFields?: InfoFieldEntry[]
109
- /** if true, bcf or chr2bcf uses string sample name in header. to be used during this migrating so the code can deal with old files with integer sample ids and new ones; TODO once all datasets are migrated, delete the flag */
110
- tempflag_sampleNameInVcfHeader?: boolean
114
+ /** getter function to retrieve data. dynamically added or ds-supplied */
115
+ get?: (f: any) => void
111
116
  }
112
117
 
113
118
  type URLEntry = {
@@ -243,7 +248,6 @@ type Population = {
243
248
  }
244
249
 
245
250
  /** primarily for prebuilding germline genetic association for survivorship portal
246
- accessible to client via termdb.js?for=mds3queryDetails
247
251
  part of state of genomeBrowser plot
248
252
  allowing for user modification
249
253
  */
@@ -311,12 +315,10 @@ type SnvindelComputeGroup_info = {
311
315
  /** a data type under ds.queries{} */
312
316
  type SnvIndelQuery = {
313
317
  forTrack?: boolean
314
- /** allow to query data by either isoform or range
315
- * isoform query is only used for gdc api
316
- */
317
- byisoform?: GdcApi
318
+ /** allow to query data by either isoform or range; either or both can be used; cannot be both missing */
319
+ byisoform?: SnvindelByIsoform
318
320
  /** query data by range */
319
- byrange: SnvindelByRange
321
+ byrange?: SnvindelByRange
320
322
 
321
323
  infoUrl?: URLEntry[]
322
324
  skewerRim?: SkewerRim
@@ -334,7 +336,12 @@ so that it can work for a termdb-less ds, e.g. clinvar, where termdbConfig canno
334
336
  }
335
337
  allowSNPs?: boolean
336
338
  vcfid4skewerName?: boolean
339
+ /** config on computing variant data and show as a custom mds3 tk */
337
340
  details?: SnvindelComputeDetails
341
+ /** set to true to show mds3 tk by default when the ds have other genome browser track types besides this snvindel tk
342
+ if ds has only snvindel tk, then the tk will always be shown and no need to set this
343
+ */
344
+ shown?: boolean
338
345
  }
339
346
 
340
347
  type SvFusion = {
@@ -718,6 +725,7 @@ type SCImages = {
718
725
  label: string
719
726
  }
720
727
 
728
+ /** genome browser LD track */
721
729
  type LdQuery = {
722
730
  /** each track obj defines a ld track */
723
731
  tracks: {
@@ -725,8 +733,6 @@ type LdQuery = {
725
733
  name: string
726
734
  /** relative path of ld .gz file */
727
735
  file: string
728
- /** dynamically added full path */
729
- file0?: string
730
736
  /** dynamically added */
731
737
  nochr?: boolean
732
738
  /** if to show by default */
@@ -785,6 +791,9 @@ type Mds3Queries = {
785
791
  snvindel?: SnvIndelQuery
786
792
  svfusion?: SvFusion
787
793
  cnv?: CnvSegment
794
+ trackLst?: TrackLst
795
+ ld?: LdQuery
796
+ defaultCoord?: string
788
797
  singleSampleMutation?: SingleSampleMutationQuery
789
798
  NIdata?: NIdataQuery
790
799
  geneExpression?: GeneExpressionQuery
@@ -799,15 +808,12 @@ type Mds3Queries = {
799
808
  src: 'native' | 'gdc'
800
809
  file: string
801
810
  }
802
- trackLst?: TrackLst
803
811
  singleCell?: SingleCellQuery
804
812
  geneCnv?: {
805
813
  bygene?: {
806
814
  gdcapi: true
807
815
  }
808
816
  }
809
- defaultCoord?: string
810
- ld?: LdQuery
811
817
  singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
812
818
  singleSampleGbtk?: SingleSampleGbtk
813
819
  /** depreciated. replaced by WSImages */
@@ -46,6 +46,10 @@ export type ExpressionInput = {
46
46
  conf2_mode?: 'continuous' | 'discrete'
47
47
  /** Number of variable genes to be included for DE analysis (optional) */
48
48
  VarGenes?: number
49
+ /** The methodology used for differential gene expression: wilcoxon, edgeR and limma */
50
+ DE_method: 'wilcoxon' | 'limma' | 'edgeR'
51
+ /** Cutoff for when mds plot will be generated for edgeR and limma test */
52
+ mds_cutoff: number
49
53
  }
50
54
 
51
55
  export type DEResponse = {
@@ -82,8 +82,13 @@ export type ValidResponse = {
82
82
  byTermId: { [index: string]: any }
83
83
  /** */
84
84
  bySampleId: { [index: string]: any }
85
- /** list of term names that are excluded from analysis for lacking any numerical data */
86
- removedHierClusterTerms?: string[]
85
+ /** list of term names that are excluded from analysis, one reason per set, for client display */
86
+ removedHierClusterTerms?: {
87
+ /** reason for skipping */
88
+ text: string
89
+ /** list of skipped item names */
90
+ lst: string[]
91
+ }[]
87
92
  }
88
93
 
89
94
  //response of just 1 gene, thus unable to do clustering
@@ -84,8 +84,8 @@ type BaseTermSettingOpts = {
84
84
  * before the pill name is truncated. */
85
85
  abbrCutoff?: number
86
86
  activeCohort?: number
87
- /** tw.term.ids */
88
- disable_terms?: string[]
87
+ /** array of term objects to show in the tree but not clickable */
88
+ disable_terms?: Term[]
89
89
  // This is not used anywhere.
90
90
  // Ok to remove?
91
91
  handler: Handler
@@ -165,7 +165,7 @@ export type TermSettingInstance = {
165
165
  clickNoPillDiv?: any
166
166
  dom: InstanceDom
167
167
  doNotHideTipInMain?: boolean
168
- disable_terms?: string[]
168
+ disable_terms?: Term[]
169
169
  durations: { exit: number }
170
170
  filter?: Filter
171
171
  handler?: Handler