@nfdi4plants/arctrl 1.0.0-beta.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/ARC.js +9 -8
  2. package/Contracts/Contracts.ArcTypes.js +12 -9
  3. package/ISA/ISA/ArcTypes/ArcTable.js +17 -17
  4. package/ISA/ISA/ArcTypes/ArcTableAux.js +13 -11
  5. package/ISA/ISA/ArcTypes/ArcTables.js +6 -6
  6. package/ISA/ISA/ArcTypes/ArcTypes.js +209 -185
  7. package/ISA/ISA/ArcTypes/CompositeHeader.js +2 -2
  8. package/ISA/ISA/ArcTypes/CompositeRow.js +4 -4
  9. package/ISA/ISA/Fable.js +83 -10
  10. package/ISA/ISA/Helper.js +11 -4
  11. package/ISA/ISA/Identifier.js +10 -8
  12. package/ISA/ISA/JsonTypes/ColumnIndex.js +2 -2
  13. package/ISA/ISA/JsonTypes/Component.js +24 -16
  14. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +3 -2
  15. package/ISA/ISA/JsonTypes/Process.js +7 -6
  16. package/ISA/ISA/JsonTypes/ProcessParameterValue.js +70 -92
  17. package/ISA/ISA/JsonTypes/ProtocolParameter.js +51 -79
  18. package/ISA/ISA/JsonTypes/Value.js +100 -165
  19. package/ISA/ISA/Regex.js +12 -6
  20. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +197 -0
  21. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +79 -0
  22. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +77 -0
  23. package/ISA/ISA.Json/ArcTypes/ArcTable.js +57 -0
  24. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +51 -0
  25. package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +82 -0
  26. package/ISA/ISA.Json/ArcTypes/IOType.js +35 -0
  27. package/ISA/ISA.Json/Assay.js +0 -18
  28. package/ISA/ISA.Json/Investigation.js +17 -35
  29. package/ISA/ISA.Json/Process.js +3 -3
  30. package/ISA/ISA.Json/Study.js +0 -18
  31. package/ISA/ISA.Spreadsheet/ArcAssay.js +3 -3
  32. package/ISA/ISA.Spreadsheet/ArcInvestigation.js +21 -5
  33. package/ISA/ISA.Spreadsheet/ArcStudy.js +3 -5
  34. package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +3 -3
  35. package/SemVer.js +5 -7
  36. package/Templates/Template.Json.js +12 -17
  37. package/fable_modules/project_cracked.json +1 -1
  38. package/package.json +5 -5
@@ -1,12 +1,12 @@
1
1
  import { map as map_1, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.5.0/Option.js";
2
2
  import { concat, collect, append as append_4, tryFind, removeAt, tryFindIndex, exists, choose, item, map as map_2, delay, toList, fold, length, forAll, contains, filter, toArray } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
3
3
  import { defaultOf, safeHash, equals, disposeSafe, getEnumerator, stringHash } from "../../../fable_modules/fable-library.4.5.0/Util.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.5.0/Array.js";
4
+ import { addRangeInPlace, removeInPlace, equalsWith, append as append_3, contains as contains_1, map } from "../../../fable_modules/fable-library.4.5.0/Array.js";
5
5
  import { distinctBy, Array_distinct } from "../../../fable_modules/fable-library.4.5.0/Seq2.js";
6
6
  import { printf, toText } from "../../../fable_modules/fable-library.4.5.0/String.js";
7
- import { create, match } from "../../../fable_modules/fable-library.4.5.0/RegExp.js";
7
+ import { ActivePatterns_$007CRegex$007C_$007C } from "../Regex.js";
8
8
  import { OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
9
- import { Value_fromString_Z721C83C5, Value__get_Text } from "../JsonTypes/Value.js";
9
+ import { Value } from "../JsonTypes/Value.js";
10
10
  import { AnnotationValue } from "../JsonTypes/AnnotationValue.js";
11
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";
@@ -27,21 +27,21 @@ export class ArcAssay extends ArcTables {
27
27
  super(defaultArg(tables, []));
28
28
  const performers_1 = defaultArg(performers, []);
29
29
  const comments_1 = defaultArg(comments, []);
30
- this["identifier@87"] = identifier;
30
+ this["identifier@96"] = identifier;
31
31
  this.investigation = void 0;
32
- this["MeasurementType@"] = measurementType;
33
- this["TechnologyType@"] = technologyType;
34
- this["TechnologyPlatform@"] = technologyPlatform;
35
- this["Performers@"] = performers_1;
36
- this["Comments@"] = comments_1;
32
+ this["measurementType@98"] = measurementType;
33
+ this["technologyType@99"] = technologyType;
34
+ this["technologyPlatform@100"] = technologyPlatform;
35
+ this["performers@101-1"] = performers_1;
36
+ this["comments@102-1"] = comments_1;
37
37
  }
38
38
  get Identifier() {
39
39
  const this$ = this;
40
- return this$["identifier@87"];
40
+ return this$["identifier@96"];
41
41
  }
42
42
  set Identifier(i) {
43
43
  const this$ = this;
44
- this$["identifier@87"] = i;
44
+ this$["identifier@96"] = i;
45
45
  }
46
46
  get Investigation() {
47
47
  const this$ = this;
@@ -51,48 +51,45 @@ export class ArcAssay extends ArcTables {
51
51
  const this$ = this;
52
52
  this$.investigation = i;
53
53
  }
54
- static get FileName() {
55
- return "isa.assay.xlsx";
56
- }
57
54
  get MeasurementType() {
58
- const __ = this;
59
- return unwrap(__["MeasurementType@"]);
55
+ const this$ = this;
56
+ return unwrap(this$["measurementType@98"]);
60
57
  }
61
- set MeasurementType(v) {
62
- const __ = this;
63
- __["MeasurementType@"] = v;
58
+ set MeasurementType(n) {
59
+ const this$ = this;
60
+ this$["measurementType@98"] = n;
64
61
  }
65
62
  get TechnologyType() {
66
- const __ = this;
67
- return unwrap(__["TechnologyType@"]);
63
+ const this$ = this;
64
+ return unwrap(this$["technologyType@99"]);
68
65
  }
69
- set TechnologyType(v) {
70
- const __ = this;
71
- __["TechnologyType@"] = v;
66
+ set TechnologyType(n) {
67
+ const this$ = this;
68
+ this$["technologyType@99"] = n;
72
69
  }
73
70
  get TechnologyPlatform() {
74
- const __ = this;
75
- return unwrap(__["TechnologyPlatform@"]);
71
+ const this$ = this;
72
+ return unwrap(this$["technologyPlatform@100"]);
76
73
  }
77
- set TechnologyPlatform(v) {
78
- const __ = this;
79
- __["TechnologyPlatform@"] = v;
74
+ set TechnologyPlatform(n) {
75
+ const this$ = this;
76
+ this$["technologyPlatform@100"] = n;
80
77
  }
81
78
  get Performers() {
82
- const __ = this;
83
- return __["Performers@"];
79
+ const this$ = this;
80
+ return this$["performers@101-1"];
84
81
  }
85
- set Performers(v) {
86
- const __ = this;
87
- __["Performers@"] = v;
82
+ set Performers(n) {
83
+ const this$ = this;
84
+ this$["performers@101-1"] = n;
88
85
  }
89
86
  get Comments() {
90
- const __ = this;
91
- return __["Comments@"];
87
+ const this$ = this;
88
+ return this$["comments@102-1"];
92
89
  }
93
- set Comments(v) {
94
- const __ = this;
95
- __["Comments@"] = v;
90
+ set Comments(n) {
91
+ const this$ = this;
92
+ this$["comments@102-1"] = n;
96
93
  }
97
94
  static init(identifier) {
98
95
  return new ArcAssay(identifier);
@@ -103,6 +100,9 @@ export class ArcAssay extends ArcTables {
103
100
  static make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
104
101
  return new ArcAssay(identifier, unwrap(measurementType), unwrap(technologyType), unwrap(technologyPlatform), tables, performers, comments);
105
102
  }
103
+ static get FileName() {
104
+ return "isa.assay.xlsx";
105
+ }
106
106
  get StudiesRegisteredIn() {
107
107
  const this$ = this;
108
108
  const matchValue = this$.Investigation;
@@ -441,12 +441,16 @@ export class ArcAssay extends ArcTables {
441
441
  return (matchValue == null) ? (`${tp.NameText}`) : (`${tp.NameText} (${tp.TermAccessionShort})`);
442
442
  }
443
443
  static decomposeTechnologyPlatform(name) {
444
- const r = match(create("(?<value>[^\\(]+) \\((?<ontology>[^(]*:[^)]*)\\)"), name);
445
- if (r != null) {
444
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<value>[^\\(]+) \\((?<ontology>[^(]*:[^)]*)\\)", name);
445
+ if (activePatternResult != null) {
446
+ const r = activePatternResult;
446
447
  let oa;
447
448
  const termAnnotation = (r.groups && r.groups.ontology) || "";
448
449
  oa = OntologyAnnotation.fromTermAnnotation(termAnnotation);
449
- return new OntologyAnnotation(oa.ID, new AnnotationValue(0, [Value__get_Text(Value_fromString_Z721C83C5((r.groups && r.groups.value) || ""))]), oa.TermSourceREF, oa.TermAccessionNumber, oa.Comments);
450
+ let v;
451
+ const value = (r.groups && r.groups.value) || "";
452
+ v = Value.fromString(value);
453
+ return new OntologyAnnotation(oa.ID, new AnnotationValue(0, [v.Text]), oa.TermSourceREF, oa.TermAccessionNumber, oa.Comments);
450
454
  }
451
455
  else {
452
456
  return OntologyAnnotation.fromString(name);
@@ -558,26 +562,26 @@ export class ArcStudy extends ArcTables {
558
562
  const registeredAssayIdentifiers_1 = defaultArg(registeredAssayIdentifiers, []);
559
563
  const factors_1 = defaultArg(factors, []);
560
564
  const comments_1 = defaultArg(comments, []);
561
- this["identifier@564"] = identifier;
565
+ this["identifier@570"] = identifier;
562
566
  this.investigation = void 0;
563
- this["Title@"] = title;
564
- this["Description@"] = description;
565
- this["SubmissionDate@"] = submissionDate;
566
- this["PublicReleaseDate@"] = publicReleaseDate;
567
- this["Publications@"] = publications_1;
568
- this["Contacts@"] = contacts_1;
569
- this["StudyDesignDescriptors@"] = studyDesignDescriptors_1;
570
- this["RegisteredAssayIdentifiers@"] = registeredAssayIdentifiers_1;
571
- this["Factors@"] = factors_1;
572
- this["Comments@"] = comments_1;
567
+ this["title@572"] = title;
568
+ this["description@573"] = description;
569
+ this["submissionDate@574"] = submissionDate;
570
+ this["publicReleaseDate@575"] = publicReleaseDate;
571
+ this["publications@576-1"] = publications_1;
572
+ this["contacts@577-1"] = contacts_1;
573
+ this["studyDesignDescriptors@578-1"] = studyDesignDescriptors_1;
574
+ this["registeredAssayIdentifiers@579-1"] = registeredAssayIdentifiers_1;
575
+ this["factors@580-1"] = factors_1;
576
+ this["comments@581-1"] = comments_1;
573
577
  }
574
578
  get Identifier() {
575
579
  const this$ = this;
576
- return this$["identifier@564"];
580
+ return this$["identifier@570"];
577
581
  }
578
582
  set Identifier(i) {
579
583
  const this$ = this;
580
- this$["identifier@564"] = i;
584
+ this$["identifier@570"] = i;
581
585
  }
582
586
  get Investigation() {
583
587
  const this$ = this;
@@ -588,84 +592,84 @@ export class ArcStudy extends ArcTables {
588
592
  this$.investigation = i;
589
593
  }
590
594
  get Title() {
591
- const __ = this;
592
- return unwrap(__["Title@"]);
595
+ const this$ = this;
596
+ return unwrap(this$["title@572"]);
593
597
  }
594
- set Title(v) {
595
- const __ = this;
596
- __["Title@"] = v;
598
+ set Title(n) {
599
+ const this$ = this;
600
+ this$["title@572"] = n;
597
601
  }
598
602
  get Description() {
599
- const __ = this;
600
- return unwrap(__["Description@"]);
603
+ const this$ = this;
604
+ return unwrap(this$["description@573"]);
601
605
  }
602
- set Description(v) {
603
- const __ = this;
604
- __["Description@"] = v;
606
+ set Description(n) {
607
+ const this$ = this;
608
+ this$["description@573"] = n;
605
609
  }
606
610
  get SubmissionDate() {
607
- const __ = this;
608
- return unwrap(__["SubmissionDate@"]);
611
+ const this$ = this;
612
+ return unwrap(this$["submissionDate@574"]);
609
613
  }
610
- set SubmissionDate(v) {
611
- const __ = this;
612
- __["SubmissionDate@"] = v;
614
+ set SubmissionDate(n) {
615
+ const this$ = this;
616
+ this$["submissionDate@574"] = n;
613
617
  }
614
618
  get PublicReleaseDate() {
615
- const __ = this;
616
- return unwrap(__["PublicReleaseDate@"]);
619
+ const this$ = this;
620
+ return unwrap(this$["publicReleaseDate@575"]);
617
621
  }
618
- set PublicReleaseDate(v) {
619
- const __ = this;
620
- __["PublicReleaseDate@"] = v;
622
+ set PublicReleaseDate(n) {
623
+ const this$ = this;
624
+ this$["publicReleaseDate@575"] = n;
621
625
  }
622
626
  get Publications() {
623
- const __ = this;
624
- return __["Publications@"];
627
+ const this$ = this;
628
+ return this$["publications@576-1"];
625
629
  }
626
- set Publications(v) {
627
- const __ = this;
628
- __["Publications@"] = v;
630
+ set Publications(n) {
631
+ const this$ = this;
632
+ this$["publications@576-1"] = n;
629
633
  }
630
634
  get Contacts() {
631
- const __ = this;
632
- return __["Contacts@"];
635
+ const this$ = this;
636
+ return this$["contacts@577-1"];
633
637
  }
634
- set Contacts(v) {
635
- const __ = this;
636
- __["Contacts@"] = v;
638
+ set Contacts(n) {
639
+ const this$ = this;
640
+ this$["contacts@577-1"] = n;
637
641
  }
638
642
  get StudyDesignDescriptors() {
639
- const __ = this;
640
- return __["StudyDesignDescriptors@"];
643
+ const this$ = this;
644
+ return this$["studyDesignDescriptors@578-1"];
641
645
  }
642
- set StudyDesignDescriptors(v) {
643
- const __ = this;
644
- __["StudyDesignDescriptors@"] = v;
646
+ set StudyDesignDescriptors(n) {
647
+ const this$ = this;
648
+ this$["studyDesignDescriptors@578-1"] = n;
645
649
  }
646
650
  get RegisteredAssayIdentifiers() {
647
- const __ = this;
648
- return __["RegisteredAssayIdentifiers@"];
651
+ const this$ = this;
652
+ return this$["registeredAssayIdentifiers@579-1"];
649
653
  }
650
- set RegisteredAssayIdentifiers(v) {
651
- const __ = this;
652
- __["RegisteredAssayIdentifiers@"] = v;
654
+ set RegisteredAssayIdentifiers(n) {
655
+ const this$ = this;
656
+ this$["registeredAssayIdentifiers@579-1"] = n;
653
657
  }
654
658
  get Factors() {
655
- const __ = this;
656
- return __["Factors@"];
659
+ const this$ = this;
660
+ return this$["factors@580-1"];
657
661
  }
658
- set Factors(v) {
659
- const __ = this;
660
- __["Factors@"] = v;
662
+ set Factors(n) {
663
+ const this$ = this;
664
+ this$["factors@580-1"] = n;
661
665
  }
662
666
  get Comments() {
663
- const __ = this;
664
- return __["Comments@"];
667
+ const this$ = this;
668
+ return this$["comments@581-1"];
665
669
  }
666
- set Comments(v) {
667
- const __ = this;
668
- __["Comments@"] = v;
670
+ set Comments(n) {
671
+ const this$ = this;
672
+ this$["comments@581-1"] = n;
669
673
  }
670
674
  static init(identifier) {
671
675
  return new ArcStudy(identifier);
@@ -1266,124 +1270,124 @@ export class ArcInvestigation {
1266
1270
  const registeredStudyIdentifiers_1 = defaultArg(registeredStudyIdentifiers, []);
1267
1271
  const comments_1 = defaultArg(comments, []);
1268
1272
  const remarks_1 = defaultArg(remarks, []);
1269
- this["identifier@1162"] = identifier;
1270
- this["Title@"] = title;
1271
- this["Description@"] = description;
1272
- this["SubmissionDate@"] = submissionDate;
1273
- this["PublicReleaseDate@"] = publicReleaseDate;
1274
- this["OntologySourceReferences@"] = ontologySourceReferences_1;
1275
- this["Publications@"] = publications_1;
1276
- this["Contacts@"] = contacts_1;
1277
- this["Assays@"] = assays_1;
1278
- this["Studies@"] = studies_1;
1279
- this["RegisteredStudyIdentifiers@"] = registeredStudyIdentifiers_1;
1280
- this["Comments@"] = comments_1;
1281
- this["Remarks@"] = remarks_1;
1282
- this["init@1143"] = 1;
1273
+ this["identifier@1173"] = identifier;
1274
+ this["title@1174"] = title;
1275
+ this["description@1175"] = description;
1276
+ this["submissionDate@1176"] = submissionDate;
1277
+ this["publicReleaseDate@1177"] = publicReleaseDate;
1278
+ this["ontologySourceReferences@1178-1"] = ontologySourceReferences_1;
1279
+ this["publications@1179-1"] = publications_1;
1280
+ this["contacts@1180-1"] = contacts_1;
1281
+ this["assays@1181-1"] = assays_1;
1282
+ this["studies@1182-1"] = studies_1;
1283
+ this["registeredStudyIdentifiers@1183-1"] = registeredStudyIdentifiers_1;
1284
+ this["comments@1184-1"] = comments_1;
1285
+ this["remarks@1185-1"] = remarks_1;
1286
+ this["init@1154"] = 1;
1283
1287
  }
1284
1288
  get Identifier() {
1285
1289
  const this$ = this;
1286
- return this$["identifier@1162"];
1290
+ return this$["identifier@1173"];
1287
1291
  }
1288
1292
  set Identifier(i) {
1289
1293
  const this$ = this;
1290
- this$["identifier@1162"] = i;
1294
+ this$["identifier@1173"] = i;
1291
1295
  }
1292
1296
  get Title() {
1293
- const __ = this;
1294
- return unwrap(__["Title@"]);
1297
+ const this$ = this;
1298
+ return unwrap(this$["title@1174"]);
1295
1299
  }
1296
- set Title(v) {
1297
- const __ = this;
1298
- __["Title@"] = v;
1300
+ set Title(n) {
1301
+ const this$ = this;
1302
+ this$["title@1174"] = n;
1299
1303
  }
1300
1304
  get Description() {
1301
- const __ = this;
1302
- return unwrap(__["Description@"]);
1305
+ const this$ = this;
1306
+ return unwrap(this$["description@1175"]);
1303
1307
  }
1304
- set Description(v) {
1305
- const __ = this;
1306
- __["Description@"] = v;
1308
+ set Description(n) {
1309
+ const this$ = this;
1310
+ this$["description@1175"] = n;
1307
1311
  }
1308
1312
  get SubmissionDate() {
1309
- const __ = this;
1310
- return unwrap(__["SubmissionDate@"]);
1313
+ const this$ = this;
1314
+ return unwrap(this$["submissionDate@1176"]);
1311
1315
  }
1312
- set SubmissionDate(v) {
1313
- const __ = this;
1314
- __["SubmissionDate@"] = v;
1316
+ set SubmissionDate(n) {
1317
+ const this$ = this;
1318
+ this$["submissionDate@1176"] = n;
1315
1319
  }
1316
1320
  get PublicReleaseDate() {
1317
- const __ = this;
1318
- return unwrap(__["PublicReleaseDate@"]);
1321
+ const this$ = this;
1322
+ return unwrap(this$["publicReleaseDate@1177"]);
1319
1323
  }
1320
- set PublicReleaseDate(v) {
1321
- const __ = this;
1322
- __["PublicReleaseDate@"] = v;
1324
+ set PublicReleaseDate(n) {
1325
+ const this$ = this;
1326
+ this$["publicReleaseDate@1177"] = n;
1323
1327
  }
1324
1328
  get OntologySourceReferences() {
1325
- const __ = this;
1326
- return __["OntologySourceReferences@"];
1329
+ const this$ = this;
1330
+ return this$["ontologySourceReferences@1178-1"];
1327
1331
  }
1328
- set OntologySourceReferences(v) {
1329
- const __ = this;
1330
- __["OntologySourceReferences@"] = v;
1332
+ set OntologySourceReferences(n) {
1333
+ const this$ = this;
1334
+ this$["ontologySourceReferences@1178-1"] = n;
1331
1335
  }
1332
1336
  get Publications() {
1333
- const __ = this;
1334
- return __["Publications@"];
1337
+ const this$ = this;
1338
+ return this$["publications@1179-1"];
1335
1339
  }
1336
- set Publications(v) {
1337
- const __ = this;
1338
- __["Publications@"] = v;
1340
+ set Publications(n) {
1341
+ const this$ = this;
1342
+ this$["publications@1179-1"] = n;
1339
1343
  }
1340
1344
  get Contacts() {
1341
- const __ = this;
1342
- return __["Contacts@"];
1345
+ const this$ = this;
1346
+ return this$["contacts@1180-1"];
1343
1347
  }
1344
- set Contacts(v) {
1345
- const __ = this;
1346
- __["Contacts@"] = v;
1348
+ set Contacts(n) {
1349
+ const this$ = this;
1350
+ this$["contacts@1180-1"] = n;
1347
1351
  }
1348
1352
  get Assays() {
1349
- const __ = this;
1350
- return __["Assays@"];
1353
+ const this$ = this;
1354
+ return this$["assays@1181-1"];
1351
1355
  }
1352
- set Assays(v) {
1353
- const __ = this;
1354
- __["Assays@"] = v;
1356
+ set Assays(n) {
1357
+ const this$ = this;
1358
+ this$["assays@1181-1"] = n;
1355
1359
  }
1356
1360
  get Studies() {
1357
- const __ = this;
1358
- return __["Studies@"];
1361
+ const this$ = this;
1362
+ return this$["studies@1182-1"];
1359
1363
  }
1360
- set Studies(v) {
1361
- const __ = this;
1362
- __["Studies@"] = v;
1364
+ set Studies(n) {
1365
+ const this$ = this;
1366
+ this$["studies@1182-1"] = n;
1363
1367
  }
1364
1368
  get RegisteredStudyIdentifiers() {
1365
- const __ = this;
1366
- return __["RegisteredStudyIdentifiers@"];
1369
+ const this$ = this;
1370
+ return this$["registeredStudyIdentifiers@1183-1"];
1367
1371
  }
1368
- set RegisteredStudyIdentifiers(v) {
1369
- const __ = this;
1370
- __["RegisteredStudyIdentifiers@"] = v;
1372
+ set RegisteredStudyIdentifiers(n) {
1373
+ const this$ = this;
1374
+ this$["registeredStudyIdentifiers@1183-1"] = n;
1371
1375
  }
1372
1376
  get Comments() {
1373
- const __ = this;
1374
- return __["Comments@"];
1377
+ const this$ = this;
1378
+ return this$["comments@1184-1"];
1375
1379
  }
1376
- set Comments(v) {
1377
- const __ = this;
1378
- __["Comments@"] = v;
1380
+ set Comments(n) {
1381
+ const this$ = this;
1382
+ this$["comments@1184-1"] = n;
1379
1383
  }
1380
1384
  get Remarks() {
1381
- const __ = this;
1382
- return __["Remarks@"];
1385
+ const this$ = this;
1386
+ return this$["remarks@1185-1"];
1383
1387
  }
1384
- set Remarks(v) {
1385
- const __ = this;
1386
- __["Remarks@"] = v;
1388
+ set Remarks(n) {
1389
+ const this$ = this;
1390
+ this$["remarks@1185-1"] = n;
1387
1391
  }
1388
1392
  static get FileName() {
1389
1393
  return "isa.investigation.xlsx";
@@ -1552,8 +1556,13 @@ export class ArcInvestigation {
1552
1556
  }
1553
1557
  GetAssay(assayIdentifier) {
1554
1558
  const this$ = this;
1555
- const index = this$.GetAssayIndex(assayIdentifier) | 0;
1556
- return this$.GetAssayAt(index);
1559
+ const matchValue = this$.TryGetAssay(assayIdentifier);
1560
+ if (matchValue == null) {
1561
+ throw new Error(ArcTypesAux_ErrorMsgs_unableToFindAssayIdentifier(assayIdentifier, this$.Identifier));
1562
+ }
1563
+ else {
1564
+ return matchValue;
1565
+ }
1557
1566
  }
1558
1567
  static getAssay(assayIdentifier) {
1559
1568
  return (inv) => {
@@ -1780,7 +1789,13 @@ export class ArcInvestigation {
1780
1789
  }
1781
1790
  GetStudy(studyIdentifier) {
1782
1791
  const this$ = this;
1783
- return defaultArg(tryFind_1((s) => (s.Identifier === studyIdentifier), this$.Studies), defaultOf());
1792
+ const matchValue = this$.TryGetStudy(studyIdentifier);
1793
+ if (matchValue == null) {
1794
+ throw new Error(ArcTypesAux_ErrorMsgs_unableToFindStudyIdentifier(studyIdentifier, this$.Identifier));
1795
+ }
1796
+ else {
1797
+ return matchValue;
1798
+ }
1784
1799
  }
1785
1800
  static getStudy(studyIdentifier) {
1786
1801
  return (inv) => {
@@ -1936,7 +1951,8 @@ export class ArcInvestigation {
1936
1951
  try {
1937
1952
  while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
1938
1953
  const study = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
1939
- let enumerator_1 = getEnumerator(Array.from(study.RegisteredAssayIdentifiers));
1954
+ const rai = study.RegisteredAssayIdentifiers;
1955
+ let enumerator_1 = getEnumerator(Array.from(rai));
1940
1956
  try {
1941
1957
  while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
1942
1958
  const registeredAssay = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
@@ -2130,3 +2146,11 @@ export function ArcInvestigation_$ctor_21AB11E9(identifier, title, description,
2130
2146
  return new ArcInvestigation(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, remarks);
2131
2147
  }
2132
2148
 
2149
+ export function ArcTypesAux_ErrorMsgs_unableToFindAssayIdentifier(assayIdentifier, investigationIdentifier) {
2150
+ return `Error. Unable to find assay with identifier '${assayIdentifier}' in investigation ${investigationIdentifier}.`;
2151
+ }
2152
+
2153
+ export function ArcTypesAux_ErrorMsgs_unableToFindStudyIdentifier(studyIdentifer, investigationIdentifier) {
2154
+ return `Error. Unable to find study with identifier '${studyIdentifer}' in investigation ${investigationIdentifier}.`;
2155
+ }
2156
+
@@ -5,7 +5,7 @@ import { ActivePatterns_$007CTermColumn$007C_$007C, Pattern_OutputPattern, Patte
5
5
  import { equals } from "../../../fable_modules/fable-library.4.5.0/Util.js";
6
6
  import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
7
7
  import { OntologyAnnotation_$reflection, OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
8
- import { ProtocolParameter_create_Z6C54B221 } from "../JsonTypes/ProtocolParameter.js";
8
+ import { ProtocolParameter } from "../JsonTypes/ProtocolParameter.js";
9
9
  import { Factor } from "../JsonTypes/Factor.js";
10
10
  import { MaterialAttribute_create_Z6C54B221 } from "../JsonTypes/MaterialAttribute.js";
11
11
  import { Component_create_61502994 } from "../JsonTypes/Component.js";
@@ -547,7 +547,7 @@ export class CompositeHeader extends Union {
547
547
  }
548
548
  TryParameter() {
549
549
  const this$ = this;
550
- return (this$.tag === 3) ? ProtocolParameter_create_Z6C54B221(void 0, this$.fields[0]) : void 0;
550
+ return (this$.tag === 3) ? ProtocolParameter.create(void 0, this$.fields[0]) : void 0;
551
551
  }
552
552
  TryFactor() {
553
553
  const this$ = this;
@@ -1,8 +1,8 @@
1
1
  import { fold } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
2
2
  import { Protocol_create_Z7DFD6E67, Protocol_addComponent, Protocol_addParameter, Protocol_setName, Protocol_setDescription, Protocol_setUri, Protocol_setVersion, Protocol_setProtocolType } from "../JsonTypes/Protocol.js";
3
- import { ProtocolParameter_create_Z6C54B221 } from "../JsonTypes/ProtocolParameter.js";
3
+ import { ProtocolParameter } from "../JsonTypes/ProtocolParameter.js";
4
4
  import { Component_create_61502994 } from "../JsonTypes/Component.js";
5
- import { Value, Value_fromString_Z721C83C5 } from "../JsonTypes/Value.js";
5
+ import { Value } from "../JsonTypes/Value.js";
6
6
 
7
7
  export function toProtocol(tableName, row) {
8
8
  return fold((p, hc) => {
@@ -98,9 +98,9 @@ export function toProtocol(tableName, row) {
98
98
  case 4:
99
99
  return Protocol_setName(p, v_3);
100
100
  case 5:
101
- return Protocol_addParameter(ProtocolParameter_create_Z6C54B221(void 0, oa_1), p);
101
+ return Protocol_addParameter(ProtocolParameter.create(void 0, oa_1), p);
102
102
  case 6:
103
- return Protocol_addComponent(Component_create_61502994(void 0, Value_fromString_Z721C83C5(v_4), unit, oa_2), p);
103
+ return Protocol_addComponent(Component_create_61502994(void 0, Value.fromString(v_4), unit, oa_2), p);
104
104
  case 7:
105
105
  return Protocol_addComponent(Component_create_61502994(void 0, new Value(0, [t]), void 0, oa_3), p);
106
106
  default: