@sjcrh/proteinpaint-types 2.188.1 → 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-46YIGVUP.js +0 -908
  18. package/dist/chunk-4EAGOSMN.js +0 -128
  19. package/dist/chunk-5H2LJKPX.js +0 -104
  20. package/dist/chunk-5L4VF3ZL.js +0 -266
  21. package/dist/chunk-5N7V62ZL.js +0 -231
  22. package/dist/chunk-62XTWOVJ.js +0 -273
  23. package/dist/chunk-6GKG55BT.js +0 -232
  24. package/dist/chunk-7MUISZHS.js +0 -61
  25. package/dist/chunk-7OA6G77M.js +0 -113
  26. package/dist/chunk-AGMCAWBR.js +0 -454
  27. package/dist/chunk-BCBSHTHS.js +0 -75
  28. package/dist/chunk-BZVFHGN3.js +0 -350
  29. package/dist/chunk-CQXBQY2H.js +0 -161
  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-DUCWIRPX.js +0 -311
  34. package/dist/chunk-EIJT53QB.js +0 -240
  35. package/dist/chunk-EOKM345J.js +0 -222
  36. package/dist/chunk-FK7OCBPT.js +0 -341
  37. package/dist/chunk-FMC4G5BP.js +0 -62
  38. package/dist/chunk-G4MMYXP6.js +0 -405
  39. package/dist/chunk-GTS2G4R4.js +0 -62
  40. package/dist/chunk-HQV2A7JV.js +0 -62
  41. package/dist/chunk-IS74WYQF.js +0 -207
  42. package/dist/chunk-JDF7A2LY.js +0 -361
  43. package/dist/chunk-JEQGBUK2.js +0 -5993
  44. package/dist/chunk-K4FSDTDW.js +0 -109
  45. package/dist/chunk-KCMPDEH7.js +0 -62
  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-PTE2I7DF.js +0 -91
  55. package/dist/chunk-Q3HGHP3J.js +0 -174
  56. package/dist/chunk-QNH3PKJK.js +0 -343
  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-SZZXZZKO.js +0 -3991
  61. package/dist/chunk-TD4YLTHL.js +0 -158
  62. package/dist/chunk-TEXOICIS.js +0 -11810
  63. package/dist/chunk-THQOFV2K.js +0 -205
  64. package/dist/chunk-TQQWSHFM.js +0 -5980
  65. package/dist/chunk-U3BTVE5T.js +0 -111
  66. package/dist/chunk-UBOVHONH.js +0 -62
  67. package/dist/chunk-ULKGA7YY.js +0 -158
  68. package/dist/chunk-UYJA4UM7.js +0 -97
  69. package/dist/chunk-V3JDD3ZG.js +0 -3671
  70. package/dist/chunk-VJB6F2HL.js +0 -309
  71. package/dist/chunk-VUKRI3TG.js +0 -164
  72. package/dist/chunk-W3F3CLYP.js +0 -61
  73. package/dist/chunk-X4JBWMXY.js +0 -130
  74. package/dist/chunk-X5E72ZXA.js +0 -5979
  75. package/dist/chunk-YNHC5SXO.js +0 -1780
  76. package/dist/chunk-YPEFUAJW.js +0 -62
  77. package/dist/chunk-YSTMGNYR.js +0 -113
  78. package/dist/chunk-YW5G4M5D.js +0 -158
  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 -2186
  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 -48
  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 -220
  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
@@ -1,60 +0,0 @@
1
- import type { RoutePayload } from './routeApi.ts'
2
-
3
- //TermWrapper defined in client/types/terms/tw.ts
4
- //Do not use #types TermWrapper here as it will be deprecated
5
- export type TermdbSampleScatterRequest = {
6
- genome: string
7
- dslabel: string
8
- colorTW?: any //TermWrapper
9
- shapeTW?: any //TermWrapper
10
- divideByTW?: any //TermWrapper
11
- scaleDotTW?: any //TermWrapper
12
- coordTWs?: any[] //TermWrapper[]
13
- plotName?: string
14
- filter?: any
15
- filter0?: any
16
- chartType?: string
17
- singleCellPlot?: any
18
- colorColumn?: any
19
- excludeOutliers?: any
20
- }
21
-
22
- export type ScatterSample = {
23
- category: string
24
- sample: string
25
- info?: { [index: string]: any }
26
- shape: string
27
- x: number
28
- y: number
29
- z: number
30
- }
31
-
32
- type ColorObject = { color: string; sampleCount: number; key: string }
33
- export type ColorLegendEntry = [string, ColorObject]
34
- export type ColorMap = { [index: string]: ColorObject }
35
-
36
- type ShapeObject = { shape: number; sampleCount: number; key: string }
37
- export type ShapeLegendEntry = [string, ShapeObject]
38
- export type ShapeMap = { [index: string]: ShapeObject }
39
-
40
- type ScatterResult = {
41
- [index: string]: {
42
- colorLegend: ColorLegendEntry[]
43
- samples: ScatterSample[]
44
- shapeLegend: ShapeLegendEntry[]
45
- }
46
- }
47
-
48
- export type TermdbSampleScatterResponse = {
49
- range: { xMin: number; xMax: number; yMin: number; yMax: number }
50
- result: ScatterResult
51
- }
52
-
53
- export const termdbSampleScatterPayload: RoutePayload = {
54
- request: {
55
- typeId: 'TermdbSampleScatterRequest'
56
- },
57
- response: {
58
- typeId: 'TermdbSampleScatterResponse'
59
- }
60
- }
@@ -1,51 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
- import type { ErrorResponse } from './errorResponse.ts'
3
-
4
- export type TermdbSingleSampleMutationRequest = {
5
- /** Genome id */
6
- genome: string
7
- /** Dataset label */
8
- dslabel: 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
- }
12
- type ValidResponse = {
13
- /** List of mutation data points from this sample TODO change to type of M elements */
14
- mlst: object[]
15
- /** total number of items for each dt, useful to indicate snvindel limited to 10k for a hypermutator */
16
- dt2total?: { dt: number; total: number }[]
17
- /** declares presence of alternative data for some dt, e.g. a gdc case has cnv results from both snp array and wgs
18
- key: dt value
19
- value: array of objects, each is a distinct set of data points for this dt
20
- on ui, selecting an object will allow to show this data in disco plot
21
- each is identified by either nameHtml or name
22
- */
23
- alternativeDataByDt?: {
24
- [index: number]: {
25
- /** hyperlink */
26
- nameHtml?: string
27
- /** name in text */
28
- name?: string
29
- /** one set of data must have this flag set to true to indicate its data is already present in ValidResponse.mlst */
30
- inuse?: boolean
31
- /** required list of events from this data */
32
- mlst: object[]
33
- /** optional info about this source */
34
- attrs?: {
35
- [index: string]: string
36
- }
37
- }[]
38
- }
39
- }
40
-
41
- export type TermdbSingleSampleMutationResponse = ErrorResponse | ValidResponse
42
-
43
- export const termdbSingleSampleMutationPayload: RoutePayload = {
44
- request: {
45
- typeId: 'TermdbSingleSampleMutationRequest'
46
- },
47
- response: {
48
- typeId: 'TermdbSingleSampleMutationResponse'
49
- }
50
- // examples: []
51
- }
@@ -1,50 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
- import type { ErrorResponse } from './errorResponse.ts'
3
- import type { DataEntry, VolcanoData, VolcanoRenderRequest } from './termdb.DE.js'
4
-
5
- export type TermdbSingleCellDEgenesRequest = {
6
- /** Genome id */
7
- genome: string
8
- /** Dataset label */
9
- dslabel: string
10
- /** Sample identifier
11
- * for GDC the value is "seurat.analysis.tsv" file UUID
12
- * rather than sample name, derived from the eID. The file
13
- * contains the analysis results for an experiment.
14
- *
15
- * Eventually, all requests will use the object and
16
- * **not** the string format.*/
17
- sample: string | { sID: string; eID: string }
18
- /** column name to provide cell groups/clustering,
19
- * for which DE genes are precomputed. */
20
- termId: string
21
- /** User selected cell group/cluster, corresponds to termId,
22
- * for which DE genes will be returned to client */
23
- categoryName: string
24
- /** Parameters for the server-side `volcano` Rust renderer. Always required — the
25
- * server always returns a rendered PNG plus the threshold-passing rows. */
26
- volcanoRender: VolcanoRenderRequest
27
- }
28
-
29
- export type SingleCellDEEntry = DataEntry & {
30
- /** gene name */
31
- gene_name: string
32
- }
33
-
34
- export type HasDataResponse = {
35
- /** The volcano payload — per-gene interactive dots + PNG + extents + totals.
36
- * See VolcanoData for details. */
37
- data: VolcanoData<SingleCellDEEntry>
38
- }
39
-
40
- export type TermdbSingleCellDEgenesResponse = ErrorResponse | HasDataResponse
41
-
42
- export const termdbSingleCellDEgenesPayload: RoutePayload = {
43
- request: {
44
- typeId: 'TermdbSingleCellDEgenesRequest'
45
- },
46
- response: {
47
- typeId: 'TermdbSingleCellDEgenesResponse'
48
- }
49
- // examples: []
50
- }
@@ -1,75 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
- import type { ErrorResponse } from './errorResponse.ts'
3
-
4
- export type Cell = {
5
- /** Cell id or barcode */
6
- cellId: string
7
- /** X coord of the cell */
8
- x: number
9
- /** Y coord of the cell */
10
- y: number
11
- /** Z coord of the cell, should be present for all cells and trigger 3d plot */
12
- z?: number
13
- /** The cell may have different classifications, e.g. by cell type, CNV, FUSION, etc. */
14
- category: string
15
- /** Gene expression data for this cell */
16
- geneExp?: number
17
- }
18
-
19
- export type Plot = {
20
- /** name of the plot */
21
- name: string
22
- /** List of cells with gene expression */
23
- expCells: Cell[]
24
- /** List of cells with no gene expression, if no gene provided all cells will be here */
25
- noExpCells: Cell[]
26
- colorColumns: string[]
27
- colorBy: string
28
- colorMap: any
29
- }
30
-
31
- export type TermdbSingleCellDataRequest = {
32
- /** Genome id */
33
- genome: string
34
- /** Dataset label */
35
- dslabel: string
36
- /** Sample name for which the sc results will be shown.
37
- for GDC the value is "seurat.analysis.tsv" file UUID rather than any sample name. the file contains the analysis results for an experiment */
38
- sample: { eID?: string; sID: string }
39
- /** List of plot names from this sample to request data for */
40
- plots: string[]
41
- /** check plot availability for this sample, will not return actual plot data and speed up */
42
- checkPlotAvailability?: boolean
43
- /** Gene name to retrieve expression data for all cells of the given sample, and to overlay on maps */
44
- gene?: string
45
- /** in each plot, what Column name to color by
46
- key: plot.name, value: column name
47
- if missing, use default setting of the plot
48
- */
49
- // colorBy?: { [key: string]: string }
50
- colorBy?: string
51
- colorMap?: { [key: string]: string }
52
- singleCellPlot?: any
53
- }
54
-
55
- export type HasdataResponse = {
56
- /** List of plots from singlecell experiment of this sample */
57
- plots: Plot[]
58
- }
59
-
60
- export type NodataResponse = {
61
- /** Flag to indicate no sc data for this sample */
62
- nodata: boolean
63
- }
64
-
65
- export type TermdbSingleCellDataResponse = NodataResponse | ErrorResponse | HasdataResponse
66
-
67
- export const termdbSingleCellDataPayload: RoutePayload = {
68
- request: {
69
- typeId: 'TermdbSingleCellDataRequest'
70
- },
71
- response: {
72
- typeId: 'TermdbSingleCellDataResponse'
73
- }
74
- // examples: []
75
- }
@@ -1,50 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
- import type { ErrorResponse } from './errorResponse.ts'
3
-
4
- export type SingleCellSample = {
5
- /** Sample name, required */
6
- sample: string
7
- /** optional list of sc data files available for this sample, gdc-specific
8
- if available:
9
- each row of sample table will infact be one experiment.
10
- selecting one will use its experimentID as "sample" value in request parameter
11
- each experiment may have additional fields that may be displayed in table. see singleCell.samples.experimentColumns[]
12
-
13
- if no exp, then each sample will just have one experiment identifiable by its sample name, and this name is used in request
14
- */
15
- [key: string]: any //sample column/term value
16
- experiments?: {
17
- sampleName: any
18
- experimentID?: string
19
- }[]
20
- isMetaResult?: boolean // whether this sample is a meta result. if so, sample name is from plot.sampleId or plot.name and experimentID is not used
21
- // a sample may have additional fields that will be displayed in table, see singleCell.samples.sampleColumns[]
22
- }
23
-
24
- export type TermdbSingleCellSamplesRequest = {
25
- /** Genome id */
26
- genome: string
27
- /** Dataset label */
28
- dslabel: string
29
- //filter0?: Filter0 // for gdc
30
- }
31
- type ValidResponse = {
32
- /** List of sample names with singlecell data */
33
- samples: SingleCellSample[]
34
- metaResults?: {
35
- /** identifier of one result */
36
- name: string
37
- }[]
38
- }
39
-
40
- export type TermdbSingleCellSamplesResponse = ErrorResponse | ValidResponse
41
-
42
- export const termdbSingleCellSamplesPayload: RoutePayload = {
43
- request: {
44
- typeId: 'TermdbSingleCellSamplesRequest'
45
- },
46
- response: {
47
- typeId: 'TermdbSingleCellSamplesResponse'
48
- }
49
- // examples: []
50
- }
@@ -1,49 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
-
3
- export type TermChildrenRequest = {
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
- embedder: string
9
- get_children: number
10
- tid: string
11
- }
12
-
13
- interface Entries {
14
- name: string
15
- id: string
16
- isleaf: boolean
17
- included_types: string[]
18
- child_types: string[]
19
- }
20
-
21
- export type TermChildrenResponse = {
22
- lst: Entries[]
23
- }
24
-
25
- export const termChildrenPayload: RoutePayload = {
26
- request: {
27
- typeId: 'TermChildrenRequest'
28
- },
29
- response: {
30
- typeId: 'TermChildrenResponse'
31
- },
32
- examples: [
33
- {
34
- request: {
35
- body: {
36
- genome: 'hg38-test',
37
- dslabel: 'TermdbTest',
38
- embedder: 'localhost',
39
- get_children: 1,
40
- cohortValues: 'ABC',
41
- tid: 'GO:0000001'
42
- }
43
- },
44
- response: {
45
- header: { status: 200 }
46
- }
47
- }
48
- ]
49
- }
@@ -1,26 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
- import type { TermWrapper } from '../terms/tw.ts'
3
-
4
- export type TermsByIdsRequest = {
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
- embedder: string
10
- /** term id string */
11
- ids: string[]
12
- }
13
-
14
- export type TermsByIdsResponse = {
15
- terms: { [id: string]: TermWrapper }
16
- }
17
-
18
- export const termsByIdsPayload: RoutePayload = {
19
- request: {
20
- typeId: 'TermsByIdsRequest'
21
- },
22
- response: {
23
- typeId: 'TermsByIdsResponse'
24
- }
25
- // examples: []
26
- }
@@ -1,51 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
-
3
- export type topMutatedGeneRequest = {
4
- genome: string
5
- dslabel: string
6
- /** to restrict to CGC genes */
7
- geneFilter?: 'CGC'
8
- /** max number of genes to return */
9
- maxGenes?: number
10
- /** pp filter */
11
- filter?: object
12
- /** gdc cohort filter */
13
- filter0?: object
14
- /** rest are arguments for built in query */
15
- snv_mfndi?: number
16
- snv_splice?: number
17
- snv_utr?: number
18
- snv_s?: number
19
- sv?: number
20
- fusion?: number
21
- cnv?: number
22
- cnv_ms?: { type: string; geneLst: null }
23
- cnv_logratio?: { type: string; geneLst: null }
24
- }
25
-
26
- export type MutatedGene = {
27
- /** gene symbol */
28
- gene: string
29
- /** optional attributes on number of mutated cases per dt */
30
- mutationStat?: {
31
- /** each stat object is identified by either dt or class */
32
- dt?: number
33
- class?: string
34
- /** number of samples with alterations of this gene */
35
- count: number
36
- }[]
37
- }
38
-
39
- export type topMutatedGeneResponse = {
40
- genes: MutatedGene[]
41
- }
42
-
43
- export const topMutatedGenePayload: RoutePayload = {
44
- request: {
45
- typeId: 'topMutatedGeneRequest'
46
- },
47
- response: {
48
- typeId: 'topMutatedGeneResponse'
49
- }
50
- //examples: []
51
- }
@@ -1,32 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
- //import GdcFilter0 from './filter.gdc'
3
- import type { Term } from '../terms/term.ts'
4
- import type { Filter } from '../filter.ts'
5
-
6
- export type TermdbTopTermsByTypeRequest = {
7
- /** Ref genome */
8
- genome: string
9
- /** Ds label */
10
- dslabel: string
11
- /* Term type */
12
- type: string
13
- /** pp filter */
14
- filter?: Filter
15
- /** JSON, optional GDC cohort filter to restrict cases */
16
- filter0?: any //GdcFilter0
17
- }
18
-
19
- export type TermdbTopTermsByTypeResponse = {
20
- /** Array of gene names TODO may change element to objs */
21
- terms: Term[]
22
- }
23
-
24
- export const termdbTopTermsByTypePayload: RoutePayload = {
25
- request: {
26
- typeId: 'TermdbTopTermsByTypeRequest'
27
- },
28
- response: {
29
- typeId: 'TermdbTopTermsByTypeResponse'
30
- },
31
- // examples: []
32
- }
@@ -1,54 +0,0 @@
1
- import type { RoutePayload } from './routeApi.js'
2
- //import GdcFilter0 from './filter.gdc'
3
- import type { Filter } from '../filter.ts'
4
- import type { ErrorResponse } from './errorResponse.ts'
5
-
6
- export type TermdbTopVariablyExpressedGenesRequest = {
7
- /** Ref genome */
8
- genome: string
9
- /** Ds label */
10
- dslabel: string
11
- /** Number of top genes requested */
12
- maxGenes: number
13
- /** optional param defined by dataset. if to scan all or subset of genes */
14
- geneSet?: {
15
- /** Indicates the geneset to return
16
- * all - all genes
17
- * custom - user defined list of genes
18
- * msigdb - msigdb geneset
19
- */
20
- type: 'all' | 'custom' | 'msigdb'
21
- /** Sent as null for 'all' types. Otherwise a list of gene symbols */
22
- geneList: string[] | null
23
- }
24
- /** optional parameter defined in gdc dataset. not used for non-gdc ds */
25
- min_median_log2_uqfpkm?: number
26
- /** filter extreme values (in native implementation): true/false */
27
- filter_extreme_values?: boolean | number
28
- /** Filter type: variance/inter-quartile region (in native implementation) */
29
- rank_type?: {
30
- type: 'var' | 'iqr'
31
- }
32
- filter?: Filter
33
- /** JSON, optional GDC cohort filter to restrict cases */
34
- filter0?: any //GdcFilter0
35
- /** helps ds getter */
36
- ds?: any
37
- }
38
-
39
- type ValidResponse = {
40
- /** Array of gene names TODO may change element to objs */
41
- genes: string[]
42
- }
43
-
44
- export type TermdbTopVariablyExpressedGenesResponse = ErrorResponse | ValidResponse
45
-
46
- export const termdbTopVariablyExpressedGenesPayload: RoutePayload = {
47
- request: {
48
- typeId: 'TermdbTopVariablyExpressedGenesRequest'
49
- },
50
- response: {
51
- typeId: 'TermdbTopVariablyExpressedGenesResponse'
52
- }
53
- // examples: []
54
- }