@nfdi4plants/arctrl 1.0.0-alpha9 → 1.0.0-beta.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 (76) hide show
  1. package/ARC.js +5 -6
  2. package/ISA/ISA/ArcTypes/ArcTables.js +275 -271
  3. package/ISA/ISA/ArcTypes/ArcTypes.js +29 -313
  4. package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +15 -13
  5. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
  6. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +4 -4
  7. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +6 -6
  8. package/ISA/ISA.Spreadsheet/ArcAssay.js +6 -9
  9. package/ISA/ISA.Spreadsheet/ArcInvestigation.js +4 -4
  10. package/ISA/ISA.Spreadsheet/ArcStudy.js +5 -5
  11. package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +9 -9
  12. package/README.md +3 -0
  13. package/Templates/Template.Json.js +5 -2
  14. package/Templates/Template.Spreadsheet.js +23 -7
  15. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Cells/FsCell.fs +85 -36
  16. package/fable_modules/FsSpreadsheet.5.0.0/Cells/FsCell.fs.js +272 -0
  17. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/CellBuilder.fs +1 -0
  18. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/CellBuilder.fs.js +18 -18
  19. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Transform.fs +1 -1
  20. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Transform.fs.js +2 -1
  21. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Types.fs +1 -1
  22. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Types.fs.js +4 -4
  23. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsColumn.fs +3 -1
  24. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsRow.fs +2 -0
  25. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorksheet.fs +10 -1
  26. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorksheet.fs.js +5 -0
  27. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/SheetBuilder.fs +4 -4
  28. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/SheetBuilder.fs.js +3 -3
  29. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTable.fs +20 -4
  30. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTable.fs.js +26 -6
  31. package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
  32. package/fable_modules/project_cracked.json +1 -1
  33. package/package.json +1 -1
  34. package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +0 -240
  35. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Cells/FsCellsCollection.fs +0 -0
  36. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Cells/FsCellsCollection.fs.js +0 -0
  37. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/ColumnBuilder.fs +0 -0
  38. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/ColumnBuilder.fs.js +0 -0
  39. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/DSL.fs +0 -0
  40. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/DSL.fs.js +0 -0
  41. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Expression.fs +0 -0
  42. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Expression.fs.js +0 -0
  43. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Operators.fs +0 -0
  44. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Operators.fs.js +0 -0
  45. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/RowBuilder.fs +0 -0
  46. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/RowBuilder.fs.js +0 -0
  47. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/SheetBuilder.fs +0 -0
  48. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/SheetBuilder.fs.js +0 -0
  49. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/TableBuilder.fs +0 -0
  50. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/TableBuilder.fs.js +0 -0
  51. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/WorkbookBuilder.fs +0 -0
  52. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/WorkbookBuilder.fs.js +0 -0
  53. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsAddress.fs +0 -0
  54. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsAddress.fs.js +0 -0
  55. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsColumn.fs.js +0 -0
  56. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsRow.fs.js +0 -0
  57. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsSpreadsheet.fableproj +0 -0
  58. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorkbook.fs +0 -0
  59. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorkbook.fs.js +0 -0
  60. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRange.fs +0 -0
  61. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRange.fs.js +0 -0
  62. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeAddress.fs +0 -0
  63. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeAddress.fs.js +0 -0
  64. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeBase.fs +0 -0
  65. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeBase.fs.js +0 -0
  66. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeColumn.fs +0 -0
  67. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeColumn.fs.js +0 -0
  68. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeRow.fs +0 -0
  69. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeRow.fs.js +0 -0
  70. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableField.fs +0 -0
  71. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableField.fs.js +0 -0
  72. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableRow.fs +0 -0
  73. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableRow.fs.js +0 -0
  74. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  75. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
  76. /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
@@ -1,5 +1,4 @@
1
1
  import { map as map_1, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.1.4/Option.js";
2
- import { ArcTablesAux_applyIOMap, ArcTablesAux_getIOMap, ArcTables_updateReferenceTablesBySheets_Z2EE88E97, ArcTables_fromProcesses_134EBDED, ArcTables__get_Tables, ArcTables__GetProcesses, ArcTables__GetRow_Z18115A39, ArcTables__GetRowAt_Z37302880, ArcTables__UpdateRow_1BFE2CFB, ArcTables__UpdateRowAt_1CF7B5DC, ArcTables__RemoveRow_Z18115A39, ArcTables__RemoveRowAt_Z37302880, ArcTables__AddRow_Z16315DE5, ArcTables__AddRowAt_Z12CDB784, ArcTables__GetColumn_Z18115A39, ArcTables__GetColumnAt_Z37302880, ArcTables__UpdateColumn_Z6083042A, ArcTables__UpdateColumnAt_21300791, ArcTables__RemoveColumn_Z18115A39, ArcTables__RemoveColumnAt_Z37302880, ArcTables__AddColumn_1FF50D3C, ArcTables__AddColumnAt_6A9784DB, ArcTables__RenameTable_Z384F8060, ArcTables__RenameTableAt_Z176EF219, ArcTables__MapTable_27DD7B1B, ArcTables__MapTableAt_8FC095C, ArcTables__RemoveTable_Z721C83C5, ArcTables__RemoveTableAt_Z524259A4, ArcTables__SetTable_51766571, ArcTables__SetTableAt_7E571736, ArcTables__UpdateTable_51766571, ArcTables__UpdateTableAt_7E571736, ArcTables__GetTable_Z721C83C5, ArcTables__GetTableAt_Z524259A4, ArcTables__InitTables_7B28792B, ArcTables__InitTable_3B406CA4, ArcTables__AddTables_Z2D453886, ArcTables__AddTable_EC12B15, ArcTables__get_TableNames, ArcTables_$ctor_Z18C2F36D, ArcTables__get_Count } from "./ArcTables.js";
3
2
  import { concat, collect, append as append_4, tryFind, removeAt, tryFindIndex, item, map as map_2, delay, toList, fold, length, forAll, contains, filter, toArray } from "../../../fable_modules/fable-library.4.1.4/Seq.js";
4
3
  import { defaultOf, safeHash, equals, disposeSafe, getEnumerator, stringHash } from "../../../fable_modules/fable-library.4.1.4/Util.js";
5
4
  import { addRangeInPlace, tryFind as tryFind_1, removeInPlace, equalsWith, append as append_3, contains as contains_1, map } from "../../../fable_modules/fable-library.4.1.4/Array.js";
@@ -9,6 +8,7 @@ import { create, match } from "../../../fable_modules/fable-library.4.1.4/RegExp
9
8
  import { OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
10
9
  import { Value_fromString_Z721C83C5, Value__get_Text } from "../JsonTypes/Value.js";
11
10
  import { AnnotationValue } from "../JsonTypes/AnnotationValue.js";
11
+ import { ArcTablesAux_applyIOMap, ArcTablesAux_getIOMap, ArcTables_$reflection, ArcTables } from "./ArcTables.js";
12
12
  import { AssayMaterials_get_empty, AssayMaterials_create_Z253F0553 } from "../JsonTypes/AssayMaterials.js";
13
13
  import { HashCodes_boxHashOption, HashCodes_boxHashArray, Option_fromValueWithDefault } from "../Helper.js";
14
14
  import { unzip, ofSeq, map as map_3, toArray as toArray_1, ofArray, empty } from "../../../fable_modules/fable-library.4.1.4/List.js";
@@ -22,27 +22,26 @@ import { Study_create_Z2D28E954 } from "../JsonTypes/Study.js";
22
22
  import { Investigation_create_4AD66BBE } from "../JsonTypes/Investigation.js";
23
23
  import { FSharpRef } from "../../../fable_modules/fable-library.4.1.4/Types.js";
24
24
 
25
- export class ArcAssay {
25
+ export class ArcAssay extends ArcTables {
26
26
  constructor(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
27
- const tables_1 = defaultArg(tables, []);
27
+ super(defaultArg(tables, []));
28
28
  const performers_1 = defaultArg(performers, []);
29
29
  const comments_1 = defaultArg(comments, []);
30
- this["identifier@86"] = identifier;
30
+ this["identifier@87"] = identifier;
31
31
  this.investigation = void 0;
32
32
  this["MeasurementType@"] = measurementType;
33
33
  this["TechnologyType@"] = technologyType;
34
34
  this["TechnologyPlatform@"] = technologyPlatform;
35
- this["Tables@"] = tables_1;
36
35
  this["Performers@"] = performers_1;
37
36
  this["Comments@"] = comments_1;
38
37
  }
39
38
  get Identifier() {
40
39
  const this$ = this;
41
- return this$["identifier@86"];
40
+ return this$["identifier@87"];
42
41
  }
43
42
  set Identifier(i) {
44
43
  const this$ = this;
45
- this$["identifier@86"] = i;
44
+ this$["identifier@87"] = i;
46
45
  }
47
46
  get Investigation() {
48
47
  const this$ = this;
@@ -79,14 +78,6 @@ export class ArcAssay {
79
78
  const __ = this;
80
79
  __["TechnologyPlatform@"] = v;
81
80
  }
82
- get Tables() {
83
- const __ = this;
84
- return __["Tables@"];
85
- }
86
- set Tables(v) {
87
- const __ = this;
88
- __["Tables@"] = v;
89
- }
90
81
  get Performers() {
91
82
  const __ = this;
92
83
  return __["Performers@"];
@@ -112,14 +103,6 @@ export class ArcAssay {
112
103
  static make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
113
104
  return new ArcAssay(identifier, unwrap(measurementType), unwrap(technologyType), unwrap(technologyPlatform), tables, performers, comments);
114
105
  }
115
- get TableCount() {
116
- const this$ = this;
117
- return ArcTables__get_Count(ArcTables_$ctor_Z18C2F36D(this$.Tables)) | 0;
118
- }
119
- get TableNames() {
120
- const this$ = this;
121
- return ArcTables__get_TableNames(ArcTables_$ctor_Z18C2F36D(this$.Tables));
122
- }
123
106
  get StudiesRegisteredIn() {
124
107
  const this$ = this;
125
108
  const matchValue = this$.Investigation;
@@ -137,10 +120,6 @@ export class ArcAssay {
137
120
  }, i.Studies));
138
121
  }
139
122
  }
140
- AddTable(table, index) {
141
- const this$ = this;
142
- ArcTables__AddTable_EC12B15(ArcTables_$ctor_Z18C2F36D(this$.Tables), table, unwrap(index));
143
- }
144
123
  static addTable(table, index) {
145
124
  return (assay) => {
146
125
  const c = assay.Copy();
@@ -148,10 +127,6 @@ export class ArcAssay {
148
127
  return c;
149
128
  };
150
129
  }
151
- AddTables(tables, index) {
152
- const this$ = this;
153
- ArcTables__AddTables_Z2D453886(ArcTables_$ctor_Z18C2F36D(this$.Tables), tables, unwrap(index));
154
- }
155
130
  static addTables(tables, index) {
156
131
  return (assay) => {
157
132
  const c = assay.Copy();
@@ -159,20 +134,12 @@ export class ArcAssay {
159
134
  return c;
160
135
  };
161
136
  }
162
- InitTable(tableName, index) {
163
- const this$ = this;
164
- return ArcTables__InitTable_3B406CA4(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(index));
165
- }
166
137
  static initTable(tableName, index) {
167
138
  return (assay) => {
168
139
  const c = assay.Copy();
169
140
  return [c, c.InitTable(tableName, unwrap(index))];
170
141
  };
171
142
  }
172
- InitTables(tableNames, index) {
173
- const this$ = this;
174
- ArcTables__InitTables_7B28792B(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableNames, unwrap(index));
175
- }
176
143
  static initTables(tableNames, index) {
177
144
  return (assay) => {
178
145
  const c = assay.Copy();
@@ -180,30 +147,18 @@ export class ArcAssay {
180
147
  return c;
181
148
  };
182
149
  }
183
- GetTableAt(index) {
184
- const this$ = this;
185
- return ArcTables__GetTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
186
- }
187
150
  static getTableAt(index) {
188
151
  return (assay) => {
189
152
  const newAssay = assay.Copy();
190
153
  return newAssay.GetTableAt(index);
191
154
  };
192
155
  }
193
- GetTable(name) {
194
- const this$ = this;
195
- return ArcTables__GetTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
196
- }
197
156
  static getTable(name) {
198
157
  return (assay) => {
199
158
  const newAssay = assay.Copy();
200
159
  return newAssay.GetTable(name);
201
160
  };
202
161
  }
203
- UpdateTableAt(index, table) {
204
- const this$ = this;
205
- ArcTables__UpdateTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
206
- }
207
162
  static updateTableAt(index, table) {
208
163
  return (assay) => {
209
164
  const newAssay = assay.Copy();
@@ -211,10 +166,6 @@ export class ArcAssay {
211
166
  return newAssay;
212
167
  };
213
168
  }
214
- UpdateTable(name, table) {
215
- const this$ = this;
216
- ArcTables__UpdateTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
217
- }
218
169
  static updateTable(name, table) {
219
170
  return (assay) => {
220
171
  const newAssay = assay.Copy();
@@ -222,10 +173,6 @@ export class ArcAssay {
222
173
  return newAssay;
223
174
  };
224
175
  }
225
- SetTableAt(index, table) {
226
- const this$ = this;
227
- ArcTables__SetTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
228
- }
229
176
  static setTableAt(index, table) {
230
177
  return (assay) => {
231
178
  const newAssay = assay.Copy();
@@ -233,10 +180,6 @@ export class ArcAssay {
233
180
  return newAssay;
234
181
  };
235
182
  }
236
- SetTable(name, table) {
237
- const this$ = this;
238
- ArcTables__SetTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
239
- }
240
183
  static setTable(name, table) {
241
184
  return (assay) => {
242
185
  const newAssay = assay.Copy();
@@ -244,10 +187,6 @@ export class ArcAssay {
244
187
  return newAssay;
245
188
  };
246
189
  }
247
- RemoveTableAt(index) {
248
- const this$ = this;
249
- ArcTables__RemoveTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
250
- }
251
190
  static removeTableAt(index) {
252
191
  return (assay) => {
253
192
  const newAssay = assay.Copy();
@@ -255,10 +194,6 @@ export class ArcAssay {
255
194
  return newAssay;
256
195
  };
257
196
  }
258
- RemoveTable(name) {
259
- const this$ = this;
260
- ArcTables__RemoveTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
261
- }
262
197
  static removeTable(name) {
263
198
  return (assay) => {
264
199
  const newAssay = assay.Copy();
@@ -266,10 +201,6 @@ export class ArcAssay {
266
201
  return newAssay;
267
202
  };
268
203
  }
269
- MapTableAt(index, updateFun) {
270
- const this$ = this;
271
- ArcTables__MapTableAt_8FC095C(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, updateFun);
272
- }
273
204
  static mapTableAt(index, updateFun) {
274
205
  return (assay) => {
275
206
  const newAssay = assay.Copy();
@@ -277,10 +208,6 @@ export class ArcAssay {
277
208
  return newAssay;
278
209
  };
279
210
  }
280
- MapTable(name, updateFun) {
281
- const this$ = this;
282
- ArcTables__MapTable_27DD7B1B(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, updateFun);
283
- }
284
211
  static updateTable(name, updateFun) {
285
212
  return (assay) => {
286
213
  const newAssay = assay.Copy();
@@ -288,10 +215,6 @@ export class ArcAssay {
288
215
  return newAssay;
289
216
  };
290
217
  }
291
- RenameTableAt(index, newName) {
292
- const this$ = this;
293
- ArcTables__RenameTableAt_Z176EF219(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, newName);
294
- }
295
218
  static renameTableAt(index, newName) {
296
219
  return (assay) => {
297
220
  const newAssay = assay.Copy();
@@ -299,10 +222,6 @@ export class ArcAssay {
299
222
  return newAssay;
300
223
  };
301
224
  }
302
- RenameTable(name, newName) {
303
- const this$ = this;
304
- ArcTables__RenameTable_Z384F8060(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, newName);
305
- }
306
225
  static renameTable(name, newName) {
307
226
  return (assay) => {
308
227
  const newAssay = assay.Copy();
@@ -310,10 +229,6 @@ export class ArcAssay {
310
229
  return newAssay;
311
230
  };
312
231
  }
313
- AddColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
314
- const this$ = this;
315
- ArcTables__AddColumnAt_6A9784DB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
316
- }
317
232
  static addColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
318
233
  return (assay) => {
319
234
  const newAssay = assay.Copy();
@@ -321,10 +236,6 @@ export class ArcAssay {
321
236
  return newAssay;
322
237
  };
323
238
  }
324
- AddColumn(tableName, header, cells, columnIndex, forceReplace) {
325
- const this$ = this;
326
- ArcTables__AddColumn_1FF50D3C(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
327
- }
328
239
  static addColumn(tableName, header, cells, columnIndex, forceReplace) {
329
240
  return (assay) => {
330
241
  const newAssay = assay.Copy();
@@ -332,10 +243,6 @@ export class ArcAssay {
332
243
  return newAssay;
333
244
  };
334
245
  }
335
- RemoveColumnAt(tableIndex, columnIndex) {
336
- const this$ = this;
337
- ArcTables__RemoveColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
338
- }
339
246
  static removeColumnAt(tableIndex, columnIndex) {
340
247
  return (assay) => {
341
248
  const newAssay = assay.Copy();
@@ -343,10 +250,6 @@ export class ArcAssay {
343
250
  return newAssay;
344
251
  };
345
252
  }
346
- RemoveColumn(tableName, columnIndex) {
347
- const this$ = this;
348
- ArcTables__RemoveColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
349
- }
350
253
  static removeColumn(tableName, columnIndex) {
351
254
  return (assay) => {
352
255
  const newAssay = assay.Copy();
@@ -354,10 +257,6 @@ export class ArcAssay {
354
257
  return newAssay;
355
258
  };
356
259
  }
357
- UpdateColumnAt(tableIndex, columnIndex, header, cells) {
358
- const this$ = this;
359
- ArcTables__UpdateColumnAt_21300791(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex, header, unwrap(cells));
360
- }
361
260
  static updateColumnAt(tableIndex, columnIndex, header, cells) {
362
261
  return (assay) => {
363
262
  const newAssay = assay.Copy();
@@ -365,10 +264,6 @@ export class ArcAssay {
365
264
  return newAssay;
366
265
  };
367
266
  }
368
- UpdateColumn(tableName, columnIndex, header, cells) {
369
- const this$ = this;
370
- ArcTables__UpdateColumn_Z6083042A(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex, header, unwrap(cells));
371
- }
372
267
  static updateColumn(tableName, columnIndex, header, cells) {
373
268
  return (assay) => {
374
269
  const newAssay = assay.Copy();
@@ -376,30 +271,18 @@ export class ArcAssay {
376
271
  return newAssay;
377
272
  };
378
273
  }
379
- GetColumnAt(tableIndex, columnIndex) {
380
- const this$ = this;
381
- return ArcTables__GetColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
382
- }
383
274
  static getColumnAt(tableIndex, columnIndex) {
384
275
  return (assay) => {
385
276
  const newAssay = assay.Copy();
386
277
  return newAssay.GetColumnAt(tableIndex, columnIndex);
387
278
  };
388
279
  }
389
- GetColumn(tableName, columnIndex) {
390
- const this$ = this;
391
- return ArcTables__GetColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
392
- }
393
280
  static getColumn(tableName, columnIndex) {
394
281
  return (assay) => {
395
282
  const newAssay = assay.Copy();
396
283
  return newAssay.GetColumn(tableName, columnIndex);
397
284
  };
398
285
  }
399
- AddRowAt(tableIndex, cells, rowIndex) {
400
- const this$ = this;
401
- ArcTables__AddRowAt_Z12CDB784(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, unwrap(cells), unwrap(rowIndex));
402
- }
403
286
  static addRowAt(tableIndex, cells, rowIndex) {
404
287
  return (assay) => {
405
288
  const newAssay = assay.Copy();
@@ -407,10 +290,6 @@ export class ArcAssay {
407
290
  return newAssay;
408
291
  };
409
292
  }
410
- AddRow(tableName, cells, rowIndex) {
411
- const this$ = this;
412
- ArcTables__AddRow_Z16315DE5(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(cells), unwrap(rowIndex));
413
- }
414
293
  static addRow(tableName, cells, rowIndex) {
415
294
  return (assay) => {
416
295
  const newAssay = assay.Copy();
@@ -418,10 +297,6 @@ export class ArcAssay {
418
297
  return newAssay;
419
298
  };
420
299
  }
421
- RemoveRowAt(tableIndex, rowIndex) {
422
- const this$ = this;
423
- ArcTables__RemoveRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
424
- }
425
300
  static removeRowAt(tableIndex, rowIndex) {
426
301
  return (assay) => {
427
302
  const newAssay = assay.Copy();
@@ -429,10 +304,6 @@ export class ArcAssay {
429
304
  return newAssay;
430
305
  };
431
306
  }
432
- RemoveRow(tableName, rowIndex) {
433
- const this$ = this;
434
- ArcTables__RemoveRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
435
- }
436
307
  static removeRow(tableName, rowIndex) {
437
308
  return (assay) => {
438
309
  const newAssay = assay.Copy();
@@ -440,10 +311,6 @@ export class ArcAssay {
440
311
  return newAssay;
441
312
  };
442
313
  }
443
- UpdateRowAt(tableIndex, rowIndex, cells) {
444
- const this$ = this;
445
- ArcTables__UpdateRowAt_1CF7B5DC(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex, cells);
446
- }
447
314
  static updateRowAt(tableIndex, rowIndex, cells) {
448
315
  return (assay) => {
449
316
  const newAssay = assay.Copy();
@@ -451,10 +318,6 @@ export class ArcAssay {
451
318
  return newAssay;
452
319
  };
453
320
  }
454
- UpdateRow(tableName, rowIndex, cells) {
455
- const this$ = this;
456
- ArcTables__UpdateRow_1BFE2CFB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex, cells);
457
- }
458
321
  static updateRow(tableName, rowIndex, cells) {
459
322
  return (assay) => {
460
323
  const newAssay = assay.Copy();
@@ -462,20 +325,12 @@ export class ArcAssay {
462
325
  return newAssay;
463
326
  };
464
327
  }
465
- GetRowAt(tableIndex, rowIndex) {
466
- const this$ = this;
467
- return ArcTables__GetRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
468
- }
469
328
  static getRowAt(tableIndex, rowIndex) {
470
329
  return (assay) => {
471
330
  const newAssay = assay.Copy();
472
331
  return newAssay.GetRowAt(tableIndex, rowIndex);
473
332
  };
474
333
  }
475
- GetRow(tableName, rowIndex) {
476
- const this$ = this;
477
- return ArcTables__GetRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
478
- }
479
334
  static getRow(tableName, rowIndex) {
480
335
  return (assay) => {
481
336
  const newAssay = assay.Copy();
@@ -629,14 +484,17 @@ export class ArcAssay {
629
484
  }
630
485
  ToAssay() {
631
486
  const this$ = this;
632
- const processSeq = ArcTables__GetProcesses(ArcTables_$ctor_Z18C2F36D(this$.Tables));
487
+ const processSeq = (new ArcTables(this$.Tables)).GetProcesses();
633
488
  let assayMaterials;
634
489
  const v_2 = AssayMaterials_create_Z253F0553(unwrap(Option_fromValueWithDefault(empty(), getSamples(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getMaterials(processSeq))));
635
490
  assayMaterials = Option_fromValueWithDefault(AssayMaterials_get_empty(), v_2);
636
491
  return Assay_create_3D372A24(void 0, unwrap(isMissingIdentifier(this$.Identifier) ? void 0 : Assay_fileNameFromIdentifier(this$.Identifier)), unwrap(this$.MeasurementType), unwrap(this$.TechnologyType), unwrap(map_1((arg) => ArcAssay.composeTechnologyPlatform(arg), this$.TechnologyPlatform)), unwrap(Option_fromValueWithDefault(empty(), getData(processSeq))), unwrap(assayMaterials), unwrap(Option_fromValueWithDefault(empty(), getCharacteristics(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getUnits(processSeq))), unwrap(Option_fromValueWithDefault(empty(), processSeq)), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Comments))));
637
492
  }
638
493
  static fromAssay(a) {
639
- const tables = map_1((arg_1) => ArcTables__get_Tables(ArcTables_fromProcesses_134EBDED(arg_1)), a.ProcessSequence);
494
+ const tables = map_1((arg_1) => {
495
+ const t = ArcTables.fromProcesses(arg_1);
496
+ return t.Tables;
497
+ }, a.ProcessSequence);
640
498
  let identifer;
641
499
  const matchValue = a.FileName;
642
500
  identifer = ((matchValue == null) ? createMissingIdentifier() : Assay_identifierFromFileName(matchValue));
@@ -684,23 +542,23 @@ export class ArcAssay {
684
542
  }
685
543
 
686
544
  export function ArcAssay_$reflection() {
687
- return class_type("ARCtrl.ISA.ArcAssay", void 0, ArcAssay);
545
+ return class_type("ARCtrl.ISA.ArcAssay", void 0, ArcAssay, ArcTables_$reflection());
688
546
  }
689
547
 
690
548
  export function ArcAssay_$ctor_Z1126B596(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
691
549
  return new ArcAssay(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
692
550
  }
693
551
 
694
- export class ArcStudy {
552
+ export class ArcStudy extends ArcTables {
695
553
  constructor(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
554
+ super(defaultArg(tables, []));
696
555
  const publications_1 = defaultArg(publications, []);
697
556
  const contacts_1 = defaultArg(contacts, []);
698
557
  const studyDesignDescriptors_1 = defaultArg(studyDesignDescriptors, []);
699
- const tables_1 = defaultArg(tables, []);
700
558
  const registeredAssayIdentifiers_1 = defaultArg(registeredAssayIdentifiers, []);
701
559
  const factors_1 = defaultArg(factors, []);
702
560
  const comments_1 = defaultArg(comments, []);
703
- this["identifier@653"] = identifier;
561
+ this["identifier@564"] = identifier;
704
562
  this.investigation = void 0;
705
563
  this["Title@"] = title;
706
564
  this["Description@"] = description;
@@ -709,18 +567,17 @@ export class ArcStudy {
709
567
  this["Publications@"] = publications_1;
710
568
  this["Contacts@"] = contacts_1;
711
569
  this["StudyDesignDescriptors@"] = studyDesignDescriptors_1;
712
- this["Tables@"] = tables_1;
713
570
  this["RegisteredAssayIdentifiers@"] = registeredAssayIdentifiers_1;
714
571
  this["Factors@"] = factors_1;
715
572
  this["Comments@"] = comments_1;
716
573
  }
717
574
  get Identifier() {
718
575
  const this$ = this;
719
- return this$["identifier@653"];
576
+ return this$["identifier@564"];
720
577
  }
721
578
  set Identifier(i) {
722
579
  const this$ = this;
723
- this$["identifier@653"] = i;
580
+ this$["identifier@564"] = i;
724
581
  }
725
582
  get Investigation() {
726
583
  const this$ = this;
@@ -786,14 +643,6 @@ export class ArcStudy {
786
643
  const __ = this;
787
644
  __["StudyDesignDescriptors@"] = v;
788
645
  }
789
- get Tables() {
790
- const __ = this;
791
- return __["Tables@"];
792
- }
793
- set Tables(v) {
794
- const __ = this;
795
- __["Tables@"] = v;
796
- }
797
646
  get RegisteredAssayIdentifiers() {
798
647
  const __ = this;
799
648
  return __["RegisteredAssayIdentifiers@"];
@@ -977,18 +826,6 @@ export class ArcStudy {
977
826
  return copy.GetRegisteredAssaysOrIdentifier();
978
827
  };
979
828
  }
980
- get TableCount() {
981
- const this$ = this;
982
- return ArcTables__get_Count(ArcTables_$ctor_Z18C2F36D(this$.Tables)) | 0;
983
- }
984
- get TableNames() {
985
- const this$ = this;
986
- return ArcTables__get_TableNames(ArcTables_$ctor_Z18C2F36D(this$.Tables));
987
- }
988
- AddTable(table, index) {
989
- const this$ = this;
990
- ArcTables__AddTable_EC12B15(ArcTables_$ctor_Z18C2F36D(this$.Tables), table, unwrap(index));
991
- }
992
829
  static addTable(table, index) {
993
830
  return (study) => {
994
831
  const c = study.Copy();
@@ -996,10 +833,6 @@ export class ArcStudy {
996
833
  return c;
997
834
  };
998
835
  }
999
- AddTables(tables, index) {
1000
- const this$ = this;
1001
- ArcTables__AddTables_Z2D453886(ArcTables_$ctor_Z18C2F36D(this$.Tables), tables, unwrap(index));
1002
- }
1003
836
  static addTables(tables, index) {
1004
837
  return (study) => {
1005
838
  const c = study.Copy();
@@ -1007,20 +840,12 @@ export class ArcStudy {
1007
840
  return c;
1008
841
  };
1009
842
  }
1010
- InitTable(tableName, index) {
1011
- const this$ = this;
1012
- return ArcTables__InitTable_3B406CA4(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(index));
1013
- }
1014
843
  static initTable(tableName, index) {
1015
844
  return (study) => {
1016
845
  const c = study.Copy();
1017
846
  return [c, c.InitTable(tableName, unwrap(index))];
1018
847
  };
1019
848
  }
1020
- InitTables(tableNames, index) {
1021
- const this$ = this;
1022
- ArcTables__InitTables_7B28792B(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableNames, unwrap(index));
1023
- }
1024
849
  static initTables(tableNames, index) {
1025
850
  return (study) => {
1026
851
  const c = study.Copy();
@@ -1028,30 +853,18 @@ export class ArcStudy {
1028
853
  return c;
1029
854
  };
1030
855
  }
1031
- GetTableAt(index) {
1032
- const this$ = this;
1033
- return ArcTables__GetTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
1034
- }
1035
856
  static getTableAt(index) {
1036
857
  return (study) => {
1037
858
  const newAssay = study.Copy();
1038
859
  return newAssay.GetTableAt(index);
1039
860
  };
1040
861
  }
1041
- GetTable(name) {
1042
- const this$ = this;
1043
- return ArcTables__GetTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
1044
- }
1045
862
  static getTable(name) {
1046
863
  return (study) => {
1047
864
  const newAssay = study.Copy();
1048
865
  return newAssay.GetTable(name);
1049
866
  };
1050
867
  }
1051
- UpdateTableAt(index, table) {
1052
- const this$ = this;
1053
- ArcTables__UpdateTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
1054
- }
1055
868
  static updateTableAt(index, table) {
1056
869
  return (study) => {
1057
870
  const newAssay = study.Copy();
@@ -1059,10 +872,6 @@ export class ArcStudy {
1059
872
  return newAssay;
1060
873
  };
1061
874
  }
1062
- UpdateTable(name, table) {
1063
- const this$ = this;
1064
- ArcTables__UpdateTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
1065
- }
1066
875
  static updateTable(name, table) {
1067
876
  return (study) => {
1068
877
  const newAssay = study.Copy();
@@ -1070,10 +879,6 @@ export class ArcStudy {
1070
879
  return newAssay;
1071
880
  };
1072
881
  }
1073
- SetTableAt(index, table) {
1074
- const this$ = this;
1075
- ArcTables__SetTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
1076
- }
1077
882
  static setTableAt(index, table) {
1078
883
  return (study) => {
1079
884
  const newAssay = study.Copy();
@@ -1081,10 +886,6 @@ export class ArcStudy {
1081
886
  return newAssay;
1082
887
  };
1083
888
  }
1084
- SetTable(name, table) {
1085
- const this$ = this;
1086
- ArcTables__SetTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
1087
- }
1088
889
  static setTable(name, table) {
1089
890
  return (study) => {
1090
891
  const newAssay = study.Copy();
@@ -1092,10 +893,6 @@ export class ArcStudy {
1092
893
  return newAssay;
1093
894
  };
1094
895
  }
1095
- RemoveTableAt(index) {
1096
- const this$ = this;
1097
- ArcTables__RemoveTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
1098
- }
1099
896
  static removeTableAt(index) {
1100
897
  return (study) => {
1101
898
  const newAssay = study.Copy();
@@ -1103,10 +900,6 @@ export class ArcStudy {
1103
900
  return newAssay;
1104
901
  };
1105
902
  }
1106
- RemoveTable(name) {
1107
- const this$ = this;
1108
- ArcTables__RemoveTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
1109
- }
1110
903
  static removeTable(name) {
1111
904
  return (study) => {
1112
905
  const newAssay = study.Copy();
@@ -1114,10 +907,6 @@ export class ArcStudy {
1114
907
  return newAssay;
1115
908
  };
1116
909
  }
1117
- MapTableAt(index, updateFun) {
1118
- const this$ = this;
1119
- ArcTables__MapTableAt_8FC095C(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, updateFun);
1120
- }
1121
910
  static mapTableAt(index, updateFun) {
1122
911
  return (study) => {
1123
912
  const newAssay = study.Copy();
@@ -1125,10 +914,6 @@ export class ArcStudy {
1125
914
  return newAssay;
1126
915
  };
1127
916
  }
1128
- MapTable(name, updateFun) {
1129
- const this$ = this;
1130
- ArcTables__MapTable_27DD7B1B(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, updateFun);
1131
- }
1132
917
  static mapTable(name, updateFun) {
1133
918
  return (study) => {
1134
919
  const newAssay = study.Copy();
@@ -1136,10 +921,6 @@ export class ArcStudy {
1136
921
  return newAssay;
1137
922
  };
1138
923
  }
1139
- RenameTableAt(index, newName) {
1140
- const this$ = this;
1141
- ArcTables__RenameTableAt_Z176EF219(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, newName);
1142
- }
1143
924
  static renameTableAt(index, newName) {
1144
925
  return (study) => {
1145
926
  const newAssay = study.Copy();
@@ -1147,10 +928,6 @@ export class ArcStudy {
1147
928
  return newAssay;
1148
929
  };
1149
930
  }
1150
- RenameTable(name, newName) {
1151
- const this$ = this;
1152
- ArcTables__RenameTable_Z384F8060(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, newName);
1153
- }
1154
931
  static renameTable(name, newName) {
1155
932
  return (study) => {
1156
933
  const newAssay = study.Copy();
@@ -1158,10 +935,6 @@ export class ArcStudy {
1158
935
  return newAssay;
1159
936
  };
1160
937
  }
1161
- AddColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
1162
- const this$ = this;
1163
- ArcTables__AddColumnAt_6A9784DB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
1164
- }
1165
938
  static addColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
1166
939
  return (study) => {
1167
940
  const newAssay = study.Copy();
@@ -1169,10 +942,6 @@ export class ArcStudy {
1169
942
  return newAssay;
1170
943
  };
1171
944
  }
1172
- AddColumn(tableName, header, cells, columnIndex, forceReplace) {
1173
- const this$ = this;
1174
- ArcTables__AddColumn_1FF50D3C(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
1175
- }
1176
945
  static addColumn(tableName, header, cells, columnIndex, forceReplace) {
1177
946
  return (study) => {
1178
947
  const newAssay = study.Copy();
@@ -1180,10 +949,6 @@ export class ArcStudy {
1180
949
  return newAssay;
1181
950
  };
1182
951
  }
1183
- RemoveColumnAt(tableIndex, columnIndex) {
1184
- const this$ = this;
1185
- ArcTables__RemoveColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
1186
- }
1187
952
  static removeColumnAt(tableIndex, columnIndex) {
1188
953
  return (study) => {
1189
954
  const newAssay = study.Copy();
@@ -1191,10 +956,6 @@ export class ArcStudy {
1191
956
  return newAssay;
1192
957
  };
1193
958
  }
1194
- RemoveColumn(tableName, columnIndex) {
1195
- const this$ = this;
1196
- ArcTables__RemoveColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
1197
- }
1198
959
  static removeColumn(tableName, columnIndex) {
1199
960
  return (study) => {
1200
961
  const newAssay = study.Copy();
@@ -1202,10 +963,6 @@ export class ArcStudy {
1202
963
  return newAssay;
1203
964
  };
1204
965
  }
1205
- UpdateColumnAt(tableIndex, columnIndex, header, cells) {
1206
- const this$ = this;
1207
- ArcTables__UpdateColumnAt_21300791(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex, header, unwrap(cells));
1208
- }
1209
966
  static updateColumnAt(tableIndex, columnIndex, header, cells) {
1210
967
  return (study) => {
1211
968
  const newAssay = study.Copy();
@@ -1213,10 +970,6 @@ export class ArcStudy {
1213
970
  return newAssay;
1214
971
  };
1215
972
  }
1216
- UpdateColumn(tableName, columnIndex, header, cells) {
1217
- const this$ = this;
1218
- ArcTables__UpdateColumn_Z6083042A(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex, header, unwrap(cells));
1219
- }
1220
973
  static updateColumn(tableName, columnIndex, header, cells) {
1221
974
  return (study) => {
1222
975
  const newAssay = study.Copy();
@@ -1224,30 +977,18 @@ export class ArcStudy {
1224
977
  return newAssay;
1225
978
  };
1226
979
  }
1227
- GetColumnAt(tableIndex, columnIndex) {
1228
- const this$ = this;
1229
- return ArcTables__GetColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
1230
- }
1231
980
  static getColumnAt(tableIndex, columnIndex) {
1232
981
  return (study) => {
1233
982
  const newAssay = study.Copy();
1234
983
  return newAssay.GetColumnAt(tableIndex, columnIndex);
1235
984
  };
1236
985
  }
1237
- GetColumn(tableName, columnIndex) {
1238
- const this$ = this;
1239
- return ArcTables__GetColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
1240
- }
1241
986
  static getColumn(tableName, columnIndex) {
1242
987
  return (study) => {
1243
988
  const newAssay = study.Copy();
1244
989
  return newAssay.GetColumn(tableName, columnIndex);
1245
990
  };
1246
991
  }
1247
- AddRowAt(tableIndex, cells, rowIndex) {
1248
- const this$ = this;
1249
- ArcTables__AddRowAt_Z12CDB784(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, unwrap(cells), unwrap(rowIndex));
1250
- }
1251
992
  static addRowAt(tableIndex, cells, rowIndex) {
1252
993
  return (study) => {
1253
994
  const newAssay = study.Copy();
@@ -1255,10 +996,6 @@ export class ArcStudy {
1255
996
  return newAssay;
1256
997
  };
1257
998
  }
1258
- AddRow(tableName, cells, rowIndex) {
1259
- const this$ = this;
1260
- ArcTables__AddRow_Z16315DE5(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(cells), unwrap(rowIndex));
1261
- }
1262
999
  static addRow(tableName, cells, rowIndex) {
1263
1000
  return (study) => {
1264
1001
  const newAssay = study.Copy();
@@ -1266,10 +1003,6 @@ export class ArcStudy {
1266
1003
  return newAssay;
1267
1004
  };
1268
1005
  }
1269
- RemoveRowAt(tableIndex, rowIndex) {
1270
- const this$ = this;
1271
- ArcTables__RemoveRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
1272
- }
1273
1006
  static removeRowAt(tableIndex, rowIndex) {
1274
1007
  return (study) => {
1275
1008
  const newAssay = study.Copy();
@@ -1277,10 +1010,6 @@ export class ArcStudy {
1277
1010
  return newAssay;
1278
1011
  };
1279
1012
  }
1280
- RemoveRow(tableName, rowIndex) {
1281
- const this$ = this;
1282
- ArcTables__RemoveRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
1283
- }
1284
1013
  static removeRow(tableName, rowIndex) {
1285
1014
  return (study) => {
1286
1015
  const newAssay = study.Copy();
@@ -1288,10 +1017,6 @@ export class ArcStudy {
1288
1017
  return newAssay;
1289
1018
  };
1290
1019
  }
1291
- UpdateRowAt(tableIndex, rowIndex, cells) {
1292
- const this$ = this;
1293
- ArcTables__UpdateRowAt_1CF7B5DC(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex, cells);
1294
- }
1295
1020
  static updateRowAt(tableIndex, rowIndex, cells) {
1296
1021
  return (study) => {
1297
1022
  const newAssay = study.Copy();
@@ -1299,10 +1024,6 @@ export class ArcStudy {
1299
1024
  return newAssay;
1300
1025
  };
1301
1026
  }
1302
- UpdateRow(tableName, rowIndex, cells) {
1303
- const this$ = this;
1304
- ArcTables__UpdateRow_1BFE2CFB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex, cells);
1305
- }
1306
1027
  static updateRow(tableName, rowIndex, cells) {
1307
1028
  return (study) => {
1308
1029
  const newAssay = study.Copy();
@@ -1310,20 +1031,12 @@ export class ArcStudy {
1310
1031
  return newAssay;
1311
1032
  };
1312
1033
  }
1313
- GetRowAt(tableIndex, rowIndex) {
1314
- const this$ = this;
1315
- return ArcTables__GetRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
1316
- }
1317
1034
  static getRowAt(tableIndex, rowIndex) {
1318
1035
  return (study) => {
1319
1036
  const newAssay = study.Copy();
1320
1037
  return newAssay.GetRowAt(tableIndex, rowIndex);
1321
1038
  };
1322
1039
  }
1323
- GetRow(tableName, rowIndex) {
1324
- const this$ = this;
1325
- return ArcTables__GetRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
1326
- }
1327
1040
  static getRow(tableName, rowIndex) {
1328
1041
  return (study) => {
1329
1042
  const newAssay = study.Copy();
@@ -1390,8 +1103,8 @@ export class ArcStudy {
1390
1103
  this$.StudyDesignDescriptors = study.StudyDesignDescriptors;
1391
1104
  }
1392
1105
  if ((study.Tables.length !== 0) ? true : updateAlways) {
1393
- const tables = ArcTables_updateReferenceTablesBySheets_Z2EE88E97(ArcTables_$ctor_Z18C2F36D(this$.Tables), ArcTables_$ctor_Z18C2F36D(study.Tables), unwrap(keepUnusedRefTables));
1394
- this$.Tables = ArcTables__get_Tables(tables);
1106
+ const tables = ArcTables.updateReferenceTablesBySheets(new ArcTables(this$.Tables), new ArcTables(study.Tables), unwrap(keepUnusedRefTables));
1107
+ this$.Tables = tables.Tables;
1395
1108
  }
1396
1109
  if ((study.RegisteredAssayIdentifiers.length !== 0) ? true : updateAlways) {
1397
1110
  this$.RegisteredAssayIdentifiers = study.RegisteredAssayIdentifiers;
@@ -1405,7 +1118,7 @@ export class ArcStudy {
1405
1118
  }
1406
1119
  ToStudy(arcAssays) {
1407
1120
  const this$ = this;
1408
- const processSeq = ArcTables__GetProcesses(ArcTables_$ctor_Z18C2F36D(this$.Tables));
1121
+ const processSeq = (new ArcTables(this$.Tables)).GetProcesses();
1409
1122
  const protocols = Option_fromValueWithDefault(empty(), getProtocols(processSeq));
1410
1123
  let studyMaterials;
1411
1124
  const v_4 = StudyMaterials_create_1BE9FA55(unwrap(Option_fromValueWithDefault(empty(), getSources(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getSamples(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getMaterials(processSeq))));
@@ -1415,7 +1128,10 @@ export class ArcStudy {
1415
1128
  return Study_create_Z2D28E954(void 0, unwrap(patternInput[1]), unwrap(patternInput[0]), unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Publications))), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Contacts))), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.StudyDesignDescriptors))), unwrap(protocols), unwrap(studyMaterials), unwrap(Option_fromValueWithDefault(empty(), processSeq)), unwrap(Option_fromValueWithDefault(empty(), assays)), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Factors))), unwrap(Option_fromValueWithDefault(empty(), getCharacteristics(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getUnits(processSeq))), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Comments))));
1416
1129
  }
1417
1130
  static fromStudy(s) {
1418
- const tables = map_1((arg_1) => ArcTables__get_Tables(ArcTables_fromProcesses_134EBDED(arg_1)), s.ProcessSequence);
1131
+ const tables = map_1((arg_1) => {
1132
+ const t = ArcTables.fromProcesses(arg_1);
1133
+ return t.Tables;
1134
+ }, s.ProcessSequence);
1419
1135
  let identifer;
1420
1136
  const matchValue = s.FileName;
1421
1137
  identifer = ((matchValue == null) ? createMissingIdentifier() : Study_identifierFromFileName(matchValue));
@@ -1498,7 +1214,7 @@ export class ArcStudy {
1498
1214
  }
1499
1215
 
1500
1216
  export function ArcStudy_$reflection() {
1501
- return class_type("ARCtrl.ISA.ArcStudy", void 0, ArcStudy);
1217
+ return class_type("ARCtrl.ISA.ArcStudy", void 0, ArcStudy, ArcTables_$reflection());
1502
1218
  }
1503
1219
 
1504
1220
  export function ArcStudy_$ctor_Z4F2D842F(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
@@ -1541,7 +1257,7 @@ export class ArcInvestigation {
1541
1257
  const registeredStudyIdentifiers_1 = defaultArg(registeredStudyIdentifiers, []);
1542
1258
  const comments_1 = defaultArg(comments, []);
1543
1259
  const remarks_1 = defaultArg(remarks, []);
1544
- this["identifier@1321"] = identifier;
1260
+ this["identifier@1144"] = identifier;
1545
1261
  this["Title@"] = title;
1546
1262
  this["Description@"] = description;
1547
1263
  this["SubmissionDate@"] = submissionDate;
@@ -1554,15 +1270,15 @@ export class ArcInvestigation {
1554
1270
  this["RegisteredStudyIdentifiers@"] = registeredStudyIdentifiers_1;
1555
1271
  this["Comments@"] = comments_1;
1556
1272
  this["Remarks@"] = remarks_1;
1557
- this["init@1302"] = 1;
1273
+ this["init@1125"] = 1;
1558
1274
  }
1559
1275
  get Identifier() {
1560
1276
  const this$ = this;
1561
- return this$["identifier@1321"];
1277
+ return this$["identifier@1144"];
1562
1278
  }
1563
1279
  set Identifier(i) {
1564
1280
  const this$ = this;
1565
- this$["identifier@1321"] = i;
1281
+ this$["identifier@1144"] = i;
1566
1282
  }
1567
1283
  get Title() {
1568
1284
  const __ = this;