@sjcrh/proteinpaint-types 2.105.0 → 2.106.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.
@@ -21,7 +21,7 @@ var genesetEnrichmentPayload = {
21
21
  var validGenesetEnrichmentRequest = (input) => {
22
22
  const errors = [];
23
23
  const __is = (input2) => {
24
- const $io0 = (input3) => Array.isArray(input3.genes) && input3.genes.every((elem) => "string" === typeof elem) && (Array.isArray(input3.fold_change) && input3.fold_change.every((elem) => "number" === typeof elem)) && "boolean" === typeof input3.filter_non_coding_genes && "string" === typeof input3.genome && "string" === typeof input3.geneSetGroup && (void 0 === input3.geneset_name || "string" === typeof input3.geneset_name) && (void 0 === input3.pickle_file || "string" === typeof input3.pickle_file);
24
+ const $io0 = (input3) => Array.isArray(input3.genes) && input3.genes.every((elem) => "string" === typeof elem) && (Array.isArray(input3.fold_change) && input3.fold_change.every((elem) => "number" === typeof elem)) && "boolean" === typeof input3.filter_non_coding_genes && "string" === typeof input3.genome && "string" === typeof input3.geneSetGroup && (void 0 === input3.geneset_name || "string" === typeof input3.geneset_name) && (void 0 === input3.pickle_file || "string" === typeof input3.pickle_file) && (void 0 === input3.num_permutations || "number" === typeof input3.num_permutations);
25
25
  return "object" === typeof input2 && null !== input2 && $io0(input2);
26
26
  };
27
27
  if (false === __is(input)) {
@@ -71,6 +71,10 @@ var validGenesetEnrichmentRequest = (input) => {
71
71
  path: _path2 + ".pickle_file",
72
72
  expected: "(string | undefined)",
73
73
  value: input3.pickle_file
74
+ }), void 0 === input3.num_permutations || "number" === typeof input3.num_permutations || $report(_exceptionable2, {
75
+ path: _path2 + ".num_permutations",
76
+ expected: "(number | undefined)",
77
+ value: input3.num_permutations
74
78
  })].every((flag) => flag);
75
79
  return ("object" === typeof input2 && null !== input2 || $report(true, {
76
80
  path: _path + "",
@@ -2,7 +2,7 @@ import {
2
2
  genesetEnrichmentPayload,
3
3
  validGenesetEnrichmentRequest,
4
4
  validGenesetEnrichmentResponse
5
- } from "./chunk-IL33L6MY.js";
5
+ } from "./chunk-XILU2DZ4.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  genesetEnrichmentPayload,
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ import {
172
172
  genesetEnrichmentPayload,
173
173
  validGenesetEnrichmentRequest,
174
174
  validGenesetEnrichmentResponse
175
- } from "./chunk-IL33L6MY.js";
175
+ } from "./chunk-XILU2DZ4.js";
176
176
  import {
177
177
  genesetOverrepresentationPayload,
178
178
  validGenesetOverrepresentationRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.105.0",
3
+ "version": "2.106.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -15,6 +15,8 @@ export type GenesetEnrichmentRequest = {
15
15
  geneset_name?: string
16
16
  /** Pickle file to be queried for generating gsea image of a particular geneset */
17
17
  pickle_file?: string
18
+ /** Number of permutations to be carried out for GSEA analysis, this variable will become compulsory once GSEA becomes stateless */
19
+ num_permutations?: number
18
20
  }
19
21
 
20
22
  type pathway_attributes = {