@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/{chunk-NPVDG36X.js → chunk-OJWYCYKF.js} +364 -342
- package/dist/index.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +23 -17
- package/src/routes/termdb.DE.ts +4 -0
- package/src/routes/termdb.cluster.ts +7 -2
- package/src/termsetting.ts +3 -3
package/dist/index.js
CHANGED
package/dist/termdb.cluster.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -92,12 +92,17 @@ type bcfMafFile = {
|
|
|
92
92
|
maffile: string
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
type
|
|
96
|
-
/** if true, served from gdc. no other parameters
|
|
97
|
-
gdcapi?:
|
|
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
|
-
/**
|
|
110
|
-
|
|
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
|
-
|
|
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
|
|
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 */
|
package/src/routes/termdb.DE.ts
CHANGED
|
@@ -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
|
|
86
|
-
removedHierClusterTerms?:
|
|
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
|
package/src/termsetting.ts
CHANGED
|
@@ -84,8 +84,8 @@ type BaseTermSettingOpts = {
|
|
|
84
84
|
* before the pill name is truncated. */
|
|
85
85
|
abbrCutoff?: number
|
|
86
86
|
activeCohort?: number
|
|
87
|
-
/**
|
|
88
|
-
disable_terms?:
|
|
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?:
|
|
168
|
+
disable_terms?: Term[]
|
|
169
169
|
durations: { exit: number }
|
|
170
170
|
filter?: Filter
|
|
171
171
|
handler?: Handler
|