@sjcrh/proteinpaint-types 2.129.6 → 2.131.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 (32) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-KHM52S5N.js → chunk-2XROHKXU.js} +25 -5
  3. package/dist/{chunk-PX7P2A6A.js → chunk-3VVALC2P.js} +65 -13
  4. package/dist/{chunk-24RS7HFO.js → chunk-447OFOQM.js} +65 -13
  5. package/dist/{chunk-WSL4JPUP.js → chunk-7QZTJ7A4.js} +25 -5
  6. package/dist/{chunk-Y5BVEGR2.js → chunk-7RY7HC24.js} +85 -17
  7. package/dist/{chunk-VZMNH6SN.js → chunk-G36XAK7Y.js} +4 -3
  8. package/dist/{chunk-WK4CKVHY.js → chunk-HYSQJBXK.js} +25 -5
  9. package/dist/{chunk-6C4DMGK3.js → chunk-J7ODYX6N.js} +25 -5
  10. package/dist/{chunk-BMHL5ZZJ.js → chunk-MBQT6GOO.js} +100 -20
  11. package/dist/{chunk-CI6OEJNH.js → chunk-ODP5ODIV.js} +65 -13
  12. package/dist/{chunk-UXXLPWL2.js → chunk-QXF3NCJ4.js} +65 -13
  13. package/dist/{chunk-WHO7HCNU.js → chunk-UL54XEPY.js} +25 -5
  14. package/dist/{chunk-RP6RBKKL.js → chunk-UMGJNQ2O.js} +65 -13
  15. package/dist/correlationVolcano.js +1 -1
  16. package/dist/index.js +13 -13
  17. package/dist/termdb.boxplot.js +1 -1
  18. package/dist/termdb.categories.js +1 -1
  19. package/dist/termdb.cluster.js +1 -1
  20. package/dist/termdb.descrstats.js +1 -1
  21. package/dist/termdb.numericcategories.js +1 -1
  22. package/dist/termdb.percentile.js +1 -1
  23. package/dist/termdb.singleSampleMutation.js +1 -1
  24. package/dist/termdb.termsbyids.js +1 -1
  25. package/dist/termdb.topTermsByType.js +1 -1
  26. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  27. package/dist/termdb.violin.js +1 -1
  28. package/package.json +1 -1
  29. package/src/dataset.ts +12 -4
  30. package/src/routes/termdb.singleSampleMutation.ts +2 -2
  31. package/src/termdb.matrix.ts +9 -0
  32. package/src/terms/term.ts +3 -0
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-6C4DMGK3.js";
5
+ } from "./chunk-J7ODYX6N.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  validViolinRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.129.6",
3
+ "version": "2.131.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -549,8 +549,16 @@ configs for types of cnv data
549
549
  important: presence of filtering properties indiate the type of cnv quantification
550
550
  and will trigger rendering of ui controls
551
551
  */
552
- type CnvSegment = {
553
- /** ds supplied ordynamically added getter */
552
+ type CnvSegmentQuery = {
553
+ /** ds supplied or dynamically added getter
554
+ todo properly type input/output
555
+ returns:
556
+ {
557
+ cnvs:[]
558
+ { chr, start, stop, value?, class, samples[], occurrence=1, ssm_id }
559
+ cnvMsg:string
560
+ }
561
+ */
554
562
  get?: (q: any) => any
555
563
  /** either file or get is required. file is bgzipped with columns:
556
564
  1. chr
@@ -633,7 +641,7 @@ type CnvSegment = {
633
641
  no longer used!!
634
642
  file content is a probe-by-sample matrix, values are signals
635
643
  for a given region, the median signal from probes in the region is used to make a gain/loss call for each sample
636
- this is alternative to CnvSegment
644
+ this is alternative to CnvSegmentQuery
637
645
 
638
646
  type Probe2Cnv = {
639
647
  file: string
@@ -901,7 +909,7 @@ type Mds3Queries = {
901
909
  gbRestrictMode?: 'protein' | 'genomic'
902
910
  snvindel?: SnvIndelQuery
903
911
  svfusion?: SvFusion
904
- cnv?: CnvSegment
912
+ cnv?: CnvSegmentQuery
905
913
  trackLst?: TrackLst
906
914
  ld?: LdQuery
907
915
  defaultCoord?: string
@@ -6,8 +6,8 @@ export type TermdbSingleSampleMutationRequest = {
6
6
  genome: string
7
7
  /** Dataset label */
8
8
  dslabel: string
9
- /** sample id */
10
- sample: 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
11
  }
12
12
  type ValidResponse = {
13
13
  /** List of mutation data points from this sample TODO change to type of M elements */
@@ -17,6 +17,12 @@ type SampleEntry = {
17
17
  }
18
18
  }
19
19
 
20
+ type CategoryEntry = {
21
+ key: string
22
+ label: string
23
+ samplecount: number
24
+ }
25
+
20
26
  export type ValidGetDataResponse = {
21
27
  samples: {
22
28
  [index: string | number]: SampleEntry
@@ -33,6 +39,9 @@ export type ValidGetDataResponse = {
33
39
  bins?: any
34
40
  /** CTE.events. These info are not available in term object and is computed during run time. */
35
41
  events?: any
42
+ /** Categories of term. Only computed for categorical terms that
43
+ have an empty term.values{}. */
44
+ categories?: CategoryEntry[]
36
45
  }
37
46
  >
38
47
  /** metadata about samples (e.g. print names). avoid duplicating such in sample data elements (e.g. mutations)
package/src/terms/term.ts CHANGED
@@ -105,6 +105,9 @@ export type BaseTerm = {
105
105
  included_types?: string[]
106
106
  isleaf?: boolean
107
107
  values?: TermValues
108
+ /** Do not build .values{} when building termdb. Used for
109
+ making categorical term with empty .values{} in TermdbTest */
110
+ skipValuesBuild?: boolean
108
111
  }
109
112
 
110
113
  export type Term = BaseTerm & (NumericTerm | CategoricalTerm | ConditionTerm | SampleLstTerm | SnpsTerm | GvTerm)