@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.
- package/ARC.js +9 -8
- package/Contracts/Contracts.ArcTypes.js +12 -9
- package/ISA/ISA/ArcTypes/ArcTable.js +17 -17
- package/ISA/ISA/ArcTypes/ArcTableAux.js +13 -11
- package/ISA/ISA/ArcTypes/ArcTables.js +6 -6
- package/ISA/ISA/ArcTypes/ArcTypes.js +209 -185
- package/ISA/ISA/ArcTypes/CompositeHeader.js +2 -2
- package/ISA/ISA/ArcTypes/CompositeRow.js +4 -4
- package/ISA/ISA/Fable.js +83 -10
- package/ISA/ISA/Helper.js +11 -4
- package/ISA/ISA/Identifier.js +10 -8
- package/ISA/ISA/JsonTypes/ColumnIndex.js +2 -2
- package/ISA/ISA/JsonTypes/Component.js +24 -16
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +3 -2
- package/ISA/ISA/JsonTypes/Process.js +7 -6
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +70 -92
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +51 -79
- package/ISA/ISA/JsonTypes/Value.js +100 -165
- package/ISA/ISA/Regex.js +12 -6
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +197 -0
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +79 -0
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +77 -0
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +57 -0
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +51 -0
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +82 -0
- package/ISA/ISA.Json/ArcTypes/IOType.js +35 -0
- package/ISA/ISA.Json/Assay.js +0 -18
- package/ISA/ISA.Json/Investigation.js +17 -35
- package/ISA/ISA.Json/Process.js +3 -3
- package/ISA/ISA.Json/Study.js +0 -18
- package/ISA/ISA.Spreadsheet/ArcAssay.js +3 -3
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +21 -5
- package/ISA/ISA.Spreadsheet/ArcStudy.js +3 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +3 -3
- package/SemVer.js +5 -7
- package/Templates/Template.Json.js +12 -17
- package/fable_modules/project_cracked.json +1 -1
- 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,
|
|
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 {
|
|
7
|
+
import { ActivePatterns_$007CRegex$007C_$007C } from "../Regex.js";
|
|
8
8
|
import { OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
|
|
9
|
-
import {
|
|
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@
|
|
30
|
+
this["identifier@96"] = identifier;
|
|
31
31
|
this.investigation = void 0;
|
|
32
|
-
this["
|
|
33
|
-
this["
|
|
34
|
-
this["
|
|
35
|
-
this["
|
|
36
|
-
this["
|
|
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@
|
|
40
|
+
return this$["identifier@96"];
|
|
41
41
|
}
|
|
42
42
|
set Identifier(i) {
|
|
43
43
|
const this$ = this;
|
|
44
|
-
this$["identifier@
|
|
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
|
|
59
|
-
return unwrap(
|
|
55
|
+
const this$ = this;
|
|
56
|
+
return unwrap(this$["measurementType@98"]);
|
|
60
57
|
}
|
|
61
|
-
set MeasurementType(
|
|
62
|
-
const
|
|
63
|
-
|
|
58
|
+
set MeasurementType(n) {
|
|
59
|
+
const this$ = this;
|
|
60
|
+
this$["measurementType@98"] = n;
|
|
64
61
|
}
|
|
65
62
|
get TechnologyType() {
|
|
66
|
-
const
|
|
67
|
-
return unwrap(
|
|
63
|
+
const this$ = this;
|
|
64
|
+
return unwrap(this$["technologyType@99"]);
|
|
68
65
|
}
|
|
69
|
-
set TechnologyType(
|
|
70
|
-
const
|
|
71
|
-
|
|
66
|
+
set TechnologyType(n) {
|
|
67
|
+
const this$ = this;
|
|
68
|
+
this$["technologyType@99"] = n;
|
|
72
69
|
}
|
|
73
70
|
get TechnologyPlatform() {
|
|
74
|
-
const
|
|
75
|
-
return unwrap(
|
|
71
|
+
const this$ = this;
|
|
72
|
+
return unwrap(this$["technologyPlatform@100"]);
|
|
76
73
|
}
|
|
77
|
-
set TechnologyPlatform(
|
|
78
|
-
const
|
|
79
|
-
|
|
74
|
+
set TechnologyPlatform(n) {
|
|
75
|
+
const this$ = this;
|
|
76
|
+
this$["technologyPlatform@100"] = n;
|
|
80
77
|
}
|
|
81
78
|
get Performers() {
|
|
82
|
-
const
|
|
83
|
-
return
|
|
79
|
+
const this$ = this;
|
|
80
|
+
return this$["performers@101-1"];
|
|
84
81
|
}
|
|
85
|
-
set Performers(
|
|
86
|
-
const
|
|
87
|
-
|
|
82
|
+
set Performers(n) {
|
|
83
|
+
const this$ = this;
|
|
84
|
+
this$["performers@101-1"] = n;
|
|
88
85
|
}
|
|
89
86
|
get Comments() {
|
|
90
|
-
const
|
|
91
|
-
return
|
|
87
|
+
const this$ = this;
|
|
88
|
+
return this$["comments@102-1"];
|
|
92
89
|
}
|
|
93
|
-
set Comments(
|
|
94
|
-
const
|
|
95
|
-
|
|
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
|
|
445
|
-
if (
|
|
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
|
-
|
|
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@
|
|
565
|
+
this["identifier@570"] = identifier;
|
|
562
566
|
this.investigation = void 0;
|
|
563
|
-
this["
|
|
564
|
-
this["
|
|
565
|
-
this["
|
|
566
|
-
this["
|
|
567
|
-
this["
|
|
568
|
-
this["
|
|
569
|
-
this["
|
|
570
|
-
this["
|
|
571
|
-
this["
|
|
572
|
-
this["
|
|
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@
|
|
580
|
+
return this$["identifier@570"];
|
|
577
581
|
}
|
|
578
582
|
set Identifier(i) {
|
|
579
583
|
const this$ = this;
|
|
580
|
-
this$["identifier@
|
|
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
|
|
592
|
-
return unwrap(
|
|
595
|
+
const this$ = this;
|
|
596
|
+
return unwrap(this$["title@572"]);
|
|
593
597
|
}
|
|
594
|
-
set Title(
|
|
595
|
-
const
|
|
596
|
-
|
|
598
|
+
set Title(n) {
|
|
599
|
+
const this$ = this;
|
|
600
|
+
this$["title@572"] = n;
|
|
597
601
|
}
|
|
598
602
|
get Description() {
|
|
599
|
-
const
|
|
600
|
-
return unwrap(
|
|
603
|
+
const this$ = this;
|
|
604
|
+
return unwrap(this$["description@573"]);
|
|
601
605
|
}
|
|
602
|
-
set Description(
|
|
603
|
-
const
|
|
604
|
-
|
|
606
|
+
set Description(n) {
|
|
607
|
+
const this$ = this;
|
|
608
|
+
this$["description@573"] = n;
|
|
605
609
|
}
|
|
606
610
|
get SubmissionDate() {
|
|
607
|
-
const
|
|
608
|
-
return unwrap(
|
|
611
|
+
const this$ = this;
|
|
612
|
+
return unwrap(this$["submissionDate@574"]);
|
|
609
613
|
}
|
|
610
|
-
set SubmissionDate(
|
|
611
|
-
const
|
|
612
|
-
|
|
614
|
+
set SubmissionDate(n) {
|
|
615
|
+
const this$ = this;
|
|
616
|
+
this$["submissionDate@574"] = n;
|
|
613
617
|
}
|
|
614
618
|
get PublicReleaseDate() {
|
|
615
|
-
const
|
|
616
|
-
return unwrap(
|
|
619
|
+
const this$ = this;
|
|
620
|
+
return unwrap(this$["publicReleaseDate@575"]);
|
|
617
621
|
}
|
|
618
|
-
set PublicReleaseDate(
|
|
619
|
-
const
|
|
620
|
-
|
|
622
|
+
set PublicReleaseDate(n) {
|
|
623
|
+
const this$ = this;
|
|
624
|
+
this$["publicReleaseDate@575"] = n;
|
|
621
625
|
}
|
|
622
626
|
get Publications() {
|
|
623
|
-
const
|
|
624
|
-
return
|
|
627
|
+
const this$ = this;
|
|
628
|
+
return this$["publications@576-1"];
|
|
625
629
|
}
|
|
626
|
-
set Publications(
|
|
627
|
-
const
|
|
628
|
-
|
|
630
|
+
set Publications(n) {
|
|
631
|
+
const this$ = this;
|
|
632
|
+
this$["publications@576-1"] = n;
|
|
629
633
|
}
|
|
630
634
|
get Contacts() {
|
|
631
|
-
const
|
|
632
|
-
return
|
|
635
|
+
const this$ = this;
|
|
636
|
+
return this$["contacts@577-1"];
|
|
633
637
|
}
|
|
634
|
-
set Contacts(
|
|
635
|
-
const
|
|
636
|
-
|
|
638
|
+
set Contacts(n) {
|
|
639
|
+
const this$ = this;
|
|
640
|
+
this$["contacts@577-1"] = n;
|
|
637
641
|
}
|
|
638
642
|
get StudyDesignDescriptors() {
|
|
639
|
-
const
|
|
640
|
-
return
|
|
643
|
+
const this$ = this;
|
|
644
|
+
return this$["studyDesignDescriptors@578-1"];
|
|
641
645
|
}
|
|
642
|
-
set StudyDesignDescriptors(
|
|
643
|
-
const
|
|
644
|
-
|
|
646
|
+
set StudyDesignDescriptors(n) {
|
|
647
|
+
const this$ = this;
|
|
648
|
+
this$["studyDesignDescriptors@578-1"] = n;
|
|
645
649
|
}
|
|
646
650
|
get RegisteredAssayIdentifiers() {
|
|
647
|
-
const
|
|
648
|
-
return
|
|
651
|
+
const this$ = this;
|
|
652
|
+
return this$["registeredAssayIdentifiers@579-1"];
|
|
649
653
|
}
|
|
650
|
-
set RegisteredAssayIdentifiers(
|
|
651
|
-
const
|
|
652
|
-
|
|
654
|
+
set RegisteredAssayIdentifiers(n) {
|
|
655
|
+
const this$ = this;
|
|
656
|
+
this$["registeredAssayIdentifiers@579-1"] = n;
|
|
653
657
|
}
|
|
654
658
|
get Factors() {
|
|
655
|
-
const
|
|
656
|
-
return
|
|
659
|
+
const this$ = this;
|
|
660
|
+
return this$["factors@580-1"];
|
|
657
661
|
}
|
|
658
|
-
set Factors(
|
|
659
|
-
const
|
|
660
|
-
|
|
662
|
+
set Factors(n) {
|
|
663
|
+
const this$ = this;
|
|
664
|
+
this$["factors@580-1"] = n;
|
|
661
665
|
}
|
|
662
666
|
get Comments() {
|
|
663
|
-
const
|
|
664
|
-
return
|
|
667
|
+
const this$ = this;
|
|
668
|
+
return this$["comments@581-1"];
|
|
665
669
|
}
|
|
666
|
-
set Comments(
|
|
667
|
-
const
|
|
668
|
-
|
|
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@
|
|
1270
|
-
this["
|
|
1271
|
-
this["
|
|
1272
|
-
this["
|
|
1273
|
-
this["
|
|
1274
|
-
this["
|
|
1275
|
-
this["
|
|
1276
|
-
this["
|
|
1277
|
-
this["
|
|
1278
|
-
this["
|
|
1279
|
-
this["
|
|
1280
|
-
this["
|
|
1281
|
-
this["
|
|
1282
|
-
this["init@
|
|
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@
|
|
1290
|
+
return this$["identifier@1173"];
|
|
1287
1291
|
}
|
|
1288
1292
|
set Identifier(i) {
|
|
1289
1293
|
const this$ = this;
|
|
1290
|
-
this$["identifier@
|
|
1294
|
+
this$["identifier@1173"] = i;
|
|
1291
1295
|
}
|
|
1292
1296
|
get Title() {
|
|
1293
|
-
const
|
|
1294
|
-
return unwrap(
|
|
1297
|
+
const this$ = this;
|
|
1298
|
+
return unwrap(this$["title@1174"]);
|
|
1295
1299
|
}
|
|
1296
|
-
set Title(
|
|
1297
|
-
const
|
|
1298
|
-
|
|
1300
|
+
set Title(n) {
|
|
1301
|
+
const this$ = this;
|
|
1302
|
+
this$["title@1174"] = n;
|
|
1299
1303
|
}
|
|
1300
1304
|
get Description() {
|
|
1301
|
-
const
|
|
1302
|
-
return unwrap(
|
|
1305
|
+
const this$ = this;
|
|
1306
|
+
return unwrap(this$["description@1175"]);
|
|
1303
1307
|
}
|
|
1304
|
-
set Description(
|
|
1305
|
-
const
|
|
1306
|
-
|
|
1308
|
+
set Description(n) {
|
|
1309
|
+
const this$ = this;
|
|
1310
|
+
this$["description@1175"] = n;
|
|
1307
1311
|
}
|
|
1308
1312
|
get SubmissionDate() {
|
|
1309
|
-
const
|
|
1310
|
-
return unwrap(
|
|
1313
|
+
const this$ = this;
|
|
1314
|
+
return unwrap(this$["submissionDate@1176"]);
|
|
1311
1315
|
}
|
|
1312
|
-
set SubmissionDate(
|
|
1313
|
-
const
|
|
1314
|
-
|
|
1316
|
+
set SubmissionDate(n) {
|
|
1317
|
+
const this$ = this;
|
|
1318
|
+
this$["submissionDate@1176"] = n;
|
|
1315
1319
|
}
|
|
1316
1320
|
get PublicReleaseDate() {
|
|
1317
|
-
const
|
|
1318
|
-
return unwrap(
|
|
1321
|
+
const this$ = this;
|
|
1322
|
+
return unwrap(this$["publicReleaseDate@1177"]);
|
|
1319
1323
|
}
|
|
1320
|
-
set PublicReleaseDate(
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1324
|
+
set PublicReleaseDate(n) {
|
|
1325
|
+
const this$ = this;
|
|
1326
|
+
this$["publicReleaseDate@1177"] = n;
|
|
1323
1327
|
}
|
|
1324
1328
|
get OntologySourceReferences() {
|
|
1325
|
-
const
|
|
1326
|
-
return
|
|
1329
|
+
const this$ = this;
|
|
1330
|
+
return this$["ontologySourceReferences@1178-1"];
|
|
1327
1331
|
}
|
|
1328
|
-
set OntologySourceReferences(
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1332
|
+
set OntologySourceReferences(n) {
|
|
1333
|
+
const this$ = this;
|
|
1334
|
+
this$["ontologySourceReferences@1178-1"] = n;
|
|
1331
1335
|
}
|
|
1332
1336
|
get Publications() {
|
|
1333
|
-
const
|
|
1334
|
-
return
|
|
1337
|
+
const this$ = this;
|
|
1338
|
+
return this$["publications@1179-1"];
|
|
1335
1339
|
}
|
|
1336
|
-
set Publications(
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1340
|
+
set Publications(n) {
|
|
1341
|
+
const this$ = this;
|
|
1342
|
+
this$["publications@1179-1"] = n;
|
|
1339
1343
|
}
|
|
1340
1344
|
get Contacts() {
|
|
1341
|
-
const
|
|
1342
|
-
return
|
|
1345
|
+
const this$ = this;
|
|
1346
|
+
return this$["contacts@1180-1"];
|
|
1343
1347
|
}
|
|
1344
|
-
set Contacts(
|
|
1345
|
-
const
|
|
1346
|
-
|
|
1348
|
+
set Contacts(n) {
|
|
1349
|
+
const this$ = this;
|
|
1350
|
+
this$["contacts@1180-1"] = n;
|
|
1347
1351
|
}
|
|
1348
1352
|
get Assays() {
|
|
1349
|
-
const
|
|
1350
|
-
return
|
|
1353
|
+
const this$ = this;
|
|
1354
|
+
return this$["assays@1181-1"];
|
|
1351
1355
|
}
|
|
1352
|
-
set Assays(
|
|
1353
|
-
const
|
|
1354
|
-
|
|
1356
|
+
set Assays(n) {
|
|
1357
|
+
const this$ = this;
|
|
1358
|
+
this$["assays@1181-1"] = n;
|
|
1355
1359
|
}
|
|
1356
1360
|
get Studies() {
|
|
1357
|
-
const
|
|
1358
|
-
return
|
|
1361
|
+
const this$ = this;
|
|
1362
|
+
return this$["studies@1182-1"];
|
|
1359
1363
|
}
|
|
1360
|
-
set Studies(
|
|
1361
|
-
const
|
|
1362
|
-
|
|
1364
|
+
set Studies(n) {
|
|
1365
|
+
const this$ = this;
|
|
1366
|
+
this$["studies@1182-1"] = n;
|
|
1363
1367
|
}
|
|
1364
1368
|
get RegisteredStudyIdentifiers() {
|
|
1365
|
-
const
|
|
1366
|
-
return
|
|
1369
|
+
const this$ = this;
|
|
1370
|
+
return this$["registeredStudyIdentifiers@1183-1"];
|
|
1367
1371
|
}
|
|
1368
|
-
set RegisteredStudyIdentifiers(
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1372
|
+
set RegisteredStudyIdentifiers(n) {
|
|
1373
|
+
const this$ = this;
|
|
1374
|
+
this$["registeredStudyIdentifiers@1183-1"] = n;
|
|
1371
1375
|
}
|
|
1372
1376
|
get Comments() {
|
|
1373
|
-
const
|
|
1374
|
-
return
|
|
1377
|
+
const this$ = this;
|
|
1378
|
+
return this$["comments@1184-1"];
|
|
1375
1379
|
}
|
|
1376
|
-
set Comments(
|
|
1377
|
-
const
|
|
1378
|
-
|
|
1380
|
+
set Comments(n) {
|
|
1381
|
+
const this$ = this;
|
|
1382
|
+
this$["comments@1184-1"] = n;
|
|
1379
1383
|
}
|
|
1380
1384
|
get Remarks() {
|
|
1381
|
-
const
|
|
1382
|
-
return
|
|
1385
|
+
const this$ = this;
|
|
1386
|
+
return this$["remarks@1185-1"];
|
|
1383
1387
|
}
|
|
1384
|
-
set Remarks(
|
|
1385
|
-
const
|
|
1386
|
-
|
|
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
|
|
1556
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
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) ?
|
|
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 {
|
|
3
|
+
import { ProtocolParameter } from "../JsonTypes/ProtocolParameter.js";
|
|
4
4
|
import { Component_create_61502994 } from "../JsonTypes/Component.js";
|
|
5
|
-
import { Value
|
|
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(
|
|
101
|
+
return Protocol_addParameter(ProtocolParameter.create(void 0, oa_1), p);
|
|
102
102
|
case 6:
|
|
103
|
-
return Protocol_addComponent(Component_create_61502994(void 0,
|
|
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:
|