@sjcrh/proteinpaint-types 2.79.7-1 → 2.80.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.79.7-1",
3
+ "version": "2.80.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
@@ -690,6 +690,9 @@ type SelectCohortEntry = {
690
690
  values: SelectCohortValuesEntry[]
691
691
  description?: string
692
692
  asterisk?: string
693
+ //The profile has clearOnChange. The terms used in the plots are not always the same for the profile.
694
+ //Therefore when switching cohorts, it is necessary to delete the plots opened and the global filter
695
+ clearOnChange?: { [index: string]: boolean }
693
696
  }
694
697
 
695
698
  type MissingAccess = {
@@ -939,9 +942,8 @@ type Termdb = {
939
942
  dataDownloadCatch?: DataDownloadCatch
940
943
  helpPages?: URLEntry[]
941
944
  multipleTestingCorrection?: MultipleTestingCorrection
942
- /** regression settings for neuro-oncology portals:
945
+ /** regression settings for neuro-oncology datasets:
943
946
  - no interaction terms
944
- - report event counts of cox coefficients
945
947
  - hide type III stats and miscellaneous statistical tests */
946
948
  neuroOncRegression?: boolean
947
949
  urlTemplates?: {
@@ -990,21 +992,6 @@ type Termdb = {
990
992
  /** in development!
991
993
  * Supports the About tab in mass UI
992
994
  */
993
- about?: {
994
- /** Customization for the tab */
995
- tab?: {
996
- /** show in a specific order of tabs */
997
- order?: number
998
- /** label appearing in the top row in upper case */
999
- topLabel?: string
1000
- /** biggest label appearing in the middle row in upper case */
1001
- midLabel?: string
1002
- /** label appearing in the bottom row*/
1003
- btmLabel?: string
1004
- }
1005
- /** html code */
1006
- html: string
1007
- }
1008
995
  hasSampleAncestry?: boolean
1009
996
  sampleTypes?: SampleType[]
1010
997
 
@@ -1086,20 +1073,7 @@ type AssayAvailability = {
1086
1073
 
1087
1074
  //Shared with genome.ts
1088
1075
  export type Cohort = {
1089
- hideGroupsTab?: boolean
1090
- tabs?: { [index: string]: string } //Customizes tab top label
1091
- /** customize the default chart to open on mass ui when there's no charts. if missing it opens dictionary ui */
1092
- defaultChartType?: string
1093
1076
  allowedChartTypes?: string[]
1094
- hiddenChartTypes?: string[]
1095
- renamedChartTypes?: { singleCellPlot?: string; sampleScatter?: string }
1096
- mutationset?: MutationSet[]
1097
- db: FileObj
1098
- termdb: Termdb
1099
- scatterplots?: Scatterplots
1100
- matrixplots?: MatrixPlots
1101
- /** optional title of this ds, if missing use ds.label. shown on mass nav header. use blank string to not to show a label*/
1102
- title?: Title
1103
1077
  cumburden?: {
1104
1078
  files: {
1105
1079
  fit: string
@@ -1107,6 +1081,43 @@ export type Cohort = {
1107
1081
  sample: string
1108
1082
  }
1109
1083
  }
1084
+ db: FileObj
1085
+ /** customize the default chart to open on mass ui when there's no charts. if missing it opens dictionary ui */
1086
+ defaultChartType?: string
1087
+ hiddenChartTypes?: string[]
1088
+ massNav?: MassNav
1089
+ matrixplots?: MatrixPlots
1090
+ mutationset?: MutationSet[]
1091
+ renamedChartTypes?: { singleCellPlot?: string; sampleScatter?: string }
1092
+ scatterplots?: Scatterplots
1093
+ termdb: Termdb
1094
+ }
1095
+
1096
+ /** Customizations specific to the mass nav component */
1097
+ type MassNav = {
1098
+ /** optional title of this ds, if missing use ds.label. shown on mass nav header.
1099
+ * use blank string to not to show a label*/
1100
+ title?: Title
1101
+ /** Customization for the tabs*/
1102
+ tabs?: {
1103
+ /** about, charts, groups, and fitler */
1104
+ [index: string]: {
1105
+ /** show in a specific order of tabs */
1106
+ order?: number
1107
+ /** label appearing in the top row in upper case */
1108
+ top?: string
1109
+ /** biggest label appearing in the middle row in upper case */
1110
+ mid?: string
1111
+ /** label appearing in the bottom row*/
1112
+ btm?: string
1113
+ /** if true, does not show the tab */
1114
+ hide?: boolean
1115
+ /** html code, specifically for the about tab
1116
+ * maybe used for other tabs as well.
1117
+ */
1118
+ html?: string
1119
+ }
1120
+ }
1110
1121
  }
1111
1122
 
1112
1123
  type Title = {
@@ -43,6 +43,10 @@ export type NoTermPromptOptsEntry = {
43
43
  text?: string
44
44
  html?: string
45
45
  q?: Q
46
+ /** whether or not opt is invalid */
47
+ invalid?: boolean
48
+ /** message displayed when opt is invalid */
49
+ invalidMsg?: string
46
50
  }
47
51
 
48
52
  type NumericContEditOptsEntry = {