@sjcrh/proteinpaint-types 2.182.0 → 2.183.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 (38) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-2QTCQFYE.js → chunk-2NINVZOB.js} +47 -11
  3. package/dist/{chunk-KNDCWQJD.js → chunk-2UNWSR7Y.js} +15 -3
  4. package/dist/{chunk-UBAJYDGK.js → chunk-734AZGID.js} +15 -3
  5. package/dist/{chunk-J55IQXT7.js → chunk-7ZYM6FC6.js} +15 -3
  6. package/dist/{chunk-UYKWZWCU.js → chunk-JYTPHVO2.js} +47 -11
  7. package/dist/{chunk-DDMUMMOL.js → chunk-LDLZU2QY.js} +15 -3
  8. package/dist/{chunk-C5ECCXOT.js → chunk-NF6RKK5E.js} +15 -3
  9. package/dist/{chunk-K6W2WEPW.js → chunk-NO3ZZD3L.js} +15 -3
  10. package/dist/{chunk-ZRTB7SRA.js → chunk-ONNT3XV7.js} +32 -8
  11. package/dist/{chunk-VUNM6QTX.js → chunk-QMEKJW2A.js} +15 -3
  12. package/dist/{chunk-URYAC364.js → chunk-R7BQWUIF.js} +15 -3
  13. package/dist/{chunk-ZKO7LMCC.js → chunk-TUM3OZ7K.js} +15 -3
  14. package/dist/{chunk-3DA4MJ2U.js → chunk-URG6BNUU.js} +15 -3
  15. package/dist/chunk-W3F3CLYP.js +61 -0
  16. package/dist/{chunk-45VA4Y6L.js → chunk-YDJG6VT4.js} +15 -3
  17. package/dist/correlationVolcano.js +1 -1
  18. package/dist/grin2.js +1 -1
  19. package/dist/index.js +31 -23
  20. package/dist/termdb.categories.js +1 -1
  21. package/dist/termdb.chat.js +15 -3
  22. package/dist/termdb.chat2.js +1 -1
  23. package/dist/termdb.cluster.js +1 -1
  24. package/dist/termdb.descrstats.js +1 -1
  25. package/dist/termdb.dmr.js +1 -1
  26. package/dist/termdb.numericcategories.js +1 -1
  27. package/dist/termdb.percentile.js +1 -1
  28. package/dist/termdb.proteome.js +11 -0
  29. package/dist/termdb.termsbyids.js +1 -1
  30. package/dist/termdb.topTermsByType.js +1 -1
  31. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  32. package/dist/termdb.violinBox.js +1 -1
  33. package/package.json +1 -1
  34. package/src/dataset.ts +28 -17
  35. package/src/index.ts +1 -0
  36. package/src/routes/termdb.proteome.ts +13 -0
  37. package/src/terms/dnaMethylation.ts +12 -3
  38. package/src/terms/termCollection.ts +7 -1
package/src/index.ts CHANGED
@@ -50,6 +50,7 @@ export * from './routes/termdb.dmr.ts'
50
50
  export * from './routes/termdb.isoformAvailability.ts'
51
51
  export * from './routes/termdb.numericcategories.ts'
52
52
  export * from './routes/termdb.percentile.ts'
53
+ export * from './routes/termdb.proteome.ts'
53
54
  export * from './routes/termdb.runChart.ts'
54
55
  export * from './routes/termdb.rootterm.ts'
55
56
  export * from './routes/termdb.termchildren.ts'
@@ -0,0 +1,13 @@
1
+ import type { RoutePayload } from './routeApi.js'
2
+
3
+ export type TermdbProteomeRequest = any
4
+ export type TermdbProteomeResponse = any
5
+
6
+ export const termdbProteomePayload: RoutePayload = {
7
+ request: {
8
+ typeId: 'TermdbProteomeRequest'
9
+ },
10
+ response: {
11
+ typeId: 'TermdbProteomeResponse'
12
+ }
13
+ }
@@ -3,16 +3,25 @@ import type { NumericBaseTerm, NumericQ, PresetNumericBins, NumTW, RawNumTW } fr
3
3
  export type DnaMethylationQ = NumericQ & { dt?: number }
4
4
 
5
5
  export type DnaMethylationTerm = NumericBaseTerm & {
6
- /** term.id: plan to be concatenated string value "chr:start-stop" */
7
- /** term.name: can be user-assigned */
8
6
  type: 'dnaMethylation'
7
+ /** concatenated string value "chr:start-stop" */
8
+ id?: string
9
9
  chr: string
10
10
  start: number
11
11
  stop: number
12
+ /** Type used to categorize the genomic feature */
13
+ genomicFeatureType: 'gene' | 'promoter' | 'region' | 'enhancer'
12
14
  bins?: PresetNumericBins
13
15
  }
14
16
 
15
- export type RawDnaMethylationTerm = DnaMethylationTerm & { name?: string }
17
+ export type RawDnaMethylationTerm = DnaMethylationTerm & {
18
+ /** Name of the genomic feature, e.g., gene name or promoter id/name, etc.
19
+ * Different than .name, which includes the genomic coordinates and unit,
20
+ * and is used for display purposes.*/
21
+ featureName?: string
22
+ name?: string
23
+ unit?: string
24
+ }
16
25
 
17
26
  export type DnaMethylationTW = NumTW & { term: DnaMethylationTerm }
18
27
 
@@ -10,7 +10,7 @@ type BaseTermCollection = BaseTerm & {
10
10
  type: 'termCollection'
11
11
  /** list of term.ids that are available in this collection. this is used in request payload and server side */
12
12
  termIds?: string[]
13
- /** list of term objs corresponding to termIds[].
13
+ /** list of term objs corresponding to termIds[].
14
14
  this is generated on server init, and sent to client, so client has easy access to show name of every term */
15
15
  termlst: BaseTerm[]
16
16
  /** TODO purpose */
@@ -20,6 +20,10 @@ type BaseTermCollection = BaseTerm & {
20
20
  [prop: string]: any
21
21
  }
22
22
  }
23
+ /** When true, member terms are non-dictionary terms (e.g. isoformExpression).
24
+ * getData() expands them into individual tws for existing handlers, then
25
+ * reconstitutes the grouped shape after data is returned. */
26
+ isCustom?: boolean
23
27
  }
24
28
 
25
29
  export type NumericTermCollection = BaseTermCollection & {
@@ -60,6 +64,7 @@ export type RawNumericTermCollection = {
60
64
  }
61
65
  }
62
66
  numerators?: string[]
67
+ isCustom?: boolean
63
68
  }
64
69
 
65
70
  /** Pre-fill shape for a categorical termCollection (memberType set by TermCollection.fill()) */
@@ -75,6 +80,7 @@ export type RawCategoricalTermCollection = {
75
80
  }
76
81
  }
77
82
  categoryKeys?: CategoryKey[]
83
+ isCustom?: boolean
78
84
  }
79
85
 
80
86
  export type RawTermCollection = RawNumericTermCollection | RawCategoricalTermCollection