@sjcrh/proteinpaint-types 2.189.0 → 2.190.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.
Files changed (245) hide show
  1. package/README.md +8 -20
  2. package/dist/index.js +422 -553
  3. package/dist/index.js.map +7 -0
  4. package/package.json +13 -25
  5. package/dist/aiProjectAdmin.js +0 -11
  6. package/dist/aiProjectSelectedWSImages.js +0 -11
  7. package/dist/aiProjectTrainModel.js +0 -11
  8. package/dist/alphaGenome.js +0 -11
  9. package/dist/alphaGenomeTypes.js +0 -11
  10. package/dist/brainImaging.js +0 -11
  11. package/dist/brainImagingSamples.js +0 -11
  12. package/dist/burden.js +0 -11
  13. package/dist/chunk-2744ACBX.js +0 -126
  14. package/dist/chunk-2BCLGYAG.js +0 -96
  15. package/dist/chunk-2C4X5B6N.js +0 -62
  16. package/dist/chunk-2VJRTZE2.js +0 -287
  17. package/dist/chunk-2X36CBQF.js +0 -158
  18. package/dist/chunk-46YIGVUP.js +0 -908
  19. package/dist/chunk-4EAGOSMN.js +0 -128
  20. package/dist/chunk-5H2LJKPX.js +0 -104
  21. package/dist/chunk-5L4VF3ZL.js +0 -266
  22. package/dist/chunk-5N7V62ZL.js +0 -231
  23. package/dist/chunk-62XTWOVJ.js +0 -273
  24. package/dist/chunk-6GKG55BT.js +0 -232
  25. package/dist/chunk-7MUISZHS.js +0 -61
  26. package/dist/chunk-7OA6G77M.js +0 -113
  27. package/dist/chunk-BCBSHTHS.js +0 -75
  28. package/dist/chunk-CQXBQY2H.js +0 -161
  29. package/dist/chunk-CWACV4MW.js +0 -305
  30. package/dist/chunk-D7AKQKDG.js +0 -238
  31. package/dist/chunk-DDKGTDDB.js +0 -6739
  32. package/dist/chunk-DI4Q26E7.js +0 -16
  33. package/dist/chunk-EIJT53QB.js +0 -240
  34. package/dist/chunk-EOKM345J.js +0 -222
  35. package/dist/chunk-FK7OCBPT.js +0 -341
  36. package/dist/chunk-FMC4G5BP.js +0 -62
  37. package/dist/chunk-GCJESMM2.js +0 -354
  38. package/dist/chunk-GTS2G4R4.js +0 -62
  39. package/dist/chunk-HD3J5BKM.js +0 -409
  40. package/dist/chunk-HQV2A7JV.js +0 -62
  41. package/dist/chunk-IS74WYQF.js +0 -207
  42. package/dist/chunk-JEQGBUK2.js +0 -5993
  43. package/dist/chunk-K4FSDTDW.js +0 -109
  44. package/dist/chunk-KCMPDEH7.js +0 -62
  45. package/dist/chunk-KXYFG2HO.js +0 -307
  46. package/dist/chunk-LC6KLHCJ.js +0 -8903
  47. package/dist/chunk-LQYSPLDQ.js +0 -3613
  48. package/dist/chunk-LRVF7U64.js +0 -62
  49. package/dist/chunk-MHDQO7R5.js +0 -195
  50. package/dist/chunk-MKYLCBTP.js +0 -5475
  51. package/dist/chunk-MNT3GF7M.js +0 -3628
  52. package/dist/chunk-MVB7LQS5.js +0 -3986
  53. package/dist/chunk-P25WDNMD.js +0 -171
  54. package/dist/chunk-P3WBZJFF.js +0 -158
  55. package/dist/chunk-PTE2I7DF.js +0 -91
  56. package/dist/chunk-Q3HGHP3J.js +0 -174
  57. package/dist/chunk-RPX4TVMD.js +0 -14
  58. package/dist/chunk-RXJNXOZC.js +0 -326
  59. package/dist/chunk-SDZIGJY3.js +0 -5931
  60. package/dist/chunk-SLXGWQZ4.js +0 -458
  61. package/dist/chunk-SZZXZZKO.js +0 -3991
  62. package/dist/chunk-TD4YLTHL.js +0 -158
  63. package/dist/chunk-TEXOICIS.js +0 -11810
  64. package/dist/chunk-THQOFV2K.js +0 -205
  65. package/dist/chunk-TLZ5ROOU.js +0 -347
  66. package/dist/chunk-TQQWSHFM.js +0 -5980
  67. package/dist/chunk-U3BTVE5T.js +0 -111
  68. package/dist/chunk-UBOVHONH.js +0 -62
  69. package/dist/chunk-UDTEGP3G.js +0 -365
  70. package/dist/chunk-UYJA4UM7.js +0 -97
  71. package/dist/chunk-V3JDD3ZG.js +0 -3671
  72. package/dist/chunk-VUKRI3TG.js +0 -164
  73. package/dist/chunk-W3F3CLYP.js +0 -61
  74. package/dist/chunk-X4JBWMXY.js +0 -130
  75. package/dist/chunk-X5E72ZXA.js +0 -5979
  76. package/dist/chunk-YNHC5SXO.js +0 -1780
  77. package/dist/chunk-YPEFUAJW.js +0 -62
  78. package/dist/chunk-YSTMGNYR.js +0 -113
  79. package/dist/chunk-Z3IYM5OK.js +0 -296
  80. package/dist/chunk-ZCV62ELK.js +0 -96
  81. package/dist/chunk-ZIOJDN75.js +0 -197
  82. package/dist/chunk-ZMDZYG5B.js +0 -4224
  83. package/dist/clearwsisession.js +0 -78
  84. package/dist/clearwsisessions.js +0 -13
  85. package/dist/correlationVolcano.js +0 -11
  86. package/dist/dataset.js +0 -11
  87. package/dist/deleteWSITileSelection.js +0 -11
  88. package/dist/dsdata.js +0 -11
  89. package/dist/dzimages.js +0 -11
  90. package/dist/gdc.grin2.js +0 -17
  91. package/dist/gdc.maf.js +0 -11
  92. package/dist/gdc.mafBuild.js +0 -11
  93. package/dist/genelookup.js +0 -11
  94. package/dist/genesetEnrichment.js +0 -11
  95. package/dist/genesetOverrepresentation.js +0 -11
  96. package/dist/grin2.js +0 -11
  97. package/dist/healthcheck.js +0 -11
  98. package/dist/hicdata.js +0 -11
  99. package/dist/hicgenome.js +0 -11
  100. package/dist/hicstat.js +0 -11
  101. package/dist/img.js +0 -11
  102. package/dist/isoformlst.js +0 -11
  103. package/dist/ntseq.js +0 -11
  104. package/dist/pdomain.js +0 -11
  105. package/dist/samplewsimages.js +0 -13
  106. package/dist/saveWSIAnnotation.js +0 -11
  107. package/dist/snp.js +0 -11
  108. package/dist/termdb.DE.js +0 -11
  109. package/dist/termdb.categories.js +0 -11
  110. package/dist/termdb.chat.js +0 -3631
  111. package/dist/termdb.chat2.js +0 -15
  112. package/dist/termdb.cluster.js +0 -11
  113. package/dist/termdb.cohort.summary.js +0 -11
  114. package/dist/termdb.cohorts.js +0 -11
  115. package/dist/termdb.dapVolcano.js +0 -11
  116. package/dist/termdb.descrstats.js +0 -11
  117. package/dist/termdb.diffMeth.js +0 -11
  118. package/dist/termdb.dmr.js +0 -11
  119. package/dist/termdb.filterTermValues.js +0 -11
  120. package/dist/termdb.isoformAvailability.js +0 -11
  121. package/dist/termdb.numericcategories.js +0 -11
  122. package/dist/termdb.percentile.js +0 -11
  123. package/dist/termdb.profileFormScores.js +0 -11
  124. package/dist/termdb.profileForms2Scores.js +0 -11
  125. package/dist/termdb.profileScores.js +0 -11
  126. package/dist/termdb.proteome.js +0 -11
  127. package/dist/termdb.rootterm.js +0 -11
  128. package/dist/termdb.runChart.js +0 -13
  129. package/dist/termdb.sampleImages.js +0 -11
  130. package/dist/termdb.sampleScatter.js +0 -11
  131. package/dist/termdb.singleSampleMutation.js +0 -11
  132. package/dist/termdb.singlecellDEgenes.js +0 -11
  133. package/dist/termdb.singlecellData.js +0 -11
  134. package/dist/termdb.singlecellSamples.js +0 -11
  135. package/dist/termdb.termchildren.js +0 -11
  136. package/dist/termdb.termsbyids.js +0 -11
  137. package/dist/termdb.topMutatedGenes.js +0 -11
  138. package/dist/termdb.topTermsByType.js +0 -11
  139. package/dist/termdb.topVariablyExpressedGenes.js +0 -11
  140. package/dist/termdb.violinBox.js +0 -17
  141. package/dist/tileserver.js +0 -11
  142. package/dist/wsimages.js +0 -11
  143. package/dist/wsisamples.js +0 -11
  144. package/src/Mclass.ts +0 -8
  145. package/src/dataset.ts +0 -2188
  146. package/src/docs.json +0 -16417
  147. package/src/fileOrUrl.ts +0 -15
  148. package/src/filter.ts +0 -110
  149. package/src/genome.ts +0 -129
  150. package/src/index.ts +0 -94
  151. package/src/routes/aiProjectAdmin.ts +0 -37
  152. package/src/routes/aiProjectSelectedWSImages.ts +0 -47
  153. package/src/routes/aiProjectTrainModel.ts +0 -20
  154. package/src/routes/alphaGenome.ts +0 -27
  155. package/src/routes/alphaGenomeTypes.ts +0 -21
  156. package/src/routes/brainImaging.ts +0 -47
  157. package/src/routes/brainImagingSamples.ts +0 -25
  158. package/src/routes/burden.ts +0 -113
  159. package/src/routes/clearwsisessions.ts +0 -19
  160. package/src/routes/correlationVolcano.ts +0 -51
  161. package/src/routes/dataset.ts +0 -14
  162. package/src/routes/deleteWSITileSelection.ts +0 -25
  163. package/src/routes/dsdata.ts +0 -14
  164. package/src/routes/dzimages.ts +0 -25
  165. package/src/routes/errorResponse.ts +0 -6
  166. package/src/routes/filter.gdc.ts +0 -15
  167. package/src/routes/gdc.grin2.ts +0 -246
  168. package/src/routes/gdc.maf.ts +0 -52
  169. package/src/routes/gdc.mafBuild.ts +0 -20
  170. package/src/routes/genelookup.ts +0 -22
  171. package/src/routes/genesetEnrichment.ts +0 -116
  172. package/src/routes/genesetOverrepresentation.ts +0 -48
  173. package/src/routes/grin2.ts +0 -173
  174. package/src/routes/healthcheck.ts +0 -80
  175. package/src/routes/hicdata.ts +0 -48
  176. package/src/routes/hicgenome.ts +0 -50
  177. package/src/routes/hicstat.ts +0 -57
  178. package/src/routes/img.ts +0 -23
  179. package/src/routes/isoformlst.ts +0 -14
  180. package/src/routes/ntseq.ts +0 -14
  181. package/src/routes/pdomain.ts +0 -14
  182. package/src/routes/routeApi.ts +0 -47
  183. package/src/routes/samplewsimages.ts +0 -44
  184. package/src/routes/saveWSIAnnotation.ts +0 -25
  185. package/src/routes/snp.ts +0 -13
  186. package/src/routes/termdb.DE.ts +0 -226
  187. package/src/routes/termdb.categories.ts +0 -74
  188. package/src/routes/termdb.chat2.ts +0 -190
  189. package/src/routes/termdb.cluster.ts +0 -134
  190. package/src/routes/termdb.cohort.summary.ts +0 -14
  191. package/src/routes/termdb.cohorts.ts +0 -14
  192. package/src/routes/termdb.dapVolcano.ts +0 -35
  193. package/src/routes/termdb.descrstats.ts +0 -75
  194. package/src/routes/termdb.diffMeth.ts +0 -63
  195. package/src/routes/termdb.dmr.ts +0 -121
  196. package/src/routes/termdb.filterTermValues.ts +0 -23
  197. package/src/routes/termdb.isoformAvailability.ts +0 -22
  198. package/src/routes/termdb.numericcategories.ts +0 -32
  199. package/src/routes/termdb.percentile.ts +0 -67
  200. package/src/routes/termdb.profileFormScores.ts +0 -26
  201. package/src/routes/termdb.profileForms2Scores.ts +0 -25
  202. package/src/routes/termdb.profileScores.ts +0 -27
  203. package/src/routes/termdb.proteome.ts +0 -13
  204. package/src/routes/termdb.rootterm.ts +0 -49
  205. package/src/routes/termdb.runChart.ts +0 -66
  206. package/src/routes/termdb.sampleImages.ts +0 -26
  207. package/src/routes/termdb.sampleScatter.ts +0 -60
  208. package/src/routes/termdb.singleSampleMutation.ts +0 -51
  209. package/src/routes/termdb.singlecellDEgenes.ts +0 -50
  210. package/src/routes/termdb.singlecellData.ts +0 -75
  211. package/src/routes/termdb.singlecellSamples.ts +0 -50
  212. package/src/routes/termdb.termchildren.ts +0 -49
  213. package/src/routes/termdb.termsbyids.ts +0 -26
  214. package/src/routes/termdb.topMutatedGenes.ts +0 -51
  215. package/src/routes/termdb.topTermsByType.ts +0 -32
  216. package/src/routes/termdb.topVariablyExpressedGenes.ts +0 -54
  217. package/src/routes/termdb.violinBox.ts +0 -230
  218. package/src/routes/tileserver.ts +0 -14
  219. package/src/routes/wsimages.ts +0 -34
  220. package/src/routes/wsisamples.ts +0 -25
  221. package/src/termdb.matrix.ts +0 -57
  222. package/src/terms/categorical.ts +0 -18
  223. package/src/terms/condition.ts +0 -73
  224. package/src/terms/date.ts +0 -20
  225. package/src/terms/dnaMethylation.ts +0 -28
  226. package/src/terms/geneExpression.ts +0 -38
  227. package/src/terms/geneVariant.ts +0 -132
  228. package/src/terms/isoformExpression.ts +0 -36
  229. package/src/terms/metaboliteIntensity.ts +0 -30
  230. package/src/terms/numeric.ts +0 -278
  231. package/src/terms/proteomeAbundance.ts +0 -38
  232. package/src/terms/q.ts +0 -105
  233. package/src/terms/qualitative.ts +0 -73
  234. package/src/terms/samplelst.ts +0 -34
  235. package/src/terms/singleCellCellType.ts +0 -18
  236. package/src/terms/singleCellGeneExpression.ts +0 -32
  237. package/src/terms/snp.ts +0 -24
  238. package/src/terms/snps.ts +0 -111
  239. package/src/terms/ssGSEA.ts +0 -26
  240. package/src/terms/term.ts +0 -60
  241. package/src/terms/termCollection.ts +0 -139
  242. package/src/terms/tw.ts +0 -64
  243. package/src/termsetting.ts +0 -201
  244. package/src/test/numeric.type.spec.ts +0 -275
  245. package/src/vocab.ts +0 -37
package/src/fileOrUrl.ts DELETED
@@ -1,15 +0,0 @@
1
- type FileNotURL = {
2
- /** File path from tp/ */
3
- file: string
4
- /** If file is provided, url should not be provided. Checked in validation type */
5
- url?: never
6
- }
7
-
8
- type URLNotFile = {
9
- /** If url is provided, file should not be provided. Checked in validation type */
10
- file?: never
11
- /** Remote file URL */
12
- url: string
13
- }
14
-
15
- export type FileORURL = FileNotURL | URLNotFile
package/src/filter.ts DELETED
@@ -1,110 +0,0 @@
1
- import type { BaseValue } from './terms/term.ts'
2
- import type { NumericTerm, NumericBin } from './terms/numeric.ts'
3
- import type { CategoricalTerm } from './terms/categorical.ts'
4
- import type { DtTerm } from './terms/geneVariant.ts'
5
- import type { ConditionTerm } from './terms/condition.ts'
6
- import type { TermCollection } from './terms/termCollection.ts'
7
-
8
- /*
9
- --------EXPORTED--------
10
- Tvs
11
- LstEntry
12
- Filter
13
-
14
- */
15
-
16
- /*** types supporting Tvs type ***/
17
-
18
- export type BaseTvs = {
19
- join?: string //and, or
20
- isnot?: boolean
21
- // Additional properties used in runtime
22
- bar_by_grade?: boolean
23
- bar_by_children?: boolean
24
- value_by_max_grade?: boolean
25
- value_by_most_recent?: boolean
26
- value_by_computable_grade?: boolean
27
- }
28
-
29
- export type CategoricalTvs = BaseTvs & {
30
- term: CategoricalTerm
31
- groupset_label?: string
32
- values: BaseValue[]
33
- valueset?: Set<any> // Runtime property set by setDatasetAnnotations
34
- }
35
-
36
- export type NumericTvs = BaseTvs & {
37
- term: NumericTerm
38
- ranges: (NumericBin | { value: number; label?: string; name?: string })[]
39
- // TODO: define uncomputable values object
40
- values?: {
41
- key: string
42
- value: number
43
- uncomputable: true
44
- label?: string
45
- }[]
46
- }
47
-
48
- type GradeAndChildEntry = {
49
- grade: number
50
- grade_label: string
51
- child_id: string | undefined
52
- child_label: string
53
- }
54
-
55
- export type ConditionTvs = BaseTvs & {
56
- term: ConditionTerm
57
- value_by_max_grade?: boolean
58
- value_by_most_recent?: boolean
59
- value_by_computable_grade?: boolean
60
- grade_and_child?: GradeAndChildEntry[]
61
- values: { key: string | number; label?: string; [key: string]: any }[]
62
- }
63
-
64
- export type GeneVariantValue = {
65
- key?: string
66
- label?: string | number
67
- value?: string
68
- dt?: number
69
- mclasslst?: string[]
70
- mclassExcludeLst?: string[]
71
- origin?: string
72
- }
73
-
74
- export type GeneVariantTvs = BaseTvs & {
75
- term: DtTerm
76
- values: GeneVariantValue[]
77
- /** boolean for including not tested classes (excluded by default) */
78
- includeNotTested?: boolean
79
- /** boolean for excluding gene name from pill name (included by default)
80
- * used by geneVariant edit ui to exclude unnecessary gene name */
81
- excludeGeneName?: boolean
82
- /** FIXME following are quick fix to avoid tsc err. TODO define snvindel tsv type */
83
- genotype?: 'variant' | 'nt' | 'wt'
84
- mcount?: 'any' | 'single' | 'multiple' | 'all'
85
- /** FIXME following are quick fix to avoid tsc err. TODO define cnv tsv type */
86
- continuousCnv?: boolean
87
- cnvLossCutoff?: number
88
- cnvGainCutoff?: number
89
- cnvMaxLength?: number
90
- cnvWT?: boolean
91
- fractionOverlap?: number
92
- }
93
-
94
- export type TermCollectionTvs = BaseTvs & {
95
- term: TermCollection
96
- ratio: number
97
- }
98
-
99
- /*** types supporting Filter type ***/
100
-
101
- export type Tvs = CategoricalTvs | NumericTvs | ConditionTvs | GeneVariantTvs | TermCollectionTvs // | SampleLstTvs ...
102
-
103
- export type Filter = {
104
- type: 'tvslst'
105
- in: boolean
106
- join: string
107
- tag?: string // client-side only
108
- lst: ({ type: 'tvs'; tvs: Tvs } | Filter)[]
109
- $id?: string // Optional ID property
110
- }
package/src/genome.ts DELETED
@@ -1,129 +0,0 @@
1
- import type { Cohort } from './dataset.ts'
2
-
3
- /********* server/genome ********
4
-
5
- --------EXPORTED--------
6
- MinGenome
7
- Genome
8
-
9
- */
10
-
11
- type GeneDb = {
12
- dbfile: string
13
- }
14
-
15
- type TermDbs = {
16
- [key: string]: TermDbsEntry
17
- }
18
-
19
- type TermDbsEntry = {
20
- label: string
21
- cohort: Cohort
22
- /** list of geneset groups in db; required for geneORA and gsea
23
- later allow ds override so ds can enable/disable some genesets..
24
- */
25
- analysisGenesetGroups: { label: string; value: string }[]
26
- /** required for gsea */
27
- geneORAparam: { minCutoff: number; maxCutoff: number }
28
- }
29
-
30
- type DbStatement = {
31
- dbfile: string
32
- statement: string
33
- }
34
-
35
- type Snp = {
36
- bigbedfile: string
37
- }
38
-
39
- type FimoMotif = {
40
- db: string
41
- annotationfile: string
42
- }
43
-
44
- type TrackCategoryEntry = {
45
- color: string
46
- label: string
47
- }
48
-
49
- type TrackCategories = {
50
- [index: string]: TrackCategoryEntry | undefined
51
- }
52
-
53
- export type Track = {
54
- __isgene?: boolean
55
- translatecoding?: boolean
56
- file: string
57
- type: string
58
- name: string
59
- categories?: TrackCategories
60
- stackheight?: number
61
- stackspace?: number
62
- vpad?: number
63
- color?: string
64
- onerow?: boolean
65
- }
66
-
67
- export type DefaultCoord = {
68
- chr: string
69
- start: number
70
- stop: number
71
- gene?: string
72
- }
73
-
74
- type GeneSet = {
75
- name: string
76
- lst: string[]
77
- }
78
-
79
- type HicEnzymeFragment = {
80
- enzyme: string
81
- file: string
82
- }
83
-
84
- type HicDomainSetEntry = {
85
- name: string
86
- longname: string
87
- file: string
88
- }
89
-
90
- type HicDomainSet = {
91
- [index: string]: HicDomainSetEntry
92
- }
93
-
94
- type HicDomainGrpEntry = {
95
- name: string
96
- reference: string
97
- sets: HicDomainSet
98
- }
99
-
100
- type HicDomainGroups = {
101
- [index: string]: HicDomainGrpEntry
102
- }
103
-
104
- type HicDomain = {
105
- [index: string]: HicDomainGroups
106
- }
107
-
108
- //Separated to force g.tracks as required, see hgvirus.ts
109
- export type MinGenome = {
110
- isMinGenome?: boolean
111
- species: string
112
- genomefile: string
113
- genedb: GeneDb
114
- defaultcoord: DefaultCoord
115
- hicenzymefragment?: HicEnzymeFragment[]
116
- majorchr: string
117
- }
118
-
119
- export type Genome = MinGenome & {
120
- termdbs?: TermDbs
121
- proteindomain?: DbStatement
122
- repeatmasker?: DbStatement
123
- snp?: Snp
124
- fimo_motif?: FimoMotif
125
- tracks?: Track[]
126
- geneset?: GeneSet[]
127
- hicdomain?: HicDomain
128
- minorchr?: string
129
- }
package/src/index.ts DELETED
@@ -1,94 +0,0 @@
1
- // please list in alphanumeric order, include file extension
2
- export * from './genome.ts'
3
- export * from './dataset.ts'
4
- export * from './termsetting.ts'
5
- export * from './filter.ts'
6
- export * from './termdb.matrix.ts'
7
- export * from './routes/routeApi.ts'
8
- export * from './routes/aiProjectAdmin.ts'
9
- export * from './routes/aiProjectSelectedWSImages.ts'
10
- export * from './routes/aiProjectTrainModel.ts'
11
- export * from './routes/brainImaging.ts'
12
- export * from './routes/brainImagingSamples.ts'
13
- export * from './routes/burden.ts'
14
- export * from './routes/clearwsisessions.ts'
15
- export * from './routes/correlationVolcano.ts'
16
- export * from './routes/dataset.ts'
17
- export * from './routes/deleteWSITileSelection.ts'
18
- export * from './routes/dsdata.ts'
19
- export * from './routes/dzimages.ts'
20
- export * from './routes/errorResponse.ts'
21
- export * from './routes/filter.gdc.ts'
22
- export * from './routes/gdc.maf.ts'
23
- export * from './routes/gdc.mafBuild.ts'
24
- export * from './routes/gdc.grin2.ts'
25
- export * from './routes/grin2.ts'
26
- export * from './routes/genelookup.ts'
27
- export * from './routes/genesetEnrichment.ts'
28
- export * from './routes/genesetOverrepresentation.ts'
29
- export * from './routes/healthcheck.ts'
30
- export * from './routes/hicdata.ts'
31
- export * from './routes/hicgenome.ts'
32
- export * from './routes/hicstat.ts'
33
- export * from './routes/img.ts'
34
- export * from './routes/isoformlst.ts'
35
- export * from './routes/ntseq.ts'
36
- export * from './routes/pdomain.ts'
37
- export * from './routes/routeApi.ts'
38
- export * from './routes/samplewsimages.ts'
39
- export * from './routes/saveWSIAnnotation.ts'
40
- export * from './routes/snp.ts'
41
- export * from './routes/termdb.categories.ts'
42
- export * from './routes/termdb.chat2.ts'
43
- export * from './routes/termdb.cluster.ts'
44
- export * from './routes/termdb.cohort.summary.ts'
45
- export * from './routes/termdb.cohorts.ts'
46
- export * from './routes/termdb.DE.ts'
47
- export * from './routes/termdb.dapVolcano.ts'
48
- export * from './routes/termdb.diffMeth.ts'
49
- export * from './routes/termdb.descrstats.ts'
50
- export * from './routes/termdb.dmr.ts'
51
- export * from './routes/termdb.isoformAvailability.ts'
52
- export * from './routes/termdb.numericcategories.ts'
53
- export * from './routes/termdb.percentile.ts'
54
- export * from './routes/termdb.proteome.ts'
55
- export * from './routes/termdb.runChart.ts'
56
- export * from './routes/termdb.rootterm.ts'
57
- export * from './routes/termdb.termchildren.ts'
58
- export * from './routes/termdb.sampleImages.ts'
59
- export * from './routes/termdb.sampleScatter.ts'
60
- export * from './routes/termdb.singlecellData.ts'
61
- export * from './routes/termdb.singlecellDEgenes.ts'
62
- export * from './routes/termdb.singlecellSamples.ts'
63
- export * from './routes/termdb.singleSampleMutation.ts'
64
- export * from './routes/termdb.termsbyids.ts'
65
- export * from './routes/termdb.termchildren.ts'
66
- export * from './routes/termdb.topMutatedGenes.ts'
67
- export * from './routes/termdb.topTermsByType.ts'
68
- export * from './routes/termdb.topVariablyExpressedGenes.ts'
69
- export * from './routes/termdb.violinBox.ts'
70
- export * from './routes/tileserver.ts'
71
- export * from './routes/wsimages.ts'
72
- export * from './routes/wsisamples.ts'
73
- export * from './terms/categorical.ts'
74
- export * from './terms/condition.ts'
75
- export * from './terms/date.ts'
76
- export * from './terms/numeric.ts'
77
- export * from './terms/geneVariant.ts'
78
- export * from './terms/geneExpression.ts'
79
- export * from './terms/isoformExpression.ts'
80
- export * from './terms/metaboliteIntensity.ts'
81
- export * from './terms/proteomeAbundance.ts'
82
- export * from './terms/qualitative.ts'
83
- export * from './terms/singleCellCellType.ts'
84
- export * from './terms/singleCellGeneExpression.ts'
85
- export * from './terms/snp.ts'
86
- export * from './terms/snps.ts'
87
- export * from './terms/samplelst.ts'
88
- export * from './terms/ssGSEA.ts'
89
- export * from './terms/dnaMethylation.ts'
90
- export * from './terms/q.ts'
91
- export * from './terms/term.ts'
92
- export * from './terms/termCollection.ts'
93
- export * from './terms/tw.ts'
94
- export * from './vocab.ts'
@@ -1,37 +0,0 @@
1
- import type { RoutePayload } from './routeApi.ts'
2
-
3
- export type AIProjectAdminRequest = {
4
- genome: string
5
- dslabel: string
6
- /** list: get entire list of projects from db
7
- * admin: edit, add, or delete projects from db
8
- * filterImages: filter metadata for images
9
- * images: get images for a project
10
- */
11
- for: 'list' | 'admin' | 'filterImages' | 'images'
12
- /** required for 'project' and 'selection' requests */
13
- project?: {
14
- name: string
15
- id?: number
16
- filter?: string
17
- classes?: any[]
18
- images?: string[]
19
- }
20
- }
21
-
22
- export type AIProjectAdminResponse = {
23
- status: 'ok' | 'error'
24
- projectId?: number
25
- images: string[]
26
- error?: string
27
- data?: { cols: any[]; rows: any[]; images?: string[]; selectedImages?: string[] }[]
28
- }
29
-
30
- export const aiProjectAdminPayload: RoutePayload = {
31
- request: {
32
- typeId: 'AIProjectAdminRequest'
33
- },
34
- response: {
35
- typeId: 'AIProjectAdminResponse'
36
- }
37
- }
@@ -1,47 +0,0 @@
1
- import type { RoutePayload } from './routeApi.ts'
2
- import type { WSImage } from './samplewsimages.ts'
3
- import type { FlagStatusValues } from '#shared/devTs'
4
-
5
- export type AiProjectSelectedWSImagesRequest = {
6
- genome: string
7
- dslabel: string
8
- projectId: number
9
- wsimagesFilenames: Array<string>
10
- }
11
-
12
- export type AiProjectSelectedWSImagesResponse = {
13
- // TODO create a type for WSImage with AI project specific fields
14
- wsimages: WSImage[]
15
- }
16
-
17
- export interface FlagPredictionInfo {
18
- flag: FlagStatusValues
19
- timestamp: string
20
- }
21
-
22
- // TODO move to another class
23
- export interface TileSelection {
24
- zoomCoordinates: [number, number]
25
- class?: string
26
- flag: FlagStatusValues
27
- id: string
28
- timestamp: string
29
- }
30
-
31
- export interface Annotation extends TileSelection {
32
- class: string
33
- }
34
-
35
- export interface Prediction extends TileSelection {
36
- class: string
37
- uncertainty: number
38
- }
39
-
40
- export const aiProjectSelectedWSImagesResponsePayload: RoutePayload = {
41
- request: {
42
- typeId: 'AiProjectSelectedWSImagesRequest'
43
- },
44
- response: {
45
- typeId: 'AiProjectSelectedWSImagesResponse'
46
- }
47
- }
@@ -1,20 +0,0 @@
1
- import type { RoutePayload } from './routeApi.ts'
2
-
3
- export type AIProjectTrainModelRequest = {
4
- genome: string
5
- dslabel: string
6
- projectId?: string
7
- }
8
-
9
- export type AIProjectTrainModelResponse = {
10
- status: 'ok' | 'error'
11
- }
12
-
13
- export const aiProjectTrainModelPayload: RoutePayload = {
14
- request: {
15
- typeId: 'AIProjectTrainModelRequest'
16
- },
17
- response: {
18
- typeId: 'AIProjectTrainModelResponse'
19
- }
20
- }
@@ -1,27 +0,0 @@
1
- import type { RoutePayload } from './routeApi.ts'
2
-
3
- export type alphaGenomeRequest = {
4
- genome?: string
5
- dslabel?: string
6
- chromosome: string
7
- position: number
8
- reference: string
9
- alternate: string
10
- ontologyTerms: string[]
11
- outputType?: number
12
- interval: number
13
- }
14
-
15
- export type alphaGenomeResponse = {
16
- /** the alpha genome plot */
17
- plotImage: string
18
- }
19
-
20
- export const alphaGenomePayload: RoutePayload = {
21
- request: {
22
- typeId: 'alphaGenomeRequest'
23
- },
24
- response: {
25
- typeId: 'alphaGenomeResponse'
26
- }
27
- }
@@ -1,21 +0,0 @@
1
- import type { RoutePayload } from './routeApi.ts'
2
-
3
- export type alphaGenomeTypesRequest = {
4
- dslabel: string
5
- }
6
- export type alphaGenomeTypesResponse = {
7
- /** the alpha genome ontology terms supported by the dataset */
8
- ontologyTerms: any[]
9
- /** the alpha genome output types */
10
- outputTypes: any[]
11
- intervals: number[]
12
- }
13
-
14
- export const alphaGenomeTypesPayload: RoutePayload = {
15
- request: {
16
- typeId: 'alphaGenomeTypesRequest'
17
- },
18
- response: {
19
- typeId: 'alphaGenomeTypesResponse'
20
- }
21
- }
@@ -1,47 +0,0 @@
1
- import type { QualTW } from '../terms/qualitative.ts'
2
- import type { RoutePayload } from './routeApi.ts'
3
-
4
- export type BrainImagingRequest = {
5
- /** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
6
- genome: string
7
- /** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
8
- dslabel: string
9
- /** a user-defined brain template label in dataset file, such as Ref1, Ref2 */
10
- refKey: string
11
- /** the slice index of sagittal, coronal and axial planes*/
12
- l?: string
13
- f?: string
14
- t?: string
15
- /** the sample names selected by the users to plot on brain template */
16
- selectedSampleFileNames: string[]
17
- /* the term to divide the samples into groups */
18
- divideByTW?: QualTW
19
- /* the term to color the samples based on their category */
20
- overlayTW?: QualTW
21
- /* the term categories that were filtered out */
22
- legendFilter?: string[]
23
- }
24
-
25
- export type BrainImagingResponse = {
26
- /** the brain imaging plot */
27
- brainImage: string
28
- plane?: any
29
- legend?: {
30
- [key: string]: {
31
- color: string
32
- maxLength: number
33
- crossedOut: boolean
34
- }
35
- }
36
- }
37
-
38
- export type FilesByCategory = { [category: string]: { samples: string[]; color?: any } }
39
-
40
- export const brainImagingPayload: RoutePayload = {
41
- request: {
42
- typeId: 'BrainImagingRequest'
43
- },
44
- response: {
45
- typeId: 'BrainImagingResponse'
46
- }
47
- }
@@ -1,25 +0,0 @@
1
- import type { RoutePayload } from './routeApi.ts'
2
-
3
- export type BrainImagingSamplesRequest = {
4
- /** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
5
- genome: string
6
- /** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
7
- dslabel: string
8
- /** a user-defined brain template label in dataset file, such as Ref1, Ref2 */
9
- refKey: string
10
- }
11
-
12
- export type BrainImagingSamplesResponse = {
13
- samples: BrainSample[]
14
- }
15
-
16
- export type BrainSample = { [key: string]: string }
17
-
18
- export const brainImagingSamplesPayload: RoutePayload = {
19
- request: {
20
- typeId: 'BrainImagingSamplesRequest'
21
- },
22
- response: {
23
- typeId: 'BrainImagingSamplesResponse'
24
- }
25
- }
@@ -1,113 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
-
3
- export type BurdenRequest = {
4
- /** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
5
- genome: string
6
- /** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
7
- dslabel: string
8
- /** boolean for whether to show 95% confidence interval */
9
- showCI: boolean
10
- /** the diagnosis group:
11
- * 1= "Acute lymphoblastic leukemia (ALL)"
12
- * 2= "Acute Myeloid Leukemia (AML)"
13
- * 3= "Hodgkin lymphoma (HL)"
14
- * 4= "Non-Hodgkin lymphoma (NHL)"
15
- * 5= "Central nervous system (CNS)"
16
- * 6= "Bone tumor (BT)"
17
- * 7= "Soft Tissue Sarcoma (STS)"
18
- * 8= "Wilms tumor (WT)"
19
- * 9= "Neuroblastoma (NB)"
20
- * 10= "Retinoblastoma (Rb)"
21
- * 11= "Germ cell tumor (GCT)"
22
- */
23
- diaggrp: number
24
- /** sex: 0=Female, 1=Male */
25
- sex: number
26
- /** race or ethnicity: 1=Yes, 0=No */
27
- white: number
28
- /** Age of diagnosis, in years */
29
- agedx: number
30
- /** bleomycin: a chemotherapy treatment drug, mg/m^2 */
31
- bleo: number
32
- /** Etoposide: a chemotherapy treatment drug, mg/m^2 */
33
- etop: number
34
- /** Cisplatin: a chemotherapy treatment drug, mg/m^2 */
35
- cisp: number
36
- /** Carboplatin: a class of chemotherapy treatment drugs, mg/m^2 */
37
- carbo: number
38
- /** Steriods: a class of chemotherapy treatment drugs, mg/m^2 */
39
- steriod: number
40
- /** Vincristine: a chemotherapy treatment drug, mg/m^2 */
41
- vcr: number
42
- /** High-dose methothrexate: a chemotherapy treatment drug, mg/m^2 */
43
- hdmtx: number
44
- /** Intrathecal methothrexate: a chemotherapy treatment drug, mg/m^2 */
45
- itmt: number
46
- /** Cyclophosphamide: a chemotherapy treatment drug, mg/m^2 */
47
- ced: number
48
- /** Anthracycline: a chemotherapy treatment drug, mg/m^2 */
49
- dox: number
50
- /** Heart radiation, Gy */
51
- heart: number
52
- /** Brain radiation, Gy */
53
- brain: number
54
- /** Abdominal radiation, Gy */
55
- abd: number
56
- /** Pelvic radiation, Gy */
57
- pelvis: number
58
- /** Chest radiation, Gy */
59
- chest: number
60
- }
61
-
62
- // tentative code for migrating api code from `server/routes` code
63
- export type BurdenResponse = {
64
- status: string
65
- keys: string[]
66
- rows: number[][]
67
- }
68
-
69
- // tentative code to generate runtime "type" checkers, requires tsx/bundler to have transform for typia createValidate to work
70
- // export const validBurdenRequest = createValidate<BurdenRequest>()
71
- // export const validBurdenResponse = createValidate<BurdenResponse>()
72
-
73
- export const burdenPayload: RoutePayload = {
74
- request: {
75
- typeId: 'BurdenRequest'
76
- },
77
- response: {
78
- typeId: 'BurdenResponse'
79
- },
80
- examples: [
81
- {
82
- request: {
83
- body: {
84
- genome: 'hg38',
85
- // TODO: !!! use hg38-test and TermdbTest !!!
86
- dslabel: 'SJLife',
87
- diaggrp: 5,
88
- sex: 1,
89
- white: 1,
90
- agedx: 1,
91
- bleo: 0,
92
- etop: 0,
93
- cisp: 0,
94
- carbo: 0,
95
- steriod: 0,
96
- vcr: 0,
97
- hdmtx: 0,
98
- itmt: 0,
99
- ced: 0,
100
- dox: 0,
101
- heart: 0,
102
- brain: 0,
103
- abd: 0,
104
- pelvis: 0,
105
- chest: 0
106
- }
107
- },
108
- response: {
109
- header: { status: 200 }
110
- }
111
- }
112
- ]
113
- }