@sjcrh/proteinpaint-types 2.129.6 → 2.130.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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/dataset.ts +12 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.129.6",
3
+ "version": "2.130.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