@sjcrh/proteinpaint-types 2.112.1-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.1-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 = {
@@ -310,12 +315,10 @@ type SnvindelComputeGroup_info = {
310
315
  /** a data type under ds.queries{} */
311
316
  type SnvIndelQuery = {
312
317
  forTrack?: boolean
313
- /** allow to query data by either isoform or range
314
- * isoform query is only used for gdc api
315
- */
316
- 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
317
320
  /** query data by range */
318
- byrange: SnvindelByRange
321
+ byrange?: SnvindelByRange
319
322
 
320
323
  infoUrl?: URLEntry[]
321
324
  skewerRim?: SkewerRim
@@ -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