@sjcrh/proteinpaint-types 2.100.0 → 2.101.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.
@@ -73,7 +73,7 @@ var validBoxPlotRequest = (input) => {
73
73
  const errors = [];
74
74
  const __is = (input2) => {
75
75
  const $join = import_typia.createValidate.join;
76
- const $io0 = (input3) => "object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw) && "string" === typeof input3.genome && "string" === typeof input3.dslabel && "boolean" === typeof input3.orderByMedian && (void 0 === input3.overlayTw || "object" === typeof input3.overlayTw && null !== input3.overlayTw && $iu6(input3.overlayTw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io11(input3.filter)) && true;
76
+ const $io0 = (input3) => "object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw) && "string" === typeof input3.genome && "string" === typeof input3.dslabel && "boolean" === typeof input3.isLogScale && "boolean" === typeof input3.orderByMedian && (void 0 === input3.overlayTw || "object" === typeof input3.overlayTw && null !== input3.overlayTw && $iu6(input3.overlayTw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io11(input3.filter)) && true;
77
77
  const $io1 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && "string" === typeof input3.$id && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && ("CatTWValues" === input3.type || "CatTWPredefinedGS" === input3.type || "CatTWCustomGS" === input3.type) && ("object" === typeof input3.q && null !== input3.q && $iu7(input3.q)) && ("object" === typeof input3.term && null !== input3.term && $io13(input3.term));
78
78
  const $io2 = (input3) => Object.keys(input3).every((key) => {
79
79
  const value = input3[key];
@@ -384,6 +384,10 @@ var validBoxPlotRequest = (input) => {
384
384
  path: _path2 + ".dslabel",
385
385
  expected: "string",
386
386
  value: input3.dslabel
387
+ }), "boolean" === typeof input3.isLogScale || $report(_exceptionable2, {
388
+ path: _path2 + ".isLogScale",
389
+ expected: "boolean",
390
+ value: input3.isLogScale
387
391
  }), "boolean" === typeof input3.orderByMedian || $report(_exceptionable2, {
388
392
  path: _path2 + ".orderByMedian",
389
393
  expected: "boolean",
package/dist/index.js CHANGED
@@ -87,7 +87,7 @@ import {
87
87
  boxplotPayload,
88
88
  validBoxPlotRequest,
89
89
  validBoxPlotResponse
90
- } from "./chunk-MPWRZLLD.js";
90
+ } from "./chunk-VSDZI6M3.js";
91
91
  import {
92
92
  termdbCategoriesPayload,
93
93
  validCategoriesRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-MPWRZLLD.js";
5
+ } from "./chunk-VSDZI6M3.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  boxplotPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.100.0",
3
+ "version": "2.101.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
@@ -208,14 +208,15 @@ type VariantFilter = {
208
208
 
209
209
  /** one set of AC and AN info fields to retrieve data for this population */
210
210
  type PopulationINFOset = {
211
- /** optional name for identifying this set, when the population is ancestry-stratified and a population has multiple sets */
211
+ /** optional term id for retrieving admix coefficient for an ancestry corresponding to this "PopulationINFOset" entry
212
+ for every sample carrying a variant.
213
+ this is required when sets[].length>1
214
+ this should not be set when sets[].length=1 */
212
215
  key?: string
213
216
  /** required info field */
214
217
  infokey_AC: string
215
218
  /** required info field */
216
219
  infokey_AN: string
217
- /** Optional */
218
- termfilter_value?: string
219
220
  }
220
221
 
221
222
  /* define method to retrieve allele AC/AN in a population, by using bcf INFO fields; population could be ancestry-stratified
@@ -237,8 +238,6 @@ type Population = {
237
238
  allowto_adjust_race?: boolean
238
239
  /** when above is true, this flag is flip switch for this adjustion */
239
240
  adjust_race?: boolean
240
- /** optional term id used for race adjusting, must correspond to a term in dataset db */
241
- termfilter?: string
242
241
  /** if AC/AN of the population is ancestry-stratified, will be multiple elements of this array; otherwise just one */
243
242
  sets: PopulationINFOset[]
244
243
  }
@@ -9,6 +9,8 @@ export type BoxPlotRequest = {
9
9
  tw: TermWrapper
10
10
  genome: string
11
11
  dslabel: string
12
+ /** if true, only return positive values */
13
+ isLogScale: boolean
12
14
  /** sort plots by median value */
13
15
  orderByMedian: boolean
14
16
  /** term2 */