@sjcrh/proteinpaint-types 2.78.0-0 → 2.79.4
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/LICENSE +42 -0
- package/README.md +17 -0
- package/package.json +3 -2
- package/src/dataset.ts +17 -7
- package/src/index.ts +1 -1
- package/src/routes/burden.ts +2 -0
- package/src/routes/termdb.singlecellData.ts +3 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Copyright ©St. Jude Children’s Research Hospital 2023
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
|
|
7
|
+
of the ProteinPaint web browser and associated documentation files (the "Software"), to utilize
|
|
8
|
+
|
|
9
|
+
the Software for academic use without restriction, including without limitation the rights
|
|
10
|
+
|
|
11
|
+
to use, copy, modify, merge, publish, distribute and sublicense
|
|
12
|
+
|
|
13
|
+
copies of the Software for academic use, and to permit persons to whom the Software is
|
|
14
|
+
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
|
|
27
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
28
|
+
|
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
+
|
|
31
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
32
|
+
|
|
33
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
34
|
+
|
|
35
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
36
|
+
|
|
37
|
+
SOFTWARE.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
Anyone interested in commercial use of the Software should contact the
|
|
42
|
+
St. Jude Office of Technology Licensing at technology.licensing@stjude.org.
|
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @sjcrh/proteinpaint-types
|
|
2
|
+
|
|
3
|
+
## Background
|
|
4
|
+
|
|
5
|
+
This workspace was separated from the deprecated `server/shared/types` dir.
|
|
6
|
+
The type definitions here are meant to used by the tsc compiler, and will not
|
|
7
|
+
be included in runtime bundles.
|
|
8
|
+
|
|
9
|
+
Put type definitions that are used in client and server code in this workspace.
|
|
10
|
+
Do NOT put here type definitions that are specific to one workspace,
|
|
11
|
+
those should be saved in the applicable workspace.
|
|
12
|
+
|
|
13
|
+
## Test
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm test
|
|
17
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sjcrh/proteinpaint-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.79.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared type definitions between ProteinPaint server and client code",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"#shared": "@sjcrh/proteinpaint-shared"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"prepare": "ts-patch install"
|
|
18
|
+
"prepare": "ts-patch install",
|
|
19
|
+
"test": "tsc"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"ts-node": "^10.9.2",
|
package/src/dataset.ts
CHANGED
|
@@ -69,8 +69,10 @@ type bcfMafFile = {
|
|
|
69
69
|
type SnvindelByRange = {
|
|
70
70
|
/** if true, served from gdc. no other parameters TODO change to src='gdc/native' */
|
|
71
71
|
gdcapi?: boolean
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
|
|
73
|
+
//local ds can have following different setup
|
|
74
|
+
|
|
75
|
+
/** one single bcf file */
|
|
74
76
|
bcffile?: string
|
|
75
77
|
/** one bcf file per chr */
|
|
76
78
|
chr2bcffile?: Chr2bcffile
|
|
@@ -78,6 +80,8 @@ type SnvindelByRange = {
|
|
|
78
80
|
bcfMafFile?: bcfMafFile
|
|
79
81
|
/** allow to apply special configurations to certain INFO fields of the bcf file */
|
|
80
82
|
infoFields?: InfoFieldEntry[]
|
|
83
|
+
/** 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 */
|
|
84
|
+
tempflag_sampleNameInVcfHeader?: boolean
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
type SvfusionByRange = {
|
|
@@ -482,7 +486,7 @@ export type SingleCellDEgeneGdc = {
|
|
|
482
486
|
|
|
483
487
|
type GDCSingleCellPlot = {
|
|
484
488
|
name: string
|
|
485
|
-
|
|
489
|
+
colorColumns: ColorColumn[]
|
|
486
490
|
coordsColumns: { x: number; y: number }
|
|
487
491
|
}
|
|
488
492
|
|
|
@@ -510,10 +514,9 @@ type SingleCellPlot = {
|
|
|
510
514
|
if not introduce filePrefix
|
|
511
515
|
*/
|
|
512
516
|
fileSuffix?: string
|
|
513
|
-
/**
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
colorColumn: ColorColumn
|
|
517
|
+
/** list of columns in tabular text file that define cell categories and can be used to color the cells in the plot. must have categorical values
|
|
518
|
+
*/
|
|
519
|
+
colorColumns: ColorColumn[]
|
|
517
520
|
/** 0-based column number for x/y coordinate for this plot */
|
|
518
521
|
coordsColumns: { x: number; y: number }
|
|
519
522
|
}
|
|
@@ -1003,6 +1006,7 @@ type Termdb = {
|
|
|
1003
1006
|
html: string
|
|
1004
1007
|
}
|
|
1005
1008
|
hasSampleAncestry?: boolean
|
|
1009
|
+
sampleTypes?: SampleType[]
|
|
1006
1010
|
|
|
1007
1011
|
tracks?: {
|
|
1008
1012
|
/** allow color or shape changes in the lollipop */
|
|
@@ -1010,6 +1014,12 @@ type Termdb = {
|
|
|
1010
1014
|
}
|
|
1011
1015
|
}
|
|
1012
1016
|
|
|
1017
|
+
type SampleType = {
|
|
1018
|
+
name: string
|
|
1019
|
+
plural_name: string
|
|
1020
|
+
parent_id: string
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1013
1023
|
type ChartConfigByType = {
|
|
1014
1024
|
[index: string]: ChartConfig
|
|
1015
1025
|
}
|
package/src/index.ts
CHANGED
package/src/routes/burden.ts
CHANGED
|
@@ -57,11 +57,13 @@ export type BurdenRequest = {
|
|
|
57
57
|
chest: number
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
// tentative code for migrating api code from `server/routes` code
|
|
60
61
|
export type BurdenResponse = {
|
|
61
62
|
status: string
|
|
62
63
|
keys: string[]
|
|
63
64
|
rows: number[][]
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
// tentative code to generate runtime "type" checkers
|
|
66
68
|
export const validBurdenRequest = createValidate<BurdenRequest>()
|
|
67
69
|
export const validBurdenResponse = createValidate<BurdenResponse>()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ErrorResponse } from './errorResponse.ts'
|
|
2
2
|
|
|
3
3
|
export type Cell = {
|
|
4
4
|
/** Cell id or barcode */
|
|
@@ -22,6 +22,7 @@ export type Plot = {
|
|
|
22
22
|
cells: Cell[]
|
|
23
23
|
/** Column name to color by, e.g Cell type, CNV, Fusion */
|
|
24
24
|
colorBy: string
|
|
25
|
+
colorColumns: string[]
|
|
25
26
|
colorMap?: { [key: string]: string }
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -39,7 +40,7 @@ export type TermdbSinglecellDataRequest = {
|
|
|
39
40
|
gene?: string
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
type HasdataResponse = {
|
|
43
|
+
export type HasdataResponse = {
|
|
43
44
|
/** List of plots from singlecell experiment of this sample */
|
|
44
45
|
plots: Plot[]
|
|
45
46
|
|