@sjcrh/proteinpaint-types 2.182.1 → 2.183.1

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 +20 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.182.1",
3
+ "version": "2.183.1",
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
@@ -708,27 +708,33 @@ export type MetaboliteIntensityQueryNative = {
708
708
  export type MetaboliteIntensityQuery = MetaboliteIntensityQueryNative
709
709
 
710
710
  /** the proteomics query */
711
- type CohortConfig = {
712
- file: string
713
- filter?: Tvs[]
714
- ctlFilter?: Tvs[]
715
- overlayTerm?: BaseTerm
711
+ type ProteomeFilter = {
712
+ columnIdx: number
713
+ columnValue: string | number
716
714
  }
717
- type AssayWithCohorts = {
718
- cohorts: {
719
- [cohortName: string]: CohortConfig
720
- }
715
+
716
+ type ProteomeCohortConfig = {
717
+ cohortName: string
718
+ controlFilter: ProteomeFilter[]
719
+ caseFilter: ProteomeFilter[]
720
+ }
721
+
722
+ type ProteomeAssayConfig = {
723
+ columnIdx: number
724
+ columnValue: string | number
725
+ cohorts: ProteomeCohortConfig[]
721
726
  /** optional PTM type for PTM assay type */
722
727
  PTMType?: string
723
728
  /** optional specific mclass override for PTM assay type */
724
729
  mclassOverride?: Mclass
725
730
  }
726
- type AssayConfig = AssayWithCohorts
727
731
 
728
732
  export type ProteomeAbundanceQuery = {
733
+ /** database file path */
734
+ dbfile?: string
729
735
  /** document structure */
730
736
  assays: {
731
- [assayName: string]: AssayConfig
737
+ [assayName: string]: ProteomeAssayConfig
732
738
  }
733
739
  samples?: number[]
734
740
  /** _proteins,used to dynamically built cache of protein names to speed up search */
@@ -736,6 +742,8 @@ export type ProteomeAbundanceQuery = {
736
742
  get?: (param: any) => void
737
743
  find?: (param: string[]) => void
738
744
  bins?: { [index: string]: any }
745
+ /** set of control sample IDs returned from get() query */
746
+ controlSampleIds?: Set<string>
739
747
  }
740
748
 
741
749
  /** the geneExpression query
@@ -1058,10 +1066,7 @@ type Mds3Queries = {
1058
1066
  src: 'native'
1059
1067
  file: string
1060
1068
  }
1061
- proteome?: {
1062
- /** whole proteome abundance */
1063
- assays?: { [assayType: string]: AssayConfig }
1064
- }
1069
+ proteome?: ProteomeAbundanceQuery
1065
1070
  singleCell?: SingleCellQuery
1066
1071
  singleSampleGenomeQuantification?: SingleSampleGenomeQuantification
1067
1072
  singleSampleGbtk?: SingleSampleGbtk