@nfdi4plants/arctrl 1.0.0-alpha8 → 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.
- package/ARC.js +5 -6
- package/ISA/ISA/ArcTypes/ArcTable.js +141 -37
- package/ISA/ISA/ArcTypes/ArcTableAux.js +13 -14
- package/ISA/ISA/ArcTypes/ArcTables.js +380 -277
- package/ISA/ISA/ArcTypes/ArcTypes.js +128 -318
- package/ISA/ISA/ArcTypes/CompositeColumn.js +7 -1
- package/ISA/ISA/ArcTypes/CompositeHeader.js +311 -1
- package/ISA/ISA/Helper.js +15 -3
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +17 -15
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +4 -4
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +6 -6
- package/ISA/ISA.Spreadsheet/ArcAssay.js +6 -9
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +4 -4
- package/ISA/ISA.Spreadsheet/ArcStudy.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +9 -9
- package/README.md +3 -0
- package/Templates/Template.Json.js +7 -3
- package/Templates/Template.Spreadsheet.js +23 -7
- package/Templates/Template.Web.js +1 -1
- package/Templates/Templates.js +82 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Cells/FsCell.fs +85 -36
- package/fable_modules/FsSpreadsheet.5.0.0/Cells/FsCell.fs.js +272 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/CellBuilder.fs +1 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/CellBuilder.fs.js +18 -18
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Transform.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Transform.fs.js +2 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Types.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsColumn.fs +3 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsRow.fs +2 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorksheet.fs +10 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorksheet.fs.js +5 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/SheetBuilder.fs +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTable.fs +20 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTable.fs.js +26 -6
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +0 -240
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Cells/FsCellsCollection.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/ColumnBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/DSL.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Expression.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/RowBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/SheetBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/TableBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/DSL/WorkbookBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsAddress.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsColumn.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsRow.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/FsWorkbook.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRange.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeAddress.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeBase.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeColumn.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Ranges/FsRangeRow.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableField.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/Tables/FsTableRow.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.0}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { map as map_1, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
-
import {
|
|
3
|
-
import { concat, 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";
|
|
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
|
-
import { 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";
|
|
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";
|
|
6
5
|
import { distinctBy, Array_distinct } from "../../../fable_modules/fable-library.4.1.4/Seq2.js";
|
|
7
6
|
import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
8
7
|
import { create, match } from "../../../fable_modules/fable-library.4.1.4/RegExp.js";
|
|
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
|
-
import { Option_fromValueWithDefault } from "../Helper.js";
|
|
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";
|
|
15
15
|
import { getSources, getProtocols, getUnits, getCharacteristics, getData, getMaterials, getSamples } from "../JsonTypes/ProcessSequence.js";
|
|
16
16
|
import { Assay_create_3D372A24 } from "../JsonTypes/Assay.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
|
-
|
|
27
|
+
super(defaultArg(tables, []));
|
|
28
28
|
const performers_1 = defaultArg(performers, []);
|
|
29
29
|
const comments_1 = defaultArg(comments, []);
|
|
30
|
-
this["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@
|
|
40
|
+
return this$["identifier@87"];
|
|
42
41
|
}
|
|
43
42
|
set Identifier(i) {
|
|
44
43
|
const this$ = this;
|
|
45
|
-
this$["identifier@
|
|
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();
|
|
@@ -502,7 +357,11 @@ export class ArcAssay {
|
|
|
502
357
|
}
|
|
503
358
|
const nextComments = map((c) => c.Copy(), this$.Comments);
|
|
504
359
|
const nextPerformers = map((c_1) => c_1.Copy(), this$.Performers);
|
|
505
|
-
|
|
360
|
+
const arg = this$.Identifier;
|
|
361
|
+
const arg_1 = this$.MeasurementType;
|
|
362
|
+
const arg_2 = this$.TechnologyType;
|
|
363
|
+
const arg_3 = this$.TechnologyPlatform;
|
|
364
|
+
return ArcAssay.make(arg, arg_1, arg_2, arg_3, nextTables, nextPerformers, nextComments);
|
|
506
365
|
}
|
|
507
366
|
UpdateBy(assay, onlyReplaceExisting, appendSequences) {
|
|
508
367
|
const this$ = this;
|
|
@@ -625,14 +484,17 @@ export class ArcAssay {
|
|
|
625
484
|
}
|
|
626
485
|
ToAssay() {
|
|
627
486
|
const this$ = this;
|
|
628
|
-
const processSeq =
|
|
487
|
+
const processSeq = (new ArcTables(this$.Tables)).GetProcesses();
|
|
629
488
|
let assayMaterials;
|
|
630
489
|
const v_2 = AssayMaterials_create_Z253F0553(unwrap(Option_fromValueWithDefault(empty(), getSamples(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getMaterials(processSeq))));
|
|
631
490
|
assayMaterials = Option_fromValueWithDefault(AssayMaterials_get_empty(), v_2);
|
|
632
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))));
|
|
633
492
|
}
|
|
634
493
|
static fromAssay(a) {
|
|
635
|
-
const tables = map_1((arg_1) =>
|
|
494
|
+
const tables = map_1((arg_1) => {
|
|
495
|
+
const t = ArcTables.fromProcesses(arg_1);
|
|
496
|
+
return t.Tables;
|
|
497
|
+
}, a.ProcessSequence);
|
|
636
498
|
let identifer;
|
|
637
499
|
const matchValue = a.FileName;
|
|
638
500
|
identifer = ((matchValue == null) ? createMissingIdentifier() : Assay_identifierFromFileName(matchValue));
|
|
@@ -673,26 +535,30 @@ export class ArcAssay {
|
|
|
673
535
|
const this$ = this;
|
|
674
536
|
return (other instanceof ArcAssay) && ((assay = other, this$.StructurallyEquals(assay)));
|
|
675
537
|
}
|
|
538
|
+
GetHashCode() {
|
|
539
|
+
const this$ = this;
|
|
540
|
+
return HashCodes_boxHashArray([this$.Identifier, HashCodes_boxHashOption(this$.MeasurementType), HashCodes_boxHashOption(this$.TechnologyType), HashCodes_boxHashOption(this$.TechnologyPlatform), HashCodes_boxHashArray(Array.from(this$.Tables)), HashCodes_boxHashArray(this$.Performers), HashCodes_boxHashArray(this$.Comments)]) | 0;
|
|
541
|
+
}
|
|
676
542
|
}
|
|
677
543
|
|
|
678
544
|
export function ArcAssay_$reflection() {
|
|
679
|
-
return class_type("ARCtrl.ISA.ArcAssay", void 0, ArcAssay);
|
|
545
|
+
return class_type("ARCtrl.ISA.ArcAssay", void 0, ArcAssay, ArcTables_$reflection());
|
|
680
546
|
}
|
|
681
547
|
|
|
682
548
|
export function ArcAssay_$ctor_Z1126B596(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
|
|
683
549
|
return new ArcAssay(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
|
|
684
550
|
}
|
|
685
551
|
|
|
686
|
-
export class ArcStudy {
|
|
552
|
+
export class ArcStudy extends ArcTables {
|
|
687
553
|
constructor(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
|
|
554
|
+
super(defaultArg(tables, []));
|
|
688
555
|
const publications_1 = defaultArg(publications, []);
|
|
689
556
|
const contacts_1 = defaultArg(contacts, []);
|
|
690
557
|
const studyDesignDescriptors_1 = defaultArg(studyDesignDescriptors, []);
|
|
691
|
-
const tables_1 = defaultArg(tables, []);
|
|
692
558
|
const registeredAssayIdentifiers_1 = defaultArg(registeredAssayIdentifiers, []);
|
|
693
559
|
const factors_1 = defaultArg(factors, []);
|
|
694
560
|
const comments_1 = defaultArg(comments, []);
|
|
695
|
-
this["identifier@
|
|
561
|
+
this["identifier@564"] = identifier;
|
|
696
562
|
this.investigation = void 0;
|
|
697
563
|
this["Title@"] = title;
|
|
698
564
|
this["Description@"] = description;
|
|
@@ -701,18 +567,17 @@ export class ArcStudy {
|
|
|
701
567
|
this["Publications@"] = publications_1;
|
|
702
568
|
this["Contacts@"] = contacts_1;
|
|
703
569
|
this["StudyDesignDescriptors@"] = studyDesignDescriptors_1;
|
|
704
|
-
this["Tables@"] = tables_1;
|
|
705
570
|
this["RegisteredAssayIdentifiers@"] = registeredAssayIdentifiers_1;
|
|
706
571
|
this["Factors@"] = factors_1;
|
|
707
572
|
this["Comments@"] = comments_1;
|
|
708
573
|
}
|
|
709
574
|
get Identifier() {
|
|
710
575
|
const this$ = this;
|
|
711
|
-
return this$["identifier@
|
|
576
|
+
return this$["identifier@564"];
|
|
712
577
|
}
|
|
713
578
|
set Identifier(i) {
|
|
714
579
|
const this$ = this;
|
|
715
|
-
this$["identifier@
|
|
580
|
+
this$["identifier@564"] = i;
|
|
716
581
|
}
|
|
717
582
|
get Investigation() {
|
|
718
583
|
const this$ = this;
|
|
@@ -778,14 +643,6 @@ export class ArcStudy {
|
|
|
778
643
|
const __ = this;
|
|
779
644
|
__["StudyDesignDescriptors@"] = v;
|
|
780
645
|
}
|
|
781
|
-
get Tables() {
|
|
782
|
-
const __ = this;
|
|
783
|
-
return __["Tables@"];
|
|
784
|
-
}
|
|
785
|
-
set Tables(v) {
|
|
786
|
-
const __ = this;
|
|
787
|
-
__["Tables@"] = v;
|
|
788
|
-
}
|
|
789
646
|
get RegisteredAssayIdentifiers() {
|
|
790
647
|
const __ = this;
|
|
791
648
|
return __["RegisteredAssayIdentifiers@"];
|
|
@@ -969,18 +826,6 @@ export class ArcStudy {
|
|
|
969
826
|
return copy.GetRegisteredAssaysOrIdentifier();
|
|
970
827
|
};
|
|
971
828
|
}
|
|
972
|
-
get TableCount() {
|
|
973
|
-
const this$ = this;
|
|
974
|
-
return ArcTables__get_Count(ArcTables_$ctor_Z18C2F36D(this$.Tables)) | 0;
|
|
975
|
-
}
|
|
976
|
-
get TableNames() {
|
|
977
|
-
const this$ = this;
|
|
978
|
-
return ArcTables__get_TableNames(ArcTables_$ctor_Z18C2F36D(this$.Tables));
|
|
979
|
-
}
|
|
980
|
-
AddTable(table, index) {
|
|
981
|
-
const this$ = this;
|
|
982
|
-
ArcTables__AddTable_EC12B15(ArcTables_$ctor_Z18C2F36D(this$.Tables), table, unwrap(index));
|
|
983
|
-
}
|
|
984
829
|
static addTable(table, index) {
|
|
985
830
|
return (study) => {
|
|
986
831
|
const c = study.Copy();
|
|
@@ -988,10 +833,6 @@ export class ArcStudy {
|
|
|
988
833
|
return c;
|
|
989
834
|
};
|
|
990
835
|
}
|
|
991
|
-
AddTables(tables, index) {
|
|
992
|
-
const this$ = this;
|
|
993
|
-
ArcTables__AddTables_Z2D453886(ArcTables_$ctor_Z18C2F36D(this$.Tables), tables, unwrap(index));
|
|
994
|
-
}
|
|
995
836
|
static addTables(tables, index) {
|
|
996
837
|
return (study) => {
|
|
997
838
|
const c = study.Copy();
|
|
@@ -999,20 +840,12 @@ export class ArcStudy {
|
|
|
999
840
|
return c;
|
|
1000
841
|
};
|
|
1001
842
|
}
|
|
1002
|
-
InitTable(tableName, index) {
|
|
1003
|
-
const this$ = this;
|
|
1004
|
-
return ArcTables__InitTable_3B406CA4(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(index));
|
|
1005
|
-
}
|
|
1006
843
|
static initTable(tableName, index) {
|
|
1007
844
|
return (study) => {
|
|
1008
845
|
const c = study.Copy();
|
|
1009
846
|
return [c, c.InitTable(tableName, unwrap(index))];
|
|
1010
847
|
};
|
|
1011
848
|
}
|
|
1012
|
-
InitTables(tableNames, index) {
|
|
1013
|
-
const this$ = this;
|
|
1014
|
-
ArcTables__InitTables_7B28792B(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableNames, unwrap(index));
|
|
1015
|
-
}
|
|
1016
849
|
static initTables(tableNames, index) {
|
|
1017
850
|
return (study) => {
|
|
1018
851
|
const c = study.Copy();
|
|
@@ -1020,30 +853,18 @@ export class ArcStudy {
|
|
|
1020
853
|
return c;
|
|
1021
854
|
};
|
|
1022
855
|
}
|
|
1023
|
-
GetTableAt(index) {
|
|
1024
|
-
const this$ = this;
|
|
1025
|
-
return ArcTables__GetTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
|
|
1026
|
-
}
|
|
1027
856
|
static getTableAt(index) {
|
|
1028
857
|
return (study) => {
|
|
1029
858
|
const newAssay = study.Copy();
|
|
1030
859
|
return newAssay.GetTableAt(index);
|
|
1031
860
|
};
|
|
1032
861
|
}
|
|
1033
|
-
GetTable(name) {
|
|
1034
|
-
const this$ = this;
|
|
1035
|
-
return ArcTables__GetTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
|
|
1036
|
-
}
|
|
1037
862
|
static getTable(name) {
|
|
1038
863
|
return (study) => {
|
|
1039
864
|
const newAssay = study.Copy();
|
|
1040
865
|
return newAssay.GetTable(name);
|
|
1041
866
|
};
|
|
1042
867
|
}
|
|
1043
|
-
UpdateTableAt(index, table) {
|
|
1044
|
-
const this$ = this;
|
|
1045
|
-
ArcTables__UpdateTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
|
|
1046
|
-
}
|
|
1047
868
|
static updateTableAt(index, table) {
|
|
1048
869
|
return (study) => {
|
|
1049
870
|
const newAssay = study.Copy();
|
|
@@ -1051,10 +872,6 @@ export class ArcStudy {
|
|
|
1051
872
|
return newAssay;
|
|
1052
873
|
};
|
|
1053
874
|
}
|
|
1054
|
-
UpdateTable(name, table) {
|
|
1055
|
-
const this$ = this;
|
|
1056
|
-
ArcTables__UpdateTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
|
|
1057
|
-
}
|
|
1058
875
|
static updateTable(name, table) {
|
|
1059
876
|
return (study) => {
|
|
1060
877
|
const newAssay = study.Copy();
|
|
@@ -1062,10 +879,6 @@ export class ArcStudy {
|
|
|
1062
879
|
return newAssay;
|
|
1063
880
|
};
|
|
1064
881
|
}
|
|
1065
|
-
SetTableAt(index, table) {
|
|
1066
|
-
const this$ = this;
|
|
1067
|
-
ArcTables__SetTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
|
|
1068
|
-
}
|
|
1069
882
|
static setTableAt(index, table) {
|
|
1070
883
|
return (study) => {
|
|
1071
884
|
const newAssay = study.Copy();
|
|
@@ -1073,10 +886,6 @@ export class ArcStudy {
|
|
|
1073
886
|
return newAssay;
|
|
1074
887
|
};
|
|
1075
888
|
}
|
|
1076
|
-
SetTable(name, table) {
|
|
1077
|
-
const this$ = this;
|
|
1078
|
-
ArcTables__SetTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
|
|
1079
|
-
}
|
|
1080
889
|
static setTable(name, table) {
|
|
1081
890
|
return (study) => {
|
|
1082
891
|
const newAssay = study.Copy();
|
|
@@ -1084,10 +893,6 @@ export class ArcStudy {
|
|
|
1084
893
|
return newAssay;
|
|
1085
894
|
};
|
|
1086
895
|
}
|
|
1087
|
-
RemoveTableAt(index) {
|
|
1088
|
-
const this$ = this;
|
|
1089
|
-
ArcTables__RemoveTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
|
|
1090
|
-
}
|
|
1091
896
|
static removeTableAt(index) {
|
|
1092
897
|
return (study) => {
|
|
1093
898
|
const newAssay = study.Copy();
|
|
@@ -1095,10 +900,6 @@ export class ArcStudy {
|
|
|
1095
900
|
return newAssay;
|
|
1096
901
|
};
|
|
1097
902
|
}
|
|
1098
|
-
RemoveTable(name) {
|
|
1099
|
-
const this$ = this;
|
|
1100
|
-
ArcTables__RemoveTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
|
|
1101
|
-
}
|
|
1102
903
|
static removeTable(name) {
|
|
1103
904
|
return (study) => {
|
|
1104
905
|
const newAssay = study.Copy();
|
|
@@ -1106,10 +907,6 @@ export class ArcStudy {
|
|
|
1106
907
|
return newAssay;
|
|
1107
908
|
};
|
|
1108
909
|
}
|
|
1109
|
-
MapTableAt(index, updateFun) {
|
|
1110
|
-
const this$ = this;
|
|
1111
|
-
ArcTables__MapTableAt_8FC095C(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, updateFun);
|
|
1112
|
-
}
|
|
1113
910
|
static mapTableAt(index, updateFun) {
|
|
1114
911
|
return (study) => {
|
|
1115
912
|
const newAssay = study.Copy();
|
|
@@ -1117,10 +914,6 @@ export class ArcStudy {
|
|
|
1117
914
|
return newAssay;
|
|
1118
915
|
};
|
|
1119
916
|
}
|
|
1120
|
-
MapTable(name, updateFun) {
|
|
1121
|
-
const this$ = this;
|
|
1122
|
-
ArcTables__MapTable_27DD7B1B(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, updateFun);
|
|
1123
|
-
}
|
|
1124
917
|
static mapTable(name, updateFun) {
|
|
1125
918
|
return (study) => {
|
|
1126
919
|
const newAssay = study.Copy();
|
|
@@ -1128,10 +921,6 @@ export class ArcStudy {
|
|
|
1128
921
|
return newAssay;
|
|
1129
922
|
};
|
|
1130
923
|
}
|
|
1131
|
-
RenameTableAt(index, newName) {
|
|
1132
|
-
const this$ = this;
|
|
1133
|
-
ArcTables__RenameTableAt_Z176EF219(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, newName);
|
|
1134
|
-
}
|
|
1135
924
|
static renameTableAt(index, newName) {
|
|
1136
925
|
return (study) => {
|
|
1137
926
|
const newAssay = study.Copy();
|
|
@@ -1139,10 +928,6 @@ export class ArcStudy {
|
|
|
1139
928
|
return newAssay;
|
|
1140
929
|
};
|
|
1141
930
|
}
|
|
1142
|
-
RenameTable(name, newName) {
|
|
1143
|
-
const this$ = this;
|
|
1144
|
-
ArcTables__RenameTable_Z384F8060(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, newName);
|
|
1145
|
-
}
|
|
1146
931
|
static renameTable(name, newName) {
|
|
1147
932
|
return (study) => {
|
|
1148
933
|
const newAssay = study.Copy();
|
|
@@ -1150,10 +935,6 @@ export class ArcStudy {
|
|
|
1150
935
|
return newAssay;
|
|
1151
936
|
};
|
|
1152
937
|
}
|
|
1153
|
-
AddColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
|
|
1154
|
-
const this$ = this;
|
|
1155
|
-
ArcTables__AddColumnAt_6A9784DB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
1156
|
-
}
|
|
1157
938
|
static addColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
|
|
1158
939
|
return (study) => {
|
|
1159
940
|
const newAssay = study.Copy();
|
|
@@ -1161,10 +942,6 @@ export class ArcStudy {
|
|
|
1161
942
|
return newAssay;
|
|
1162
943
|
};
|
|
1163
944
|
}
|
|
1164
|
-
AddColumn(tableName, header, cells, columnIndex, forceReplace) {
|
|
1165
|
-
const this$ = this;
|
|
1166
|
-
ArcTables__AddColumn_1FF50D3C(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
1167
|
-
}
|
|
1168
945
|
static addColumn(tableName, header, cells, columnIndex, forceReplace) {
|
|
1169
946
|
return (study) => {
|
|
1170
947
|
const newAssay = study.Copy();
|
|
@@ -1172,10 +949,6 @@ export class ArcStudy {
|
|
|
1172
949
|
return newAssay;
|
|
1173
950
|
};
|
|
1174
951
|
}
|
|
1175
|
-
RemoveColumnAt(tableIndex, columnIndex) {
|
|
1176
|
-
const this$ = this;
|
|
1177
|
-
ArcTables__RemoveColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
|
|
1178
|
-
}
|
|
1179
952
|
static removeColumnAt(tableIndex, columnIndex) {
|
|
1180
953
|
return (study) => {
|
|
1181
954
|
const newAssay = study.Copy();
|
|
@@ -1183,10 +956,6 @@ export class ArcStudy {
|
|
|
1183
956
|
return newAssay;
|
|
1184
957
|
};
|
|
1185
958
|
}
|
|
1186
|
-
RemoveColumn(tableName, columnIndex) {
|
|
1187
|
-
const this$ = this;
|
|
1188
|
-
ArcTables__RemoveColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
|
|
1189
|
-
}
|
|
1190
959
|
static removeColumn(tableName, columnIndex) {
|
|
1191
960
|
return (study) => {
|
|
1192
961
|
const newAssay = study.Copy();
|
|
@@ -1194,10 +963,6 @@ export class ArcStudy {
|
|
|
1194
963
|
return newAssay;
|
|
1195
964
|
};
|
|
1196
965
|
}
|
|
1197
|
-
UpdateColumnAt(tableIndex, columnIndex, header, cells) {
|
|
1198
|
-
const this$ = this;
|
|
1199
|
-
ArcTables__UpdateColumnAt_21300791(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex, header, unwrap(cells));
|
|
1200
|
-
}
|
|
1201
966
|
static updateColumnAt(tableIndex, columnIndex, header, cells) {
|
|
1202
967
|
return (study) => {
|
|
1203
968
|
const newAssay = study.Copy();
|
|
@@ -1205,10 +970,6 @@ export class ArcStudy {
|
|
|
1205
970
|
return newAssay;
|
|
1206
971
|
};
|
|
1207
972
|
}
|
|
1208
|
-
UpdateColumn(tableName, columnIndex, header, cells) {
|
|
1209
|
-
const this$ = this;
|
|
1210
|
-
ArcTables__UpdateColumn_Z6083042A(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex, header, unwrap(cells));
|
|
1211
|
-
}
|
|
1212
973
|
static updateColumn(tableName, columnIndex, header, cells) {
|
|
1213
974
|
return (study) => {
|
|
1214
975
|
const newAssay = study.Copy();
|
|
@@ -1216,30 +977,18 @@ export class ArcStudy {
|
|
|
1216
977
|
return newAssay;
|
|
1217
978
|
};
|
|
1218
979
|
}
|
|
1219
|
-
GetColumnAt(tableIndex, columnIndex) {
|
|
1220
|
-
const this$ = this;
|
|
1221
|
-
return ArcTables__GetColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
|
|
1222
|
-
}
|
|
1223
980
|
static getColumnAt(tableIndex, columnIndex) {
|
|
1224
981
|
return (study) => {
|
|
1225
982
|
const newAssay = study.Copy();
|
|
1226
983
|
return newAssay.GetColumnAt(tableIndex, columnIndex);
|
|
1227
984
|
};
|
|
1228
985
|
}
|
|
1229
|
-
GetColumn(tableName, columnIndex) {
|
|
1230
|
-
const this$ = this;
|
|
1231
|
-
return ArcTables__GetColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
|
|
1232
|
-
}
|
|
1233
986
|
static getColumn(tableName, columnIndex) {
|
|
1234
987
|
return (study) => {
|
|
1235
988
|
const newAssay = study.Copy();
|
|
1236
989
|
return newAssay.GetColumn(tableName, columnIndex);
|
|
1237
990
|
};
|
|
1238
991
|
}
|
|
1239
|
-
AddRowAt(tableIndex, cells, rowIndex) {
|
|
1240
|
-
const this$ = this;
|
|
1241
|
-
ArcTables__AddRowAt_Z12CDB784(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, unwrap(cells), unwrap(rowIndex));
|
|
1242
|
-
}
|
|
1243
992
|
static addRowAt(tableIndex, cells, rowIndex) {
|
|
1244
993
|
return (study) => {
|
|
1245
994
|
const newAssay = study.Copy();
|
|
@@ -1247,10 +996,6 @@ export class ArcStudy {
|
|
|
1247
996
|
return newAssay;
|
|
1248
997
|
};
|
|
1249
998
|
}
|
|
1250
|
-
AddRow(tableName, cells, rowIndex) {
|
|
1251
|
-
const this$ = this;
|
|
1252
|
-
ArcTables__AddRow_Z16315DE5(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(cells), unwrap(rowIndex));
|
|
1253
|
-
}
|
|
1254
999
|
static addRow(tableName, cells, rowIndex) {
|
|
1255
1000
|
return (study) => {
|
|
1256
1001
|
const newAssay = study.Copy();
|
|
@@ -1258,10 +1003,6 @@ export class ArcStudy {
|
|
|
1258
1003
|
return newAssay;
|
|
1259
1004
|
};
|
|
1260
1005
|
}
|
|
1261
|
-
RemoveRowAt(tableIndex, rowIndex) {
|
|
1262
|
-
const this$ = this;
|
|
1263
|
-
ArcTables__RemoveRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
|
|
1264
|
-
}
|
|
1265
1006
|
static removeRowAt(tableIndex, rowIndex) {
|
|
1266
1007
|
return (study) => {
|
|
1267
1008
|
const newAssay = study.Copy();
|
|
@@ -1269,10 +1010,6 @@ export class ArcStudy {
|
|
|
1269
1010
|
return newAssay;
|
|
1270
1011
|
};
|
|
1271
1012
|
}
|
|
1272
|
-
RemoveRow(tableName, rowIndex) {
|
|
1273
|
-
const this$ = this;
|
|
1274
|
-
ArcTables__RemoveRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
|
|
1275
|
-
}
|
|
1276
1013
|
static removeRow(tableName, rowIndex) {
|
|
1277
1014
|
return (study) => {
|
|
1278
1015
|
const newAssay = study.Copy();
|
|
@@ -1280,10 +1017,6 @@ export class ArcStudy {
|
|
|
1280
1017
|
return newAssay;
|
|
1281
1018
|
};
|
|
1282
1019
|
}
|
|
1283
|
-
UpdateRowAt(tableIndex, rowIndex, cells) {
|
|
1284
|
-
const this$ = this;
|
|
1285
|
-
ArcTables__UpdateRowAt_1CF7B5DC(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex, cells);
|
|
1286
|
-
}
|
|
1287
1020
|
static updateRowAt(tableIndex, rowIndex, cells) {
|
|
1288
1021
|
return (study) => {
|
|
1289
1022
|
const newAssay = study.Copy();
|
|
@@ -1291,10 +1024,6 @@ export class ArcStudy {
|
|
|
1291
1024
|
return newAssay;
|
|
1292
1025
|
};
|
|
1293
1026
|
}
|
|
1294
|
-
UpdateRow(tableName, rowIndex, cells) {
|
|
1295
|
-
const this$ = this;
|
|
1296
|
-
ArcTables__UpdateRow_1BFE2CFB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex, cells);
|
|
1297
|
-
}
|
|
1298
1027
|
static updateRow(tableName, rowIndex, cells) {
|
|
1299
1028
|
return (study) => {
|
|
1300
1029
|
const newAssay = study.Copy();
|
|
@@ -1302,20 +1031,12 @@ export class ArcStudy {
|
|
|
1302
1031
|
return newAssay;
|
|
1303
1032
|
};
|
|
1304
1033
|
}
|
|
1305
|
-
GetRowAt(tableIndex, rowIndex) {
|
|
1306
|
-
const this$ = this;
|
|
1307
|
-
return ArcTables__GetRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
|
|
1308
|
-
}
|
|
1309
1034
|
static getRowAt(tableIndex, rowIndex) {
|
|
1310
1035
|
return (study) => {
|
|
1311
1036
|
const newAssay = study.Copy();
|
|
1312
1037
|
return newAssay.GetRowAt(tableIndex, rowIndex);
|
|
1313
1038
|
};
|
|
1314
1039
|
}
|
|
1315
|
-
GetRow(tableName, rowIndex) {
|
|
1316
|
-
const this$ = this;
|
|
1317
|
-
return ArcTables__GetRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
|
|
1318
|
-
}
|
|
1319
1040
|
static getRow(tableName, rowIndex) {
|
|
1320
1041
|
return (study) => {
|
|
1321
1042
|
const newAssay = study.Copy();
|
|
@@ -1350,7 +1071,12 @@ export class ArcStudy {
|
|
|
1350
1071
|
const nextContacts = map((c_2) => c_2.Copy(), this$.Contacts);
|
|
1351
1072
|
const nextPublications = map((c_3) => c_3.Copy(), this$.Publications);
|
|
1352
1073
|
const nextStudyDesignDescriptors = map((c_4) => c_4.Copy(), this$.StudyDesignDescriptors);
|
|
1353
|
-
|
|
1074
|
+
const arg = this$.Identifier;
|
|
1075
|
+
const arg_1 = this$.Title;
|
|
1076
|
+
const arg_2 = this$.Description;
|
|
1077
|
+
const arg_3 = this$.SubmissionDate;
|
|
1078
|
+
const arg_4 = this$.PublicReleaseDate;
|
|
1079
|
+
return ArcStudy.make(arg, arg_1, arg_2, arg_3, arg_4, nextPublications, nextContacts, nextStudyDesignDescriptors, nextTables, nextAssayIdentifiers, nextFactors, nextComments);
|
|
1354
1080
|
}
|
|
1355
1081
|
UpdateReferenceByStudyFile(study, onlyReplaceExisting, keepUnusedRefTables) {
|
|
1356
1082
|
const this$ = this;
|
|
@@ -1377,8 +1103,8 @@ export class ArcStudy {
|
|
|
1377
1103
|
this$.StudyDesignDescriptors = study.StudyDesignDescriptors;
|
|
1378
1104
|
}
|
|
1379
1105
|
if ((study.Tables.length !== 0) ? true : updateAlways) {
|
|
1380
|
-
const tables =
|
|
1381
|
-
this$.Tables =
|
|
1106
|
+
const tables = ArcTables.updateReferenceTablesBySheets(new ArcTables(this$.Tables), new ArcTables(study.Tables), unwrap(keepUnusedRefTables));
|
|
1107
|
+
this$.Tables = tables.Tables;
|
|
1382
1108
|
}
|
|
1383
1109
|
if ((study.RegisteredAssayIdentifiers.length !== 0) ? true : updateAlways) {
|
|
1384
1110
|
this$.RegisteredAssayIdentifiers = study.RegisteredAssayIdentifiers;
|
|
@@ -1392,7 +1118,7 @@ export class ArcStudy {
|
|
|
1392
1118
|
}
|
|
1393
1119
|
ToStudy(arcAssays) {
|
|
1394
1120
|
const this$ = this;
|
|
1395
|
-
const processSeq =
|
|
1121
|
+
const processSeq = (new ArcTables(this$.Tables)).GetProcesses();
|
|
1396
1122
|
const protocols = Option_fromValueWithDefault(empty(), getProtocols(processSeq));
|
|
1397
1123
|
let studyMaterials;
|
|
1398
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))));
|
|
@@ -1402,7 +1128,10 @@ export class ArcStudy {
|
|
|
1402
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))));
|
|
1403
1129
|
}
|
|
1404
1130
|
static fromStudy(s) {
|
|
1405
|
-
const tables = map_1((arg_1) =>
|
|
1131
|
+
const tables = map_1((arg_1) => {
|
|
1132
|
+
const t = ArcTables.fromProcesses(arg_1);
|
|
1133
|
+
return t.Tables;
|
|
1134
|
+
}, s.ProcessSequence);
|
|
1406
1135
|
let identifer;
|
|
1407
1136
|
const matchValue = s.FileName;
|
|
1408
1137
|
identifer = ((matchValue == null) ? createMissingIdentifier() : Study_identifierFromFileName(matchValue));
|
|
@@ -1478,10 +1207,14 @@ export class ArcStudy {
|
|
|
1478
1207
|
const this$ = this;
|
|
1479
1208
|
return (other instanceof ArcStudy) && ((s = other, this$.StructurallyEquals(s)));
|
|
1480
1209
|
}
|
|
1210
|
+
GetHashCode() {
|
|
1211
|
+
const this$ = this;
|
|
1212
|
+
return HashCodes_boxHashArray([this$.Identifier, HashCodes_boxHashOption(this$.Title), HashCodes_boxHashOption(this$.Description), HashCodes_boxHashOption(this$.SubmissionDate), HashCodes_boxHashOption(this$.PublicReleaseDate), HashCodes_boxHashArray(this$.Publications), HashCodes_boxHashArray(this$.Contacts), HashCodes_boxHashArray(this$.StudyDesignDescriptors), HashCodes_boxHashArray(Array.from(this$.Tables)), HashCodes_boxHashArray(Array.from(this$.RegisteredAssayIdentifiers)), HashCodes_boxHashArray(this$.Factors), HashCodes_boxHashArray(this$.Comments)]) | 0;
|
|
1213
|
+
}
|
|
1481
1214
|
}
|
|
1482
1215
|
|
|
1483
1216
|
export function ArcStudy_$reflection() {
|
|
1484
|
-
return class_type("ARCtrl.ISA.ArcStudy", void 0, ArcStudy);
|
|
1217
|
+
return class_type("ARCtrl.ISA.ArcStudy", void 0, ArcStudy, ArcTables_$reflection());
|
|
1485
1218
|
}
|
|
1486
1219
|
|
|
1487
1220
|
export function ArcStudy_$ctor_Z4F2D842F(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
|
|
@@ -1524,7 +1257,7 @@ export class ArcInvestigation {
|
|
|
1524
1257
|
const registeredStudyIdentifiers_1 = defaultArg(registeredStudyIdentifiers, []);
|
|
1525
1258
|
const comments_1 = defaultArg(comments, []);
|
|
1526
1259
|
const remarks_1 = defaultArg(remarks, []);
|
|
1527
|
-
this["identifier@
|
|
1260
|
+
this["identifier@1144"] = identifier;
|
|
1528
1261
|
this["Title@"] = title;
|
|
1529
1262
|
this["Description@"] = description;
|
|
1530
1263
|
this["SubmissionDate@"] = submissionDate;
|
|
@@ -1537,15 +1270,15 @@ export class ArcInvestigation {
|
|
|
1537
1270
|
this["RegisteredStudyIdentifiers@"] = registeredStudyIdentifiers_1;
|
|
1538
1271
|
this["Comments@"] = comments_1;
|
|
1539
1272
|
this["Remarks@"] = remarks_1;
|
|
1540
|
-
this["init@
|
|
1273
|
+
this["init@1125"] = 1;
|
|
1541
1274
|
}
|
|
1542
1275
|
get Identifier() {
|
|
1543
1276
|
const this$ = this;
|
|
1544
|
-
return this$["identifier@
|
|
1277
|
+
return this$["identifier@1144"];
|
|
1545
1278
|
}
|
|
1546
1279
|
set Identifier(i) {
|
|
1547
1280
|
const this$ = this;
|
|
1548
|
-
this$["identifier@
|
|
1281
|
+
this$["identifier@1144"] = i;
|
|
1549
1282
|
}
|
|
1550
1283
|
get Title() {
|
|
1551
1284
|
const __ = this;
|
|
@@ -2012,6 +1745,54 @@ export class ArcInvestigation {
|
|
|
2012
1745
|
return copy;
|
|
2013
1746
|
};
|
|
2014
1747
|
}
|
|
1748
|
+
GetAllPersons() {
|
|
1749
|
+
const this$ = this;
|
|
1750
|
+
const persons = [];
|
|
1751
|
+
let enumerator = getEnumerator(this$.Assays);
|
|
1752
|
+
try {
|
|
1753
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1754
|
+
const a = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1755
|
+
addRangeInPlace(a.Performers, persons);
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
finally {
|
|
1759
|
+
disposeSafe(enumerator);
|
|
1760
|
+
}
|
|
1761
|
+
let enumerator_1 = getEnumerator(this$.Studies);
|
|
1762
|
+
try {
|
|
1763
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1764
|
+
const s = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1765
|
+
addRangeInPlace(s.Contacts, persons);
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
finally {
|
|
1769
|
+
disposeSafe(enumerator_1);
|
|
1770
|
+
}
|
|
1771
|
+
addRangeInPlace(this$.Contacts, persons);
|
|
1772
|
+
return Array_distinct(Array.from(persons), {
|
|
1773
|
+
Equals: equals,
|
|
1774
|
+
GetHashCode: safeHash,
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
GetAllPublications() {
|
|
1778
|
+
const this$ = this;
|
|
1779
|
+
const pubs = [];
|
|
1780
|
+
let enumerator = getEnumerator(this$.Studies);
|
|
1781
|
+
try {
|
|
1782
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1783
|
+
const s = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1784
|
+
addRangeInPlace(s.Publications, pubs);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
finally {
|
|
1788
|
+
disposeSafe(enumerator);
|
|
1789
|
+
}
|
|
1790
|
+
addRangeInPlace(this$.Publications, pubs);
|
|
1791
|
+
return Array_distinct(Array.from(pubs), {
|
|
1792
|
+
Equals: equals,
|
|
1793
|
+
GetHashCode: safeHash,
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
2015
1796
|
DeregisterMissingAssays() {
|
|
2016
1797
|
const this$ = this;
|
|
2017
1798
|
const inv = this$;
|
|
@@ -2048,6 +1829,31 @@ export class ArcInvestigation {
|
|
|
2048
1829
|
return copy;
|
|
2049
1830
|
};
|
|
2050
1831
|
}
|
|
1832
|
+
UpdateIOTypeByEntityID() {
|
|
1833
|
+
let arg;
|
|
1834
|
+
const this$ = this;
|
|
1835
|
+
const ioMap = ArcTablesAux_getIOMap((arg = toList(delay(() => append_4(collect((study) => study.Tables, this$.Studies), delay(() => collect((assay) => assay.Tables, this$.Assays))))), Array.from(arg)));
|
|
1836
|
+
let enumerator = getEnumerator(this$.Studies);
|
|
1837
|
+
try {
|
|
1838
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1839
|
+
const study_1 = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1840
|
+
ArcTablesAux_applyIOMap(ioMap, study_1.Tables);
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
finally {
|
|
1844
|
+
disposeSafe(enumerator);
|
|
1845
|
+
}
|
|
1846
|
+
let enumerator_1 = getEnumerator(this$.Assays);
|
|
1847
|
+
try {
|
|
1848
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1849
|
+
const assay_1 = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1850
|
+
ArcTablesAux_applyIOMap(ioMap, assay_1.Tables);
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
finally {
|
|
1854
|
+
disposeSafe(enumerator_1);
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
2051
1857
|
Copy() {
|
|
2052
1858
|
const this$ = this;
|
|
2053
1859
|
const nextAssays = [];
|
|
@@ -2175,6 +1981,10 @@ export class ArcInvestigation {
|
|
|
2175
1981
|
const this$ = this;
|
|
2176
1982
|
return (other instanceof ArcInvestigation) && ((i = other, this$.StructurallyEquals(i)));
|
|
2177
1983
|
}
|
|
1984
|
+
GetHashCode() {
|
|
1985
|
+
const this$ = this;
|
|
1986
|
+
return HashCodes_boxHashArray([this$.Identifier, HashCodes_boxHashOption(this$.Title), HashCodes_boxHashOption(this$.Description), HashCodes_boxHashOption(this$.SubmissionDate), HashCodes_boxHashOption(this$.PublicReleaseDate), HashCodes_boxHashArray(this$.Publications), HashCodes_boxHashArray(this$.Contacts), HashCodes_boxHashArray(this$.OntologySourceReferences), HashCodes_boxHashArray(Array.from(this$.Assays)), HashCodes_boxHashArray(Array.from(this$.Studies)), HashCodes_boxHashArray(Array.from(this$.RegisteredStudyIdentifiers)), HashCodes_boxHashArray(this$.Comments), HashCodes_boxHashArray(this$.Remarks)]) | 0;
|
|
1987
|
+
}
|
|
2178
1988
|
}
|
|
2179
1989
|
|
|
2180
1990
|
export function ArcInvestigation_$reflection() {
|