@sjcrh/proteinpaint-types 2.177.0 → 2.178.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 (54) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-LHJGTOZJ.js → chunk-26UKKPK2.js} +1301 -594
  3. package/dist/{chunk-4SOVPEYQ.js → chunk-2XQJCZEO.js} +842 -243
  4. package/dist/{chunk-UQEAM7BH.js → chunk-2Y7WE3JU.js} +1301 -594
  5. package/dist/chunk-4DCPDZW4.js +143 -0
  6. package/dist/{chunk-5KF6Z3GL.js → chunk-CX2Y673E.js} +923 -329
  7. package/dist/chunk-CYQDO4FX.js +3191 -0
  8. package/dist/{chunk-W7UCAYSF.js → chunk-FQYNRDHB.js} +923 -329
  9. package/dist/chunk-FRXRNCDV.js +14 -0
  10. package/dist/{chunk-F4YCPOQV.js → chunk-GAYJUXNZ.js} +947 -353
  11. package/dist/{chunk-7WEVNKAM.js → chunk-HZEV7D5E.js} +1301 -594
  12. package/dist/{chunk-4ZMQ5CTL.js → chunk-NIEACU6R.js} +7 -31
  13. package/dist/{chunk-Q6MWNJ2V.js → chunk-NRV6MPRM.js} +3421 -1378
  14. package/dist/{chunk-44LN7YTE.js → chunk-PHRILOVX.js} +923 -329
  15. package/dist/{chunk-URHI6FFP.js → chunk-UFYKXOY2.js} +2233 -690
  16. package/dist/{chunk-63OD34W2.js → chunk-UWAVSKMD.js} +1301 -594
  17. package/dist/chunk-VBNF7BRI.js +3492 -0
  18. package/dist/{chunk-2DJFVQUQ.js → chunk-WXCXZRKP.js} +1305 -598
  19. package/dist/{chunk-7NKZVHIZ.js → chunk-YHKFJCXG.js} +1445 -496
  20. package/dist/correlationVolcano.js +1 -1
  21. package/dist/grin2.js +1 -1
  22. package/dist/index.js +79 -61
  23. package/dist/termdb.boxplot.js +1 -1
  24. package/dist/termdb.categories.js +1 -1
  25. package/dist/termdb.chat.js +3122 -5
  26. package/dist/termdb.chat2.js +13 -0
  27. package/dist/termdb.cluster.js +1 -1
  28. package/dist/termdb.descrstats.js +1 -1
  29. package/dist/termdb.diffMeth.js +11 -0
  30. package/dist/termdb.dmr.js +11 -0
  31. package/dist/termdb.numericcategories.js +1 -1
  32. package/dist/termdb.percentile.js +1 -1
  33. package/dist/termdb.singlecellData.js +1 -1
  34. package/dist/termdb.termsbyids.js +1 -1
  35. package/dist/termdb.topTermsByType.js +1 -1
  36. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  37. package/dist/termdb.violin.js +1 -1
  38. package/package.json +1 -1
  39. package/src/dataset.ts +55 -8
  40. package/src/index.ts +5 -1
  41. package/src/routes/grin2.ts +5 -11
  42. package/src/routes/{termdb.chat.ts → termdb.chat2.ts} +42 -15
  43. package/src/routes/termdb.cluster.ts +11 -0
  44. package/src/routes/termdb.diffMeth.ts +49 -0
  45. package/src/routes/termdb.dmr.ts +47 -0
  46. package/src/routes/termdb.singlecellData.ts +3 -1
  47. package/src/terms/dnaMethylation.ts +19 -0
  48. package/src/terms/numeric.ts +13 -2
  49. package/src/terms/singleCellCellType.ts +1 -1
  50. package/src/terms/singleCellGeneExpression.ts +25 -19
  51. package/src/terms/term.ts +1 -1
  52. package/src/terms/termCollection.ts +93 -21
  53. package/src/terms/wholeProteomeAbundance.ts +30 -0
  54. package/dist/chunk-WWE2SDCU.js +0 -494
@@ -0,0 +1,143 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-YNHC5SXO.js";
5
+
6
+ // dist/termdb.diffMeth.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/termdb.diffMeth.ts
10
+ var diffMethPayload = {
11
+ request: {
12
+ typeId: "DiffMethRequest"
13
+ },
14
+ response: {
15
+ typeId: "DiffMethResponse"
16
+ }
17
+ };
18
+
19
+ // dist/termdb.diffMeth.ts
20
+ var validDiffMethRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && (void 0 === input3.min_samples_per_group || "number" === typeof input3.min_samples_per_group) && true && true && (void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis);
24
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
25
+ };
26
+ if (false === __is(input)) {
27
+ const $report = import_typia.createValidate.report(errors);
28
+ ((input2, _path, _exceptionable = true) => {
29
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
30
+ path: _path2 + ".genome",
31
+ expected: "string",
32
+ value: input3.genome
33
+ }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
34
+ path: _path2 + ".dslabel",
35
+ expected: "string",
36
+ value: input3.dslabel
37
+ }), true, void 0 === input3.min_samples_per_group || "number" === typeof input3.min_samples_per_group || $report(_exceptionable2, {
38
+ path: _path2 + ".min_samples_per_group",
39
+ expected: "(number | undefined)",
40
+ value: input3.min_samples_per_group
41
+ }), true, true, void 0 === input3.preAnalysis || "boolean" === typeof input3.preAnalysis || $report(_exceptionable2, {
42
+ path: _path2 + ".preAnalysis",
43
+ expected: "(boolean | undefined)",
44
+ value: input3.preAnalysis
45
+ })].every((flag) => flag);
46
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
47
+ path: _path + "",
48
+ expected: "DiffMethRequest",
49
+ value: input2
50
+ })) && $vo0(input2, _path + "", true) || $report(true, {
51
+ path: _path + "",
52
+ expected: "DiffMethRequest",
53
+ value: input2
54
+ });
55
+ })(input, "$input", true);
56
+ }
57
+ const success = 0 === errors.length;
58
+ return {
59
+ success,
60
+ errors,
61
+ data: success ? input : void 0
62
+ };
63
+ };
64
+ var validDiffMethResponse = (input) => {
65
+ const errors = [];
66
+ const __is = (input2) => {
67
+ const $io0 = (input3) => Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && "number" === typeof input3.sample_size1 && "number" === typeof input3.sample_size2;
68
+ const $io1 = (input3) => "string" === typeof input3.promoter_id && "string" === typeof input3.gene_name && "number" === typeof input3.fold_change && "number" === typeof input3.original_p_value && "number" === typeof input3.adjusted_p_value;
69
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
70
+ };
71
+ if (false === __is(input)) {
72
+ const $report = import_typia.createValidate.report(errors);
73
+ ((input2, _path, _exceptionable = true) => {
74
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.data) || $report(_exceptionable2, {
75
+ path: _path2 + ".data",
76
+ expected: "Array<DiffMethDataEntry>",
77
+ value: input3.data
78
+ })) && input3.data.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
79
+ path: _path2 + ".data[" + _index1 + "]",
80
+ expected: "DiffMethDataEntry",
81
+ value: elem
82
+ })) && $vo1(elem, _path2 + ".data[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
83
+ path: _path2 + ".data[" + _index1 + "]",
84
+ expected: "DiffMethDataEntry",
85
+ value: elem
86
+ })).every((flag) => flag) || $report(_exceptionable2, {
87
+ path: _path2 + ".data",
88
+ expected: "Array<DiffMethDataEntry>",
89
+ value: input3.data
90
+ }), "number" === typeof input3.sample_size1 || $report(_exceptionable2, {
91
+ path: _path2 + ".sample_size1",
92
+ expected: "number",
93
+ value: input3.sample_size1
94
+ }), "number" === typeof input3.sample_size2 || $report(_exceptionable2, {
95
+ path: _path2 + ".sample_size2",
96
+ expected: "number",
97
+ value: input3.sample_size2
98
+ })].every((flag) => flag);
99
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.promoter_id || $report(_exceptionable2, {
100
+ path: _path2 + ".promoter_id",
101
+ expected: "string",
102
+ value: input3.promoter_id
103
+ }), "string" === typeof input3.gene_name || $report(_exceptionable2, {
104
+ path: _path2 + ".gene_name",
105
+ expected: "string",
106
+ value: input3.gene_name
107
+ }), "number" === typeof input3.fold_change || $report(_exceptionable2, {
108
+ path: _path2 + ".fold_change",
109
+ expected: "number",
110
+ value: input3.fold_change
111
+ }), "number" === typeof input3.original_p_value || $report(_exceptionable2, {
112
+ path: _path2 + ".original_p_value",
113
+ expected: "number",
114
+ value: input3.original_p_value
115
+ }), "number" === typeof input3.adjusted_p_value || $report(_exceptionable2, {
116
+ path: _path2 + ".adjusted_p_value",
117
+ expected: "number",
118
+ value: input3.adjusted_p_value
119
+ })].every((flag) => flag);
120
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
121
+ path: _path + "",
122
+ expected: "DiffMethResponse",
123
+ value: input2
124
+ })) && $vo0(input2, _path + "", true) || $report(true, {
125
+ path: _path + "",
126
+ expected: "DiffMethResponse",
127
+ value: input2
128
+ });
129
+ })(input, "$input", true);
130
+ }
131
+ const success = 0 === errors.length;
132
+ return {
133
+ success,
134
+ errors,
135
+ data: success ? input : void 0
136
+ };
137
+ };
138
+
139
+ export {
140
+ diffMethPayload,
141
+ validDiffMethRequest,
142
+ validDiffMethResponse
143
+ };