@sjcrh/proteinpaint-types 2.130.0 → 2.132.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/brainImaging.js +1 -1
- package/dist/{chunk-KHM52S5N.js → chunk-2XROHKXU.js} +25 -5
- package/dist/{chunk-PX7P2A6A.js → chunk-3VVALC2P.js} +65 -13
- package/dist/{chunk-24RS7HFO.js → chunk-447OFOQM.js} +65 -13
- package/dist/{chunk-5VCMJ7QL.js → chunk-45AF7AQH.js} +118 -74
- package/dist/{chunk-WSL4JPUP.js → chunk-7QZTJ7A4.js} +25 -5
- package/dist/{chunk-Y5BVEGR2.js → chunk-7RY7HC24.js} +85 -17
- package/dist/{chunk-VZMNH6SN.js → chunk-G36XAK7Y.js} +4 -3
- package/dist/{chunk-WK4CKVHY.js → chunk-HYSQJBXK.js} +25 -5
- package/dist/{chunk-6C4DMGK3.js → chunk-J7ODYX6N.js} +25 -5
- package/dist/{chunk-BMHL5ZZJ.js → chunk-MBQT6GOO.js} +100 -20
- package/dist/{chunk-CI6OEJNH.js → chunk-ODP5ODIV.js} +65 -13
- package/dist/{chunk-UXXLPWL2.js → chunk-QXF3NCJ4.js} +65 -13
- package/dist/{chunk-WHO7HCNU.js → chunk-UL54XEPY.js} +25 -5
- package/dist/{chunk-RP6RBKKL.js → chunk-UMGJNQ2O.js} +65 -13
- package/dist/correlationVolcano.js +1 -1
- package/dist/gdc.grin2.js +1 -1
- package/dist/index.js +14 -14
- package/dist/termdb.boxplot.js +1 -1
- package/dist/termdb.categories.js +1 -1
- package/dist/termdb.cluster.js +1 -1
- package/dist/termdb.descrstats.js +1 -1
- package/dist/termdb.numericcategories.js +1 -1
- package/dist/termdb.percentile.js +1 -1
- package/dist/termdb.singleSampleMutation.js +1 -1
- package/dist/termdb.termsbyids.js +1 -1
- package/dist/termdb.topTermsByType.js +1 -1
- package/dist/termdb.topVariablyExpressedGenes.js +1 -1
- package/dist/termdb.violin.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +7 -0
- package/src/routes/gdc.grin2.ts +41 -32
- package/src/routes/termdb.singleSampleMutation.ts +2 -2
- package/src/termdb.matrix.ts +9 -0
- package/src/terms/term.ts +3 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
termdbTopVariablyExpressedGenesPayload,
|
|
3
3
|
validTermdbTopVariablyExpressedGenesRequest,
|
|
4
4
|
validTermdbTopVariablyExpressedGenesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UL54XEPY.js";
|
|
6
6
|
import "./chunk-CNSSF43V.js";
|
|
7
7
|
export {
|
|
8
8
|
termdbTopVariablyExpressedGenesPayload,
|
package/dist/termdb.violin.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1508,6 +1508,13 @@ type DtAssayAvailability = DtAssayAvailabilityGetter | DtAssayAvailabilityTerm
|
|
|
1508
1508
|
|
|
1509
1509
|
/** using ds-supplied getter */
|
|
1510
1510
|
type DtAssayAvailabilityGetter = {
|
|
1511
|
+
/** define q
|
|
1512
|
+
returns:
|
|
1513
|
+
{
|
|
1514
|
+
yesSamples: Set() of sample ids
|
|
1515
|
+
noSamples: Set() of sample ids
|
|
1516
|
+
}
|
|
1517
|
+
*/
|
|
1511
1518
|
get: (q: any) => any
|
|
1512
1519
|
}
|
|
1513
1520
|
/** using dictionary term */
|
package/src/routes/gdc.grin2.ts
CHANGED
|
@@ -37,8 +37,11 @@ export type GdcGRIN2listRequest = {
|
|
|
37
37
|
experimentalStrategy: ExperimentalStrategy
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/** Options for CNV file retrieval. Presence indicates CNV files should be returned
|
|
41
|
-
cnvOptions?:
|
|
40
|
+
/** Options for CNV file retrieval. Presence indicates CNV files should be returned */
|
|
41
|
+
cnvOptions?: {
|
|
42
|
+
/** Data type for CNV analysis */
|
|
43
|
+
dataType?: string
|
|
44
|
+
}
|
|
42
45
|
|
|
43
46
|
/** Options for fusion file retrieval. Presence indicates fusion files should be returned (for future use) */
|
|
44
47
|
fusionOptions?: any
|
|
@@ -48,39 +51,38 @@ export type GdcGRIN2listRequest = {
|
|
|
48
51
|
* Response for GRIN2 file listing
|
|
49
52
|
*/
|
|
50
53
|
export type GdcGRIN2listResponse = {
|
|
51
|
-
/** List of file objects passing filter and to be displayed on client */
|
|
52
|
-
files: GdcGRIN2File[]
|
|
53
|
-
/** Total number of files found by API (in case bigger than files.length) */
|
|
54
|
-
filesTotal: number
|
|
55
|
-
/** Maximum total size of files allowed, for indicating on UI while selecting files */
|
|
56
|
-
maxTotalSizeCompressed: number
|
|
57
|
-
/** File counts by type */
|
|
58
|
-
fileCounts?: {
|
|
59
|
-
maf: number
|
|
60
|
-
}
|
|
61
|
-
/** Applied filters (for UI reference) */
|
|
62
|
-
appliedFilters?: {
|
|
63
|
-
experimentalStrategy?: ExperimentalStrategy
|
|
64
|
-
}
|
|
65
|
-
/** Deduplication stats */
|
|
66
|
-
deduplicationStats?: {
|
|
67
|
-
originalFileCount: number
|
|
68
|
-
deduplicatedFileCount: number
|
|
69
|
-
duplicatesRemoved: number
|
|
70
|
-
caseDetails?: Array<{ caseName: string; fileCount: number; keptFileSize: number }>
|
|
71
|
-
filteredFiles: Array<{ fileId: string; fileSize: number; reason: string }>
|
|
72
|
-
}
|
|
73
54
|
/** all maf-related results when mafOptions is supplied */
|
|
74
55
|
mafFiles?: {
|
|
75
56
|
// TODO suggest to move above maf-related results under mafFiles{}
|
|
76
57
|
/** list of maf files returned to client */
|
|
77
58
|
files: GdcGRIN2File[]
|
|
59
|
+
/** Total number of files found by API (in case bigger than files.length) */
|
|
60
|
+
filesTotal: number
|
|
61
|
+
/** Maximum total size of files allowed, for indicating on UI while selecting files */
|
|
62
|
+
maxTotalSizeCompressed: number
|
|
63
|
+
/** File counts by type */
|
|
64
|
+
fileCounts?: {
|
|
65
|
+
maf: number
|
|
66
|
+
}
|
|
67
|
+
/** Applied filters (for UI reference) */
|
|
68
|
+
appliedFilters?: {
|
|
69
|
+
experimentalStrategy?: ExperimentalStrategy
|
|
70
|
+
}
|
|
71
|
+
/** Deduplication stats */
|
|
72
|
+
deduplicationStats?: {
|
|
73
|
+
originalFileCount: number
|
|
74
|
+
deduplicatedFileCount: number
|
|
75
|
+
duplicatesRemoved: number
|
|
76
|
+
caseDetails?: Array<{ caseName: string; fileCount: number; keptFileSize: number }>
|
|
77
|
+
filteredFiles: Array<{ fileId: string; fileSize: number; reason: string }>
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
/** all cnv-related results when cnvOptions is supplied */
|
|
80
81
|
cnvFiles?: {
|
|
81
82
|
/** list of cnv files returned to client */
|
|
82
83
|
files: GdcGRIN2File[]
|
|
83
|
-
/**
|
|
84
|
+
/** Maximum total size of files allowed, for indicating on UI while selecting files */
|
|
85
|
+
maxTotalSizeCompressed: number
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
88
|
|
|
@@ -93,6 +95,7 @@ export type RunGRIN2Request = {
|
|
|
93
95
|
caseFiles: {
|
|
94
96
|
[caseId: string]: {
|
|
95
97
|
maf?: string
|
|
98
|
+
cnv?: string
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
/** Options for filtering MAF file content */
|
|
@@ -101,14 +104,20 @@ export type RunGRIN2Request = {
|
|
|
101
104
|
minTotalDepth?: number // Default: 10
|
|
102
105
|
/** Minimum alternate allele count of returned MAF files */
|
|
103
106
|
minAltAlleleCount?: number // Default: 2
|
|
107
|
+
/** String array of consequence types */
|
|
108
|
+
consequences?: string[]
|
|
109
|
+
/** Maximum mutation count cutoff for highly mutated scenarios */
|
|
110
|
+
hyperMutator?: number
|
|
111
|
+
}
|
|
112
|
+
/** Options for filtering CNV file content*/
|
|
113
|
+
cnvOptions?: {
|
|
114
|
+
/** Threshold for copy number loss detection */
|
|
115
|
+
lossThreshold?: number // Default: -0.4
|
|
116
|
+
/** Threshold for copy number gain detection */
|
|
117
|
+
gainThreshold?: number // Default: 0.3
|
|
118
|
+
/** Maximum segment length to include (0 = no filter) */
|
|
119
|
+
segLength?: number // Default: 0
|
|
104
120
|
}
|
|
105
|
-
/** Options for CNV file retrieval (will be added later)
|
|
106
|
-
cnvOptions?: {
|
|
107
|
-
* lossThreshold?: number // Default: -0.5
|
|
108
|
-
* gainThreshold?: number // Default: 0.5
|
|
109
|
-
* segLength?: number // Default: 2000000
|
|
110
|
-
*}
|
|
111
|
-
*/
|
|
112
121
|
}
|
|
113
122
|
|
|
114
123
|
/** Error entry from failed file downloads */
|
|
@@ -6,8 +6,8 @@ export type TermdbSingleSampleMutationRequest = {
|
|
|
6
6
|
genome: string
|
|
7
7
|
/** Dataset label */
|
|
8
8
|
dslabel: string
|
|
9
|
-
/** sample id */
|
|
10
|
-
sample: string
|
|
9
|
+
/** sample id, allow string or number; for native ds, sample name in number will be cast into string */
|
|
10
|
+
sample: string | number
|
|
11
11
|
}
|
|
12
12
|
type ValidResponse = {
|
|
13
13
|
/** List of mutation data points from this sample TODO change to type of M elements */
|
package/src/termdb.matrix.ts
CHANGED
|
@@ -17,6 +17,12 @@ type SampleEntry = {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
type CategoryEntry = {
|
|
21
|
+
key: string
|
|
22
|
+
label: string
|
|
23
|
+
samplecount: number
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
export type ValidGetDataResponse = {
|
|
21
27
|
samples: {
|
|
22
28
|
[index: string | number]: SampleEntry
|
|
@@ -33,6 +39,9 @@ export type ValidGetDataResponse = {
|
|
|
33
39
|
bins?: any
|
|
34
40
|
/** CTE.events. These info are not available in term object and is computed during run time. */
|
|
35
41
|
events?: any
|
|
42
|
+
/** Categories of term. Only computed for categorical terms that
|
|
43
|
+
have an empty term.values{}. */
|
|
44
|
+
categories?: CategoryEntry[]
|
|
36
45
|
}
|
|
37
46
|
>
|
|
38
47
|
/** metadata about samples (e.g. print names). avoid duplicating such in sample data elements (e.g. mutations)
|
package/src/terms/term.ts
CHANGED
|
@@ -105,6 +105,9 @@ export type BaseTerm = {
|
|
|
105
105
|
included_types?: string[]
|
|
106
106
|
isleaf?: boolean
|
|
107
107
|
values?: TermValues
|
|
108
|
+
/** Do not build .values{} when building termdb. Used for
|
|
109
|
+
making categorical term with empty .values{} in TermdbTest */
|
|
110
|
+
skipValuesBuild?: boolean
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
export type Term = BaseTerm & (NumericTerm | CategoricalTerm | ConditionTerm | SampleLstTerm | SnpsTerm | GvTerm)
|