@sjcrh/proteinpaint-types 2.84.0 → 2.85.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 (135) hide show
  1. package/dist/routes.ts +28847 -0
  2. package/package.json +17 -13
  3. package/src/Mclass.js +0 -0
  4. package/src/checkers/routes.js +167 -0
  5. package/src/dataset.js +0 -0
  6. package/src/fileOrUrl.js +0 -0
  7. package/src/filter.js +0 -0
  8. package/src/genome.js +0 -0
  9. package/src/index.js +66 -0
  10. package/src/routes/brainImaging.js +11 -0
  11. package/src/routes/brainImagingSamples.js +11 -0
  12. package/src/routes/burden.js +44 -0
  13. package/src/routes/dataset.js +12 -0
  14. package/src/routes/dsdata.js +12 -0
  15. package/src/routes/dzimages.js +12 -0
  16. package/src/routes/errorResponse.js +0 -0
  17. package/src/routes/filter.gdc.js +0 -0
  18. package/src/routes/gdc.maf.js +17 -0
  19. package/src/routes/gdc.mafBuild.js +12 -0
  20. package/src/routes/gdc.topMutatedGenes.js +12 -0
  21. package/src/routes/genelookup.js +12 -0
  22. package/src/routes/genesetEnrichment.js +12 -0
  23. package/src/routes/genesetOverrepresentation.js +12 -0
  24. package/src/routes/healthcheck.js +23 -0
  25. package/src/routes/hicdata.js +12 -0
  26. package/src/routes/hicgenome.js +29 -0
  27. package/src/routes/hicstat.js +12 -0
  28. package/src/routes/isoformlst.js +12 -0
  29. package/src/routes/ntseq.js +12 -0
  30. package/src/routes/pdomain.js +12 -0
  31. package/src/routes/routeApi.js +0 -0
  32. package/src/routes/samplewsimages.js +12 -0
  33. package/src/routes/snp.js +11 -0
  34. package/src/routes/termdb.DE.js +13 -0
  35. package/src/routes/termdb.boxplot.js +12 -0
  36. package/src/routes/termdb.categories.js +48 -0
  37. package/src/routes/termdb.cluster.js +12 -0
  38. package/src/routes/termdb.cohort.summary.js +12 -0
  39. package/src/routes/termdb.cohorts.js +12 -0
  40. package/src/routes/termdb.descrstats.js +48 -0
  41. package/src/routes/termdb.numericcategories.js +12 -0
  42. package/src/routes/termdb.percentile.js +49 -0
  43. package/src/routes/termdb.rootterm.js +27 -0
  44. package/src/routes/termdb.sampleImages.js +12 -0
  45. package/src/routes/termdb.singleSampleMutation.js +12 -0
  46. package/src/routes/termdb.singlecellDEgenes.js +12 -0
  47. package/src/routes/termdb.singlecellData.js +12 -0
  48. package/src/routes/termdb.singlecellSamples.js +12 -0
  49. package/src/routes/termdb.termchildren.js +28 -0
  50. package/src/routes/termdb.termsbyids.js +12 -0
  51. package/src/routes/termdb.topTermsByType.js +12 -0
  52. package/src/routes/termdb.topVariablyExpressedGenes.js +12 -0
  53. package/src/routes/termdb.violin.js +49 -0
  54. package/src/routes/tileserver.js +12 -0
  55. package/src/routes/wsimages.js +12 -0
  56. package/src/terms/categorical.js +0 -0
  57. package/src/terms/condition.js +0 -0
  58. package/src/terms/geneExpression.js +0 -0
  59. package/src/terms/geneVariant.js +0 -0
  60. package/src/terms/metaboliteIntensity.js +0 -0
  61. package/src/terms/numeric.js +0 -0
  62. package/src/terms/q.js +0 -0
  63. package/src/terms/samplelst.js +0 -0
  64. package/src/terms/singleCellCellType.js +0 -0
  65. package/src/terms/singleCellGeneExpression.js +0 -0
  66. package/src/terms/snp.js +0 -0
  67. package/src/terms/snps.js +0 -0
  68. package/src/terms/term.js +0 -0
  69. package/src/terms/tw.js +0 -0
  70. package/src/terms/updated-types.js +0 -0
  71. package/src/termsetting.js +0 -0
  72. package/src/test/numeric.type.spec.js +117 -0
  73. package/src/vocab.js +0 -0
  74. package/src/Mclass.ts +0 -8
  75. package/src/dataset.ts +0 -1575
  76. package/src/docs.json +0 -16417
  77. package/src/fileOrUrl.ts +0 -15
  78. package/src/filter.ts +0 -125
  79. package/src/genome.ts +0 -123
  80. package/src/index.ts +0 -57
  81. package/src/routes/brainImaging.ts +0 -42
  82. package/src/routes/burden.ts +0 -69
  83. package/src/routes/dzimages.ts +0 -9
  84. package/src/routes/errorResponse.ts +0 -6
  85. package/src/routes/filter.gdc.ts +0 -15
  86. package/src/routes/gdc.maf.ts +0 -41
  87. package/src/routes/gdc.mafBuild.ts +0 -13
  88. package/src/routes/gdc.topMutatedGenes.ts +0 -25
  89. package/src/routes/genelookup.ts +0 -10
  90. package/src/routes/genesetEnrichment.ts +0 -46
  91. package/src/routes/genesetOverrepresentation.ts +0 -36
  92. package/src/routes/healthcheck.ts +0 -57
  93. package/src/routes/hicdata.ts +0 -37
  94. package/src/routes/hicgenome.ts +0 -22
  95. package/src/routes/hicstat.ts +0 -45
  96. package/src/routes/sampledzimages.ts +0 -1
  97. package/src/routes/samplewsimages.ts +0 -15
  98. package/src/routes/termdb.DE.ts +0 -44
  99. package/src/routes/termdb.boxplot.ts +0 -49
  100. package/src/routes/termdb.categories.ts +0 -26
  101. package/src/routes/termdb.cluster.ts +0 -86
  102. package/src/routes/termdb.getSampleImages.ts +0 -14
  103. package/src/routes/termdb.getTopTermsByType.ts +0 -21
  104. package/src/routes/termdb.getdescrstats.ts +0 -31
  105. package/src/routes/termdb.getnumericcategories.ts +0 -21
  106. package/src/routes/termdb.getpercentile.ts +0 -17
  107. package/src/routes/termdb.getrootterm.ts +0 -22
  108. package/src/routes/termdb.gettermchildren.ts +0 -21
  109. package/src/routes/termdb.singleSampleMutation.ts +0 -18
  110. package/src/routes/termdb.singlecellDEgenes.ts +0 -30
  111. package/src/routes/termdb.singlecellData.ts +0 -58
  112. package/src/routes/termdb.singlecellSamples.ts +0 -35
  113. package/src/routes/termdb.termsbyids.ts +0 -15
  114. package/src/routes/termdb.topVariablyExpressedGenes.ts +0 -45
  115. package/src/routes/termdb.violin.ts +0 -74
  116. package/src/routes/wsimages.ts +0 -12
  117. package/src/terms/categorical.ts +0 -106
  118. package/src/terms/condition.ts +0 -55
  119. package/src/terms/geneExpression.ts +0 -32
  120. package/src/terms/geneVariant.ts +0 -51
  121. package/src/terms/metaboliteIntensity.ts +0 -31
  122. package/src/terms/numeric.ts +0 -253
  123. package/src/terms/q.ts +0 -38
  124. package/src/terms/samplelst.ts +0 -41
  125. package/src/terms/singleCellCellType.ts +0 -22
  126. package/src/terms/singleCellGeneExpression.ts +0 -28
  127. package/src/terms/snp.ts +0 -28
  128. package/src/terms/snps.ts +0 -110
  129. package/src/terms/term.ts +0 -184
  130. package/src/terms/tw.ts +0 -38
  131. package/src/terms/updated-types.ts +0 -9
  132. package/src/termsetting.ts +0 -197
  133. package/src/test/numeric.type.spec.ts +0 -275
  134. package/src/typedoc.js +0 -30
  135. package/src/vocab.ts +0 -37
@@ -1,57 +0,0 @@
1
- /**
2
- * for documentation only, to signify integer: not type-checked statically
3
- */
4
- type int = number
5
-
6
- /**
7
- * Information aboute the server build version and dates,
8
- * including the date when the server was last launched
9
- */
10
- export type VersionInfo = {
11
- pkgver: string
12
- codedate: string
13
- launchdate: string
14
- deps: {
15
- [pkgName: string]: {
16
- /** the version as found in node_modules/[package]/package.json */
17
- installed?: string
18
- /** the version as entered in the project's package.dependencies */
19
- entry?: string
20
- }
21
- }
22
- }
23
-
24
- type BuildByGenome = {
25
- [index: string]: GenomeBuildInfo
26
- }
27
-
28
- export type GenomeBuildInfo = {
29
- genedb: DbInfo
30
- termdbs?: {
31
- [index: string]: DbInfo
32
- }
33
- }
34
-
35
- type DbInfo = {
36
- buildDate: string // "unknown" or a Date-convertible string
37
- tables?: {
38
- [index: string]: int
39
- }
40
- }
41
-
42
- /**
43
- * Server status and data related to it's health
44
- */
45
- export type HealthCheckResponse = {
46
- status: 'ok' | 'error'
47
- genomes: BuildByGenome
48
- versionInfo: VersionInfo
49
- byDataset: {
50
- [dslabel: string]: any
51
- }
52
- auth?: {
53
- errors?: string[]
54
- }[]
55
- w?: number[]
56
- rs?: number
57
- }
@@ -1,37 +0,0 @@
1
- import type { FileORURL } from '../fileOrUrl.ts'
2
-
3
- export type BaseHicRequest = FileORURL & {
4
- /** Value relates to the 1st parameter of straw tool, which accepts 'observed', 'expected', 'oe', 'norm', and 'distance' */
5
- matrixType: 'observed' | 'expected' | 'oe' | 'log(oe)'
6
- /** Either a base pair or fragment resolution calculated from the array*/
7
- resolution: number
8
- /** Normalization method, an option read from the file or NONE */
9
- nmeth: string
10
- }
11
-
12
- export type HicdataRequest = BaseHicRequest & {
13
- /** Position of first locus, in the format of chr:start:stop */
14
- pos1: string
15
- /** Position of second locus, in the format of chr:start:stop */
16
- pos2: string // portal code must validate pos1 and pos2 values, to prevent xxx:456-321
17
- /** If is in fragment resolution */
18
- isfrag?: boolean
19
- /** Minimum value cutoff */
20
- mincutoff?: number
21
- }
22
-
23
- /** Item typed for documentation/explanation purposes*/
24
- export type Item = [
25
- /** position 1, x coordinate */
26
- number,
27
- /** position 2, y coordinate */
28
- number,
29
- /** inter-loci contact value */
30
- number
31
- ]
32
-
33
- export type HicdataResponse = {
34
- /** Error message to display on the client, if applicable */
35
- error?: string
36
- items: Item[]
37
- }
@@ -1,22 +0,0 @@
1
- import type { BaseHicRequest, Item } from './hicdata.ts'
2
-
3
- export type HicGenomeRequest = BaseHicRequest & {
4
- /** Entire chromosome list read from the file (see hicstate) */
5
- chrlst: string[]
6
- /** window location */
7
- embedder: string
8
- /** whether or not the file contains 'chr' for the chromosomes */
9
- nochr: boolean
10
- }
11
-
12
- export type HicGenomeResponse = {
13
- data: {
14
- /** First chromosome */
15
- lead: string
16
- /** Second chromosome */
17
- follow: string
18
- items: Item[]
19
- }[]
20
- /** Error message to display on the client, if applicable */
21
- error?: string
22
- }
@@ -1,45 +0,0 @@
1
- type HicstatRequestWithFile = {
2
- /** HiC 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 HicstatRequestWithUrl = {
9
- /** If url is provided, file should not be provided. Checked in validation type */
10
- file?: never
11
- /** Remote HiC file URL */
12
- url: string
13
- }
14
-
15
- export type HicstatRequest = HicstatRequestWithFile | HicstatRequestWithUrl
16
-
17
- /** Checks if a file or url is present before proceeding */
18
- type RequireFileOrUrl<T> = T extends HicstatRequestWithFile | HicstatRequestWithUrl
19
- ? T
20
- : { error: 'Either "file" or "url" must be provided' }
21
-
22
- export type HicstatRequestWithValidation = RequireFileOrUrl<HicstatRequest>
23
-
24
- export type HicstatResponse = {
25
- /** Version number pulled from the header. Only hic versions 7-9 are acceptable */
26
- version: 7 | 8 | 9
27
- /**genome identifer */
28
- 'Genome ID': string
29
- /** k:v of chrs and a position */
30
- Chromosomes: {
31
- /** Index of chr 1 through 22 */
32
- [index: number]: number
33
- All: number
34
- X: number
35
- Y: number
36
- M: number
37
- }
38
- /** Orders Chromosomes keys (see above) */
39
- chrorder: number[]
40
- /** bins for base pair resolutions */
41
- 'Base pair-delimited resolutions': number[]
42
- /** bins for fragment resolutions */
43
- 'Fragment-delimited resolutions': number[]
44
- normalization: string[]
45
- }
@@ -1 +0,0 @@
1
- export type * from './dzimages.ts'
@@ -1,15 +0,0 @@
1
- export type GetSampleWSImagesRequest = {
2
- genome: string
3
- dslabel: string
4
- sample_id: string
5
- wsimage: string
6
- }
7
-
8
- export type GetSampleWSImagesResponse = {
9
- sampleWSImages: string[]
10
- }
11
-
12
- export type WSImage = {
13
- filename: string
14
- metadata: string
15
- }
@@ -1,44 +0,0 @@
1
- export type DERequest = {
2
- /** Genome build name */
3
- genome: string
4
- /** dataset label */
5
- dslabel: string
6
- /* Object containing two arrays of RNA seq count for DE analysis */
7
- samplelst: any //{number[]; number[];}
8
- /** Relative cpm cutoff for filtering a gene compared to all samples and genes in dataset */
9
- min_count: number
10
- /** Minimum total read count required for each sample */
11
- min_total_count: number
12
- /** Storage_type for storing data. Will deprecate text files */
13
- storage_type: 'text' | 'HDF5'
14
- /** Method of DE used wilcoxon/edgeR */
15
- method?: string
16
- }
17
-
18
- export type ExpressionInput = {
19
- /** Case samples separated by , */
20
- case: string
21
- /** Control samples separated by , */
22
- control: string
23
- /** data_type instructs rust to carry out differential gene expression analysis */
24
- data_type: 'do_DE'
25
- /** File containing raw gene counts for DE analysis */
26
- input_file: string
27
- /** Relative cpm cutoff for filtering a gene compared to all samples and genes in dataset */
28
- min_count: number
29
- /** Minimum total read count required for each sample */
30
- min_total_count: number
31
- /** Type of storage file: HDF5 or text. Text will be deprecated in the future */
32
- storage_type: 'HDF5' | 'text'
33
- }
34
-
35
- export type DEResponse = {
36
- /** Array containing objects of each gene containing foldchange, gene name, gene symbol, original pvalue, adjusted pvalue */
37
- data: string
38
- /** Effective sample size for group 1 */
39
- sample_size1: number
40
- /** Effective sample size for group 2 */
41
- sample_size2: number
42
- /** Method of DE used wilcoxon/edgeR */
43
- method: string
44
- }
@@ -1,49 +0,0 @@
1
- export type BoxPlotRequest = {
2
- //TOOD: define request
3
- tw: any
4
- }
5
-
6
- export type BoxPlotResponse = {
7
- /** Absolute min value for all plots */
8
- absMin: number
9
- /** Absolute max value for all plots */
10
- absMax: number
11
- /** Longest label length for all plots */
12
- maxLabelLgth: number
13
- plots: BoxPlotEntry[]
14
- }
15
-
16
- type BoxPlotEntry = {
17
- boxplot: BoxPlotData
18
- /** Label to show */
19
- label: string
20
- // /** Number of samples */
21
- // plotValueCount: number
22
- /** TODO: Is this needed? */
23
- values: number[]
24
- /** Lowest min for the scale domain */
25
- min: number
26
- /** Highest max for the scale domain */
27
- max: number
28
- }
29
-
30
- type BoxPlotData = {
31
- /** Min/1st whisker value */
32
- w1: number
33
- /** Max/2nd whisker value */
34
- w2: number
35
- /** 5% */
36
- p05: number
37
- /** 25% */
38
- p25: number
39
- /** 50% */
40
- p50: number
41
- /** 75% */
42
- p75: number
43
- /** 95% */
44
- p95: number
45
- /** Interquartile region */
46
- iqr: number
47
- /** Outliers */
48
- out: { value: number }[]
49
- }
@@ -1,26 +0,0 @@
1
- import type { Filter } from '../filter.ts'
2
- import type { TermWrapper } from '../terms/tw.ts'
3
-
4
- export type getcategoriesRequest = {
5
- genome: string
6
- dslabel: string
7
- embedder: string
8
- /** termwrapper object */
9
- tw: TermWrapper
10
- filter?: Filter
11
- /** quick fix only for gdc */
12
- currentGeneNames?: string[]
13
- /** optional property added by mds3 tk, to limit to cases mutated in this region */
14
- rglst?: any
15
- }
16
-
17
- interface entries {
18
- samplecount: number
19
- key: string
20
- label: string
21
- }
22
-
23
- export type getcategoriesResponse = {
24
- lst: entries[]
25
- orderedLabels?: []
26
- }
@@ -1,86 +0,0 @@
1
- import { ErrorResponse } from './errorResponse.ts'
2
- import { Filter } from '../filter.ts'
3
- import { Term } from '../terms/term.ts'
4
- import { GeneExpressionTerm } from '../terms/geneExpression.ts'
5
- import { MetaboliteIntensityTerm } from '../terms/metaboliteIntensity.ts'
6
- import { NumericDictTerm } from '../terms/numeric.ts'
7
-
8
- export type Gene = {
9
- /** gene symbol, required */
10
- gene: string
11
- /** optionally, client may supply chr/start/stop; if missing, backend code may add them when processing native dataset */
12
- chr?: string
13
- start?: number
14
- stop?: number
15
- }
16
-
17
- type TermdbClusterRequestBase = {
18
- /** Genome id */
19
- genome: string
20
- /** Dataset label */
21
- dslabel: string
22
- /** cluster method */
23
- clusterMethod: string
24
- /** distance method */
25
- distanceMethod: string
26
- /** pp filter */
27
- filter?: Filter
28
- /** todo gdc filter */
29
- filter0?: any
30
- }
31
-
32
- export type TermdbClusterRequestGeneExpression = TermdbClusterRequestBase & {
33
- /** Data type */
34
- dataType: 'geneExpression'
35
- /** List of terms */
36
- terms: GeneExpressionTerm[]
37
- }
38
-
39
- export type TermdbClusterRequestMetabolite = TermdbClusterRequestBase & {
40
- /** Data type */
41
- dataType: 'metaboliteIntensity'
42
- /** List of terms */
43
- terms: MetaboliteIntensityTerm[]
44
- }
45
-
46
- export type TermdbClusterRequestNumericDictTerm = TermdbClusterRequestBase & {
47
- /** Data type */
48
- dataType: 'numericDictTerm'
49
- /** List of terms */
50
- terms: NumericDictTerm[]
51
- }
52
-
53
- export type TermdbClusterRequest =
54
- | TermdbClusterRequestGeneExpression
55
- | TermdbClusterRequestMetabolite
56
- | TermdbClusterRequestNumericDictTerm
57
-
58
- export type Hclust = {
59
- merge: { n1: number; n2: number }[]
60
- height: { height: number }[]
61
- order: { name: string }[]
62
- inputOrder: string[]
63
- }
64
- export type Clustering = {
65
- row: Hclust
66
- col: Hclust
67
- matrix: number[][]
68
- }
69
-
70
- // response with clustering result of multiple gene/rows
71
- export type ValidResponse = {
72
- /** */
73
- clustering: Clustering
74
- /** */
75
- byTermId: { [index: string]: any }
76
- /** */
77
- bySampleId: { [index: string]: any }
78
- }
79
-
80
- //response of just 1 gene, thus unable to do clustering
81
- export type SingletermResponse = {
82
- term: Term
83
- data: any
84
- }
85
-
86
- export type TermdbClusterResponse = ErrorResponse | ValidResponse | SingletermResponse
@@ -1,14 +0,0 @@
1
- export type TermdbGetSampleImagesRequest = {
2
- genome: string
3
- /** Ds label */
4
- dslabel: string
5
- sampleId: number
6
- }
7
-
8
- export type Image = {
9
- src: any
10
- }
11
-
12
- export type TermdbGetSampleImagesResponse = {
13
- images: Image[]
14
- }
@@ -1,21 +0,0 @@
1
- //import GdcFilter0 from './filter.gdc'
2
- import type { Term } from '../terms/term.ts'
3
- import type { Filter } from '../filter.ts'
4
-
5
- export type TermdbTopTermsByTypeRequest = {
6
- /** Ref genome */
7
- genome: string
8
- /** Ds label */
9
- dslabel: string
10
- /* Term type */
11
- type: string
12
- /** pp filter */
13
- filter?: Filter
14
- /** JSON, optional GDC cohort filter to restrict cases */
15
- filter0?: any //GdcFilter0
16
- }
17
-
18
- export type TermdbTopTermsByTypeResponse = {
19
- /** Array of gene names TODO may change element to objs */
20
- terms: Term[]
21
- }
@@ -1,31 +0,0 @@
1
- import type { Filter } from '../filter.ts'
2
- import type { TermWrapper } from '../terms/tw.ts'
3
- import type { ErrorResponse } from './errorResponse.ts'
4
-
5
- export type getdescrstatsRequest = {
6
- /** genome label in the serverconfig.json */
7
- genome: string
8
- /** dataset label for the given genome */
9
- dslabel: string
10
- embedder: string
11
- /** wrapper of a numeric term, q.mode can be any as getData() will always pull sample-level values for summarizing */
12
- tw: TermWrapper
13
- /** if true, the (violin) plot is in log scale and must exclude 0-values from the stat */
14
- logScale?: boolean
15
- /** optional pp filter */
16
- filter?: Filter
17
- /** optional gdc filter */
18
- filter0?: any
19
- }
20
-
21
- interface entries {
22
- id: string
23
- label: string
24
- value: number
25
- }
26
-
27
- type ValidResponse = {
28
- values: entries[]
29
- }
30
-
31
- export type getdescrstatsResponse = ValidResponse | ErrorResponse
@@ -1,21 +0,0 @@
1
- import type { Filter } from '../filter.ts'
2
-
3
- export type getnumericcategoriesRequest = {
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
- /** term id string */
10
- tid: string
11
- filter?: Filter
12
- }
13
-
14
- interface entries {
15
- value: number
16
- samplecount: number
17
- }
18
-
19
- export type getnumericcategoriesResponse = {
20
- lst: entries[]
21
- }
@@ -1,17 +0,0 @@
1
- import type { Filter } from '../filter.ts'
2
-
3
- export type getpercentileRequest = {
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
- getpercentile: number[]
10
- /** term id string */
11
- tid: string
12
- filter: Filter
13
- }
14
-
15
- export type getpercentileResponse = {
16
- values: number[]
17
- }
@@ -1,22 +0,0 @@
1
- export type getroottermRequest = {
2
- /** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
3
- genome: string
4
- /** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
5
- dslabel: string
6
- embedder: string
7
- default_rootterm: number
8
- cohortValues: string
9
- treeFilter: string
10
- }
11
-
12
- interface entries {
13
- name: string
14
- id: string
15
- isleaf: boolean
16
- included_types: string[]
17
- child_types: string[]
18
- }
19
-
20
- export type getroottermResponse = {
21
- lst: entries[]
22
- }
@@ -1,21 +0,0 @@
1
- export type gettermchildrenRequest = {
2
- /** a user-defined genome label in the serverconfig.json, hg38, hg19, mm10, etc */
3
- genome: string
4
- /** a user-defined dataset label in the serverconfig.json, such as ClinVar, SJLife, GDC, etc */
5
- dslabel: string
6
- embedder: string
7
- get_children: number
8
- tid: string
9
- }
10
-
11
- interface entries {
12
- name: string
13
- id: string
14
- isleaf: boolean
15
- included_types: string[]
16
- child_types: string[]
17
- }
18
-
19
- export type gettermchildrenResponse = {
20
- lst: entries[]
21
- }
@@ -1,18 +0,0 @@
1
- import type { ErrorResponse } from './errorResponse.ts'
2
-
3
- export type TermdbSingleSampleMutationRequest = {
4
- /** Genome id */
5
- genome: string
6
- /** Dataset label */
7
- dslabel: string
8
- /** sample id */
9
- sample: string
10
- }
11
- type ValidResponse = {
12
- /** List of mutation data points from this sample TODO change to type of M elements */
13
- mlst: object[]
14
- /** */
15
- dt2total?: { dt: number; total: number }[]
16
- }
17
-
18
- export type TermdbSingleSampleMutationResponse = ErrorResponse | ValidResponse
@@ -1,30 +0,0 @@
1
- import type { ErrorResponse } from './errorResponse.ts'
2
-
3
- export type TermdbSinglecellDEgenesRequest = {
4
- /** Genome id */
5
- genome: string
6
- /** Dataset label */
7
- dslabel: string
8
- /** Sample name
9
- for GDC the value is "seurat.analysis.tsv" file UUID rather than sample name. the file contains the analysis results for an experiment
10
- */
11
- sample: string
12
- /** column name to provide cell groups/clustering, for which DE genes are precomputed. */
13
- columnName: string
14
- /** User selected cell group/cluster, corresponds to columnName, for which DE genes will be returned to client */
15
- categoryName: string
16
- }
17
-
18
- export type HasDataResponse = {
19
- /** list of significant DE genes for the given category in the sample */
20
- genes: {
21
- /** gene name */
22
- name: string
23
- /** adjusted p-value */
24
- p_val_adj: number
25
- /** log foldchange */
26
- avg_log2FC: number
27
- }[]
28
- }
29
-
30
- export type TermdbSinglecellDEgenesResponse = ErrorResponse | HasDataResponse
@@ -1,58 +0,0 @@
1
- import { ErrorResponse } from './errorResponse.ts'
2
-
3
- export type Cell = {
4
- /** Cell id or barcode */
5
- cellId: string
6
- /** X coord of the cell */
7
- x: number
8
- /** Y coord of the cell */
9
- y: number
10
- /** Z coord of the cell, should be present for all cells and trigger 3d plot */
11
- z?: number
12
- /** The cell may have different classifications, e.g. by cell type, CNV, FUSION, etc. */
13
- category: string
14
- /** Gene expression data for this cell */
15
- geneExp?: number
16
- }
17
-
18
- export type Plot = {
19
- /** name of the plot */
20
- name: string
21
- /** List of cells with gene expression */
22
- expCells?: Cell[]
23
- /** List of cells with no gene expression, if no gene provided all cells will be here */
24
- noExpCells?: Cell[]
25
- /** Column name to color by, e.g Cell type, CNV, Fusion */
26
- colorBy: string
27
- colorColumns: string[]
28
- colorMap?: { [key: string]: string }
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
- /** Gene name to retrieve expression data for all cells of the given sample, and to overlay on maps */
42
- gene?: string
43
- }
44
-
45
- export type HasdataResponse = {
46
- /** List of plots from singlecell experiment of this sample */
47
- plots: Plot[]
48
-
49
- /** Terms used to annotate cells */
50
- //terms: Term[]
51
- }
52
-
53
- export type NodataResponse = {
54
- /** Flag to indicate no sc data for this sample */
55
- nodata: boolean
56
- }
57
-
58
- export type TermdbSinglecellDataResponse = NodataResponse | ErrorResponse | HasdataResponse