@nfdi4plants/arctrl 1.0.6 → 1.1.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 +39 -3
- package/Contracts/Contracts.ArcTypes.js +20 -8
- package/ISA/ISA/ArcTypes/ArcTable.js +5 -16
- package/ISA/ISA/ArcTypes/ArcTableAux.js +111 -68
- package/ISA/ISA/ArcTypes/ArcTypes.js +108 -73
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +74 -3
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +82 -3
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +125 -4
- package/ISA/ISA.Json/ArcTypes/CellTable.js +46 -0
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +26 -0
- package/ISA/ISA.Json/ArcTypes/OATable.js +48 -0
- package/ISA/ISA.Json/Ontology.js +30 -0
- package/ISA/ISA.Json/StringTable.js +43 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +52 -39
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +1 -1
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +3 -3
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +1 -1
- package/ISA/ISA.Spreadsheet/ArcAssay.js +96 -84
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +2 -2
- package/ISA/ISA.Spreadsheet/ArcStudy.js +32 -20
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +7 -7
- package/Templates/Template.Spreadsheet.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsAddress.fs +22 -8
- package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsAddress.fs.js +20 -10
- package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsWorksheet.fs +12 -6
- package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsWorksheet.fs.js +12 -8
- package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/DSL.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Expression.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Transform.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/Types.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsColumn.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsRow.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/FsWorkbook.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/SheetBuilder.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.1 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
|
@@ -33,6 +33,7 @@ export class ArcAssay extends ArcTables {
|
|
|
33
33
|
this["technologyPlatform@100"] = technologyPlatform;
|
|
34
34
|
this["performers@101-1"] = performers_1;
|
|
35
35
|
this["comments@102-1"] = comments_1;
|
|
36
|
+
this.staticHash = 0;
|
|
36
37
|
}
|
|
37
38
|
get Identifier() {
|
|
38
39
|
const this$ = this;
|
|
@@ -90,6 +91,14 @@ export class ArcAssay extends ArcTables {
|
|
|
90
91
|
const this$ = this;
|
|
91
92
|
this$["comments@102-1"] = n;
|
|
92
93
|
}
|
|
94
|
+
get StaticHash() {
|
|
95
|
+
const this$ = this;
|
|
96
|
+
return this$.staticHash | 0;
|
|
97
|
+
}
|
|
98
|
+
set StaticHash(h) {
|
|
99
|
+
const this$ = this;
|
|
100
|
+
this$.staticHash = (h | 0);
|
|
101
|
+
}
|
|
93
102
|
static init(identifier) {
|
|
94
103
|
return new ArcAssay(identifier);
|
|
95
104
|
}
|
|
@@ -561,26 +570,27 @@ export class ArcStudy extends ArcTables {
|
|
|
561
570
|
const registeredAssayIdentifiers_1 = defaultArg(registeredAssayIdentifiers, []);
|
|
562
571
|
const factors_1 = defaultArg(factors, []);
|
|
563
572
|
const comments_1 = defaultArg(comments, []);
|
|
564
|
-
this["identifier@
|
|
573
|
+
this["identifier@572"] = identifier;
|
|
565
574
|
this.investigation = void 0;
|
|
566
|
-
this["title@
|
|
567
|
-
this["description@
|
|
568
|
-
this["submissionDate@
|
|
569
|
-
this["publicReleaseDate@
|
|
570
|
-
this["publications@
|
|
571
|
-
this["contacts@
|
|
572
|
-
this["studyDesignDescriptors@
|
|
573
|
-
this["registeredAssayIdentifiers@
|
|
574
|
-
this["factors@
|
|
575
|
-
this["comments@
|
|
575
|
+
this["title@574"] = title;
|
|
576
|
+
this["description@575"] = description;
|
|
577
|
+
this["submissionDate@576"] = submissionDate;
|
|
578
|
+
this["publicReleaseDate@577"] = publicReleaseDate;
|
|
579
|
+
this["publications@578-1"] = publications_1;
|
|
580
|
+
this["contacts@579-1"] = contacts_1;
|
|
581
|
+
this["studyDesignDescriptors@580-1"] = studyDesignDescriptors_1;
|
|
582
|
+
this["registeredAssayIdentifiers@581-1"] = registeredAssayIdentifiers_1;
|
|
583
|
+
this["factors@582-1"] = factors_1;
|
|
584
|
+
this["comments@583-1"] = comments_1;
|
|
585
|
+
this.staticHash = 0;
|
|
576
586
|
}
|
|
577
587
|
get Identifier() {
|
|
578
588
|
const this$ = this;
|
|
579
|
-
return this$["identifier@
|
|
589
|
+
return this$["identifier@572"];
|
|
580
590
|
}
|
|
581
591
|
set Identifier(i) {
|
|
582
592
|
const this$ = this;
|
|
583
|
-
this$["identifier@
|
|
593
|
+
this$["identifier@572"] = i;
|
|
584
594
|
}
|
|
585
595
|
get Investigation() {
|
|
586
596
|
const this$ = this;
|
|
@@ -592,83 +602,91 @@ export class ArcStudy extends ArcTables {
|
|
|
592
602
|
}
|
|
593
603
|
get Title() {
|
|
594
604
|
const this$ = this;
|
|
595
|
-
return unwrap(this$["title@
|
|
605
|
+
return unwrap(this$["title@574"]);
|
|
596
606
|
}
|
|
597
607
|
set Title(n) {
|
|
598
608
|
const this$ = this;
|
|
599
|
-
this$["title@
|
|
609
|
+
this$["title@574"] = n;
|
|
600
610
|
}
|
|
601
611
|
get Description() {
|
|
602
612
|
const this$ = this;
|
|
603
|
-
return unwrap(this$["description@
|
|
613
|
+
return unwrap(this$["description@575"]);
|
|
604
614
|
}
|
|
605
615
|
set Description(n) {
|
|
606
616
|
const this$ = this;
|
|
607
|
-
this$["description@
|
|
617
|
+
this$["description@575"] = n;
|
|
608
618
|
}
|
|
609
619
|
get SubmissionDate() {
|
|
610
620
|
const this$ = this;
|
|
611
|
-
return unwrap(this$["submissionDate@
|
|
621
|
+
return unwrap(this$["submissionDate@576"]);
|
|
612
622
|
}
|
|
613
623
|
set SubmissionDate(n) {
|
|
614
624
|
const this$ = this;
|
|
615
|
-
this$["submissionDate@
|
|
625
|
+
this$["submissionDate@576"] = n;
|
|
616
626
|
}
|
|
617
627
|
get PublicReleaseDate() {
|
|
618
628
|
const this$ = this;
|
|
619
|
-
return unwrap(this$["publicReleaseDate@
|
|
629
|
+
return unwrap(this$["publicReleaseDate@577"]);
|
|
620
630
|
}
|
|
621
631
|
set PublicReleaseDate(n) {
|
|
622
632
|
const this$ = this;
|
|
623
|
-
this$["publicReleaseDate@
|
|
633
|
+
this$["publicReleaseDate@577"] = n;
|
|
624
634
|
}
|
|
625
635
|
get Publications() {
|
|
626
636
|
const this$ = this;
|
|
627
|
-
return this$["publications@
|
|
637
|
+
return this$["publications@578-1"];
|
|
628
638
|
}
|
|
629
639
|
set Publications(n) {
|
|
630
640
|
const this$ = this;
|
|
631
|
-
this$["publications@
|
|
641
|
+
this$["publications@578-1"] = n;
|
|
632
642
|
}
|
|
633
643
|
get Contacts() {
|
|
634
644
|
const this$ = this;
|
|
635
|
-
return this$["contacts@
|
|
645
|
+
return this$["contacts@579-1"];
|
|
636
646
|
}
|
|
637
647
|
set Contacts(n) {
|
|
638
648
|
const this$ = this;
|
|
639
|
-
this$["contacts@
|
|
649
|
+
this$["contacts@579-1"] = n;
|
|
640
650
|
}
|
|
641
651
|
get StudyDesignDescriptors() {
|
|
642
652
|
const this$ = this;
|
|
643
|
-
return this$["studyDesignDescriptors@
|
|
653
|
+
return this$["studyDesignDescriptors@580-1"];
|
|
644
654
|
}
|
|
645
655
|
set StudyDesignDescriptors(n) {
|
|
646
656
|
const this$ = this;
|
|
647
|
-
this$["studyDesignDescriptors@
|
|
657
|
+
this$["studyDesignDescriptors@580-1"] = n;
|
|
648
658
|
}
|
|
649
659
|
get RegisteredAssayIdentifiers() {
|
|
650
660
|
const this$ = this;
|
|
651
|
-
return this$["registeredAssayIdentifiers@
|
|
661
|
+
return this$["registeredAssayIdentifiers@581-1"];
|
|
652
662
|
}
|
|
653
663
|
set RegisteredAssayIdentifiers(n) {
|
|
654
664
|
const this$ = this;
|
|
655
|
-
this$["registeredAssayIdentifiers@
|
|
665
|
+
this$["registeredAssayIdentifiers@581-1"] = n;
|
|
656
666
|
}
|
|
657
667
|
get Factors() {
|
|
658
668
|
const this$ = this;
|
|
659
|
-
return this$["factors@
|
|
669
|
+
return this$["factors@582-1"];
|
|
660
670
|
}
|
|
661
671
|
set Factors(n) {
|
|
662
672
|
const this$ = this;
|
|
663
|
-
this$["factors@
|
|
673
|
+
this$["factors@582-1"] = n;
|
|
664
674
|
}
|
|
665
675
|
get Comments() {
|
|
666
676
|
const this$ = this;
|
|
667
|
-
return this$["comments@
|
|
677
|
+
return this$["comments@583-1"];
|
|
668
678
|
}
|
|
669
679
|
set Comments(n) {
|
|
670
680
|
const this$ = this;
|
|
671
|
-
this$["comments@
|
|
681
|
+
this$["comments@583-1"] = n;
|
|
682
|
+
}
|
|
683
|
+
get StaticHash() {
|
|
684
|
+
const this$ = this;
|
|
685
|
+
return this$.staticHash | 0;
|
|
686
|
+
}
|
|
687
|
+
set StaticHash(h) {
|
|
688
|
+
const this$ = this;
|
|
689
|
+
this$.staticHash = (h | 0);
|
|
672
690
|
}
|
|
673
691
|
static init(identifier) {
|
|
674
692
|
return new ArcStudy(identifier);
|
|
@@ -1223,6 +1241,10 @@ export class ArcStudy extends ArcTables {
|
|
|
1223
1241
|
const this$ = this;
|
|
1224
1242
|
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;
|
|
1225
1243
|
}
|
|
1244
|
+
GetLightHashCode() {
|
|
1245
|
+
const this$ = this;
|
|
1246
|
+
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(this$.Factors), HashCodes_boxHashArray(this$.Comments)]) | 0;
|
|
1247
|
+
}
|
|
1226
1248
|
}
|
|
1227
1249
|
|
|
1228
1250
|
export function ArcStudy_$reflection() {
|
|
@@ -1269,124 +1291,133 @@ export class ArcInvestigation {
|
|
|
1269
1291
|
const registeredStudyIdentifiers_1 = defaultArg(registeredStudyIdentifiers, []);
|
|
1270
1292
|
const comments_1 = defaultArg(comments, []);
|
|
1271
1293
|
const remarks_1 = defaultArg(remarks, []);
|
|
1272
|
-
this["identifier@
|
|
1273
|
-
this["title@
|
|
1274
|
-
this["description@
|
|
1275
|
-
this["submissionDate@
|
|
1276
|
-
this["publicReleaseDate@
|
|
1277
|
-
this["ontologySourceReferences@
|
|
1278
|
-
this["publications@
|
|
1279
|
-
this["contacts@
|
|
1280
|
-
this["assays@
|
|
1281
|
-
this["studies@
|
|
1282
|
-
this["registeredStudyIdentifiers@
|
|
1283
|
-
this["comments@
|
|
1284
|
-
this["remarks@
|
|
1285
|
-
this
|
|
1294
|
+
this["identifier@1195"] = identifier;
|
|
1295
|
+
this["title@1196"] = title;
|
|
1296
|
+
this["description@1197"] = description;
|
|
1297
|
+
this["submissionDate@1198"] = submissionDate;
|
|
1298
|
+
this["publicReleaseDate@1199"] = publicReleaseDate;
|
|
1299
|
+
this["ontologySourceReferences@1200-1"] = ontologySourceReferences_1;
|
|
1300
|
+
this["publications@1201-1"] = publications_1;
|
|
1301
|
+
this["contacts@1202-1"] = contacts_1;
|
|
1302
|
+
this["assays@1203-1"] = assays_1;
|
|
1303
|
+
this["studies@1204-1"] = studies_1;
|
|
1304
|
+
this["registeredStudyIdentifiers@1205-1"] = registeredStudyIdentifiers_1;
|
|
1305
|
+
this["comments@1206-1"] = comments_1;
|
|
1306
|
+
this["remarks@1207-1"] = remarks_1;
|
|
1307
|
+
this.staticHash = 0;
|
|
1308
|
+
this["init@1176"] = 1;
|
|
1286
1309
|
}
|
|
1287
1310
|
get Identifier() {
|
|
1288
1311
|
const this$ = this;
|
|
1289
|
-
return this$["identifier@
|
|
1312
|
+
return this$["identifier@1195"];
|
|
1290
1313
|
}
|
|
1291
1314
|
set Identifier(i) {
|
|
1292
1315
|
const this$ = this;
|
|
1293
|
-
this$["identifier@
|
|
1316
|
+
this$["identifier@1195"] = i;
|
|
1294
1317
|
}
|
|
1295
1318
|
get Title() {
|
|
1296
1319
|
const this$ = this;
|
|
1297
|
-
return unwrap(this$["title@
|
|
1320
|
+
return unwrap(this$["title@1196"]);
|
|
1298
1321
|
}
|
|
1299
1322
|
set Title(n) {
|
|
1300
1323
|
const this$ = this;
|
|
1301
|
-
this$["title@
|
|
1324
|
+
this$["title@1196"] = n;
|
|
1302
1325
|
}
|
|
1303
1326
|
get Description() {
|
|
1304
1327
|
const this$ = this;
|
|
1305
|
-
return unwrap(this$["description@
|
|
1328
|
+
return unwrap(this$["description@1197"]);
|
|
1306
1329
|
}
|
|
1307
1330
|
set Description(n) {
|
|
1308
1331
|
const this$ = this;
|
|
1309
|
-
this$["description@
|
|
1332
|
+
this$["description@1197"] = n;
|
|
1310
1333
|
}
|
|
1311
1334
|
get SubmissionDate() {
|
|
1312
1335
|
const this$ = this;
|
|
1313
|
-
return unwrap(this$["submissionDate@
|
|
1336
|
+
return unwrap(this$["submissionDate@1198"]);
|
|
1314
1337
|
}
|
|
1315
1338
|
set SubmissionDate(n) {
|
|
1316
1339
|
const this$ = this;
|
|
1317
|
-
this$["submissionDate@
|
|
1340
|
+
this$["submissionDate@1198"] = n;
|
|
1318
1341
|
}
|
|
1319
1342
|
get PublicReleaseDate() {
|
|
1320
1343
|
const this$ = this;
|
|
1321
|
-
return unwrap(this$["publicReleaseDate@
|
|
1344
|
+
return unwrap(this$["publicReleaseDate@1199"]);
|
|
1322
1345
|
}
|
|
1323
1346
|
set PublicReleaseDate(n) {
|
|
1324
1347
|
const this$ = this;
|
|
1325
|
-
this$["publicReleaseDate@
|
|
1348
|
+
this$["publicReleaseDate@1199"] = n;
|
|
1326
1349
|
}
|
|
1327
1350
|
get OntologySourceReferences() {
|
|
1328
1351
|
const this$ = this;
|
|
1329
|
-
return this$["ontologySourceReferences@
|
|
1352
|
+
return this$["ontologySourceReferences@1200-1"];
|
|
1330
1353
|
}
|
|
1331
1354
|
set OntologySourceReferences(n) {
|
|
1332
1355
|
const this$ = this;
|
|
1333
|
-
this$["ontologySourceReferences@
|
|
1356
|
+
this$["ontologySourceReferences@1200-1"] = n;
|
|
1334
1357
|
}
|
|
1335
1358
|
get Publications() {
|
|
1336
1359
|
const this$ = this;
|
|
1337
|
-
return this$["publications@
|
|
1360
|
+
return this$["publications@1201-1"];
|
|
1338
1361
|
}
|
|
1339
1362
|
set Publications(n) {
|
|
1340
1363
|
const this$ = this;
|
|
1341
|
-
this$["publications@
|
|
1364
|
+
this$["publications@1201-1"] = n;
|
|
1342
1365
|
}
|
|
1343
1366
|
get Contacts() {
|
|
1344
1367
|
const this$ = this;
|
|
1345
|
-
return this$["contacts@
|
|
1368
|
+
return this$["contacts@1202-1"];
|
|
1346
1369
|
}
|
|
1347
1370
|
set Contacts(n) {
|
|
1348
1371
|
const this$ = this;
|
|
1349
|
-
this$["contacts@
|
|
1372
|
+
this$["contacts@1202-1"] = n;
|
|
1350
1373
|
}
|
|
1351
1374
|
get Assays() {
|
|
1352
1375
|
const this$ = this;
|
|
1353
|
-
return this$["assays@
|
|
1376
|
+
return this$["assays@1203-1"];
|
|
1354
1377
|
}
|
|
1355
1378
|
set Assays(n) {
|
|
1356
1379
|
const this$ = this;
|
|
1357
|
-
this$["assays@
|
|
1380
|
+
this$["assays@1203-1"] = n;
|
|
1358
1381
|
}
|
|
1359
1382
|
get Studies() {
|
|
1360
1383
|
const this$ = this;
|
|
1361
|
-
return this$["studies@
|
|
1384
|
+
return this$["studies@1204-1"];
|
|
1362
1385
|
}
|
|
1363
1386
|
set Studies(n) {
|
|
1364
1387
|
const this$ = this;
|
|
1365
|
-
this$["studies@
|
|
1388
|
+
this$["studies@1204-1"] = n;
|
|
1366
1389
|
}
|
|
1367
1390
|
get RegisteredStudyIdentifiers() {
|
|
1368
1391
|
const this$ = this;
|
|
1369
|
-
return this$["registeredStudyIdentifiers@
|
|
1392
|
+
return this$["registeredStudyIdentifiers@1205-1"];
|
|
1370
1393
|
}
|
|
1371
1394
|
set RegisteredStudyIdentifiers(n) {
|
|
1372
1395
|
const this$ = this;
|
|
1373
|
-
this$["registeredStudyIdentifiers@
|
|
1396
|
+
this$["registeredStudyIdentifiers@1205-1"] = n;
|
|
1374
1397
|
}
|
|
1375
1398
|
get Comments() {
|
|
1376
1399
|
const this$ = this;
|
|
1377
|
-
return this$["comments@
|
|
1400
|
+
return this$["comments@1206-1"];
|
|
1378
1401
|
}
|
|
1379
1402
|
set Comments(n) {
|
|
1380
1403
|
const this$ = this;
|
|
1381
|
-
this$["comments@
|
|
1404
|
+
this$["comments@1206-1"] = n;
|
|
1382
1405
|
}
|
|
1383
1406
|
get Remarks() {
|
|
1384
1407
|
const this$ = this;
|
|
1385
|
-
return this$["remarks@
|
|
1408
|
+
return this$["remarks@1207-1"];
|
|
1386
1409
|
}
|
|
1387
1410
|
set Remarks(n) {
|
|
1388
1411
|
const this$ = this;
|
|
1389
|
-
this$["remarks@
|
|
1412
|
+
this$["remarks@1207-1"] = n;
|
|
1413
|
+
}
|
|
1414
|
+
get StaticHash() {
|
|
1415
|
+
const this$ = this;
|
|
1416
|
+
return this$.staticHash | 0;
|
|
1417
|
+
}
|
|
1418
|
+
set StaticHash(h) {
|
|
1419
|
+
const this$ = this;
|
|
1420
|
+
this$.staticHash = (h | 0);
|
|
1390
1421
|
}
|
|
1391
1422
|
static get FileName() {
|
|
1392
1423
|
return "isa.investigation.xlsx";
|
|
@@ -2135,6 +2166,10 @@ export class ArcInvestigation {
|
|
|
2135
2166
|
const this$ = this;
|
|
2136
2167
|
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;
|
|
2137
2168
|
}
|
|
2169
|
+
GetLightHashCode() {
|
|
2170
|
+
const this$ = this;
|
|
2171
|
+
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(this$.Comments), HashCodes_boxHashArray(this$.Remarks)]) | 0;
|
|
2172
|
+
}
|
|
2138
2173
|
}
|
|
2139
2174
|
|
|
2140
2175
|
export function ArcInvestigation_$reflection() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OntologySourceReference_encoder, OntologyAnnotation_encoder, OntologySourceReference_decoder, OntologyAnnotation_decoder } from "../Ontology.js";
|
|
2
2
|
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
3
|
-
import { fromString, object as object_1, string, list as list_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
4
|
-
import { uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
5
|
-
import { ArcTable_encoder, ArcTable_decoder } from "./ArcTable.js";
|
|
3
|
+
import { fromString, array, object as object_1, string, list as list_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
4
|
+
import { safeHash, equals, uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
5
|
+
import { ArcTable_compressedDecoder, ArcTable_compressedEncoder, ArcTable_encoder, ArcTable_decoder } from "./ArcTable.js";
|
|
6
6
|
import { encoder, decoder as decoder_1 } from "../Person.js";
|
|
7
7
|
import { encoder as encoder_1, decoder as decoder_2 } from "../Comment.js";
|
|
8
8
|
import { Factor_encoder, Factor_decoder } from "../Factor.js";
|
|
@@ -12,9 +12,13 @@ import { toArray } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
|
12
12
|
import { toString, object, seq } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
13
13
|
import { empty, singleton, append, delay, toList, map as map_1 } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
14
14
|
import { ArcAssay } from "../../ISA/ArcTypes/ArcTypes.js";
|
|
15
|
+
import { OATable_arrayFromMap, OATable_encoder, OATable_decoder, OATable_decodeOA, OATable_encodeOA } from "./OATable.js";
|
|
15
16
|
import { Assay_decoder, Assay_encoder } from "../Assay.js";
|
|
16
17
|
import { fromJsonString } from "../Decode.js";
|
|
17
18
|
import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
|
|
19
|
+
import { StringTable_arrayFromMap, StringTable_encoder, StringTable_decoder } from "../StringTable.js";
|
|
20
|
+
import { CellTable_arrayFromMap, CellTable_encoder, CellTable_decoder } from "./CellTable.js";
|
|
21
|
+
import { Dictionary } from "../../../fable_modules/fable-library.4.5.0/MutableMap.js";
|
|
18
22
|
|
|
19
23
|
export const JsonHelper_DecodeOa = OntologyAnnotation_decoder(ConverterOptions_$ctor());
|
|
20
24
|
|
|
@@ -160,6 +164,32 @@ export const ArcAssay_decoder = (path_1) => ((v) => object_1((get$) => {
|
|
|
160
164
|
return ArcAssay.make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
|
|
161
165
|
}, path_1, v));
|
|
162
166
|
|
|
167
|
+
export function ArcAssay_compressedEncoder(stringTable, oaTable, cellTable, assay) {
|
|
168
|
+
return object(toList(delay(() => append(singleton(["Identifier", assay.Identifier]), delay(() => append((assay.MeasurementType != null) ? singleton(["MeasurementType", OATable_encodeOA(oaTable, value_3(assay.MeasurementType))]) : empty(), delay(() => append((assay.TechnologyType != null) ? singleton(["TechnologyType", OATable_encodeOA(oaTable, value_3(assay.TechnologyType))]) : empty(), delay(() => append((assay.TechnologyPlatform != null) ? singleton(["TechnologyPlatform", OATable_encodeOA(oaTable, value_3(assay.TechnologyPlatform))]) : empty(), delay(() => append((assay.Tables.length !== 0) ? singleton(["Tables", seq(map_1((table) => ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table), assay.Tables))]) : empty(), delay(() => append((assay.Performers.length !== 0) ? singleton(["Performers", JsonHelper_EncoderPersons(assay.Performers)]) : empty(), delay(() => ((assay.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(assay.Comments)]) : empty()))))))))))))))));
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function ArcAssay_compressedDecoder(stringTable, oaTable, cellTable) {
|
|
172
|
+
return (path_2) => ((v) => object_1((get$) => {
|
|
173
|
+
let arg_1, decoder, objectArg;
|
|
174
|
+
const tables = defaultArg(map((collection) => Array.from(collection), (arg_1 = ((decoder = ArcTable_compressedDecoder(stringTable, oaTable, cellTable), (path) => ((value) => array(uncurry2(decoder), path, value)))), (objectArg = get$.Optional, objectArg.Field("Tables", uncurry2(arg_1))))), []);
|
|
175
|
+
let identifier;
|
|
176
|
+
const objectArg_1 = get$.Required;
|
|
177
|
+
identifier = objectArg_1.Field("Identifier", string);
|
|
178
|
+
let measurementType;
|
|
179
|
+
const objectArg_2 = get$.Optional;
|
|
180
|
+
measurementType = objectArg_2.Field("MeasurementType", (s, o) => OATable_decodeOA(oaTable, s, o));
|
|
181
|
+
let technologyType;
|
|
182
|
+
const objectArg_3 = get$.Optional;
|
|
183
|
+
technologyType = objectArg_3.Field("TechnologyType", (s_1, o_1) => OATable_decodeOA(oaTable, s_1, o_1));
|
|
184
|
+
let technologyPlatform;
|
|
185
|
+
const objectArg_4 = get$.Optional;
|
|
186
|
+
technologyPlatform = objectArg_4.Field("TechnologyPlatform", (s_2, o_2) => OATable_decodeOA(oaTable, s_2, o_2));
|
|
187
|
+
const performers = JsonHelper_tryGetPersons(get$, "Performers");
|
|
188
|
+
const comments = JsonHelper_tryGetComments(get$, "Comments");
|
|
189
|
+
return ArcAssay.make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
|
|
190
|
+
}, path_2, v));
|
|
191
|
+
}
|
|
192
|
+
|
|
163
193
|
/**
|
|
164
194
|
* exports in json-ld format
|
|
165
195
|
*/
|
|
@@ -209,3 +239,44 @@ export function ARCtrl_ISA_ArcAssay__ArcAssay_toArcJsonString_Static_1C75D08D(a)
|
|
|
209
239
|
return ARCtrl_ISA_ArcAssay__ArcAssay_ToArcJsonString_71136F3F(a);
|
|
210
240
|
}
|
|
211
241
|
|
|
242
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
|
|
243
|
+
const matchValue = fromString((path, v) => object_1((get$) => {
|
|
244
|
+
let arg_5, objectArg_2;
|
|
245
|
+
let stringTable;
|
|
246
|
+
const objectArg = get$.Required;
|
|
247
|
+
stringTable = objectArg.Field("stringTable", uncurry2(StringTable_decoder));
|
|
248
|
+
let oaTable;
|
|
249
|
+
const arg_3 = OATable_decoder(stringTable);
|
|
250
|
+
const objectArg_1 = get$.Required;
|
|
251
|
+
oaTable = objectArg_1.Field("oaTable", uncurry2(arg_3));
|
|
252
|
+
const arg_7 = ArcAssay_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", uncurry2(arg_5)))));
|
|
253
|
+
const objectArg_3 = get$.Required;
|
|
254
|
+
return objectArg_3.Field("assay", uncurry2(arg_7));
|
|
255
|
+
}, path, v), jsonString);
|
|
256
|
+
if (matchValue.tag === 1) {
|
|
257
|
+
return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(matchValue.fields[0]);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
return matchValue.fields[0];
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_ToCompressedJsonString_71136F3F(this$, spaces) {
|
|
265
|
+
const spaces_1 = defaultArg(spaces, 0) | 0;
|
|
266
|
+
const stringTable = new Map([]);
|
|
267
|
+
const oaTable = new Dictionary([], {
|
|
268
|
+
Equals: equals,
|
|
269
|
+
GetHashCode: safeHash,
|
|
270
|
+
});
|
|
271
|
+
const cellTable = new Dictionary([], {
|
|
272
|
+
Equals: equals,
|
|
273
|
+
GetHashCode: safeHash,
|
|
274
|
+
});
|
|
275
|
+
const arcAssay = ArcAssay_compressedEncoder(stringTable, oaTable, cellTable, this$);
|
|
276
|
+
return toString(spaces_1, object([["cellTable", CellTable_encoder(stringTable, oaTable, CellTable_arrayFromMap(cellTable))], ["oaTable", OATable_encoder(stringTable, OATable_arrayFromMap(oaTable))], ["stringTable", StringTable_encoder(StringTable_arrayFromMap(stringTable))], ["assay", arcAssay]]));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_toCompressedJsonString_Static_1C75D08D(a) {
|
|
280
|
+
return ARCtrl_ISA_ArcAssay__ArcAssay_ToCompressedJsonString_71136F3F(a);
|
|
281
|
+
}
|
|
282
|
+
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { toString, seq, object } from "../../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
2
2
|
import { map, empty, singleton, append, delay, toList } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
3
|
-
import { defaultArg, value as value_7 } from "../../../fable_modules/fable-library.4.5.0/Option.js";
|
|
3
|
+
import { map as map_1, defaultArg, value as value_7 } from "../../../fable_modules/fable-library.4.5.0/Option.js";
|
|
4
4
|
import { JsonHelper_tryGetComments, JsonHelper_tryGetFactors, JsonHelper_tryGetStringResizeArray, JsonHelper_tryGetTables, JsonHelper_tryGetOAs, JsonHelper_tryGetPersons, JsonHelper_tryGetPublications, JsonHelper_EncoderComments, JsonHelper_EncoderFactors, JsonHelper_EncoderTables, JsonHelper_EncoderOAs, JsonHelper_EncoderPersons, JsonHelper_EncoderPublications } from "./ArcAssay.js";
|
|
5
|
-
import { fromString, string, object as object_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
5
|
+
import { fromString, array, string, object as object_1 } from "../../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
6
6
|
import { ArcStudy } from "../../ISA/ArcTypes/ArcTypes.js";
|
|
7
|
+
import { ArcTable_compressedDecoder, ArcTable_compressedEncoder } from "./ArcTable.js";
|
|
8
|
+
import { safeHash, equals, uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
7
9
|
import { Study_decoder, Study_encoder } from "../Study.js";
|
|
8
10
|
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
9
11
|
import { fromJsonString } from "../Decode.js";
|
|
10
|
-
import { uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
11
12
|
import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
|
|
13
|
+
import { StringTable_arrayFromMap, StringTable_encoder, StringTable_decoder } from "../StringTable.js";
|
|
14
|
+
import { OATable_arrayFromMap, OATable_encoder, OATable_decoder } from "./OATable.js";
|
|
15
|
+
import { CellTable_arrayFromMap, CellTable_encoder, CellTable_decoder } from "./CellTable.js";
|
|
16
|
+
import { Dictionary } from "../../../fable_modules/fable-library.4.5.0/MutableMap.js";
|
|
12
17
|
|
|
13
18
|
export function ArcStudy_encoder(study) {
|
|
14
19
|
return object(toList(delay(() => append(singleton(["Identifier", study.Identifier]), delay(() => append((study.Title != null) ? singleton(["Title", value_7(study.Title)]) : empty(), delay(() => append((study.Description != null) ? singleton(["Description", value_7(study.Description)]) : empty(), delay(() => append((study.SubmissionDate != null) ? singleton(["SubmissionDate", value_7(study.SubmissionDate)]) : empty(), delay(() => append((study.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", value_7(study.PublicReleaseDate)]) : empty(), delay(() => append((study.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(study.Publications)]) : empty(), delay(() => append((study.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(study.Contacts)]) : empty(), delay(() => append((study.StudyDesignDescriptors.length !== 0) ? singleton(["StudyDesignDescriptors", JsonHelper_EncoderOAs(study.StudyDesignDescriptors)]) : empty(), delay(() => append((study.TableCount !== 0) ? singleton(["Tables", JsonHelper_EncoderTables(study.Tables)]) : empty(), delay(() => append((study.RegisteredAssayIdentifiers.length !== 0) ? singleton(["RegisteredAssayIdentifiers", seq(map((value_5) => value_5, study.RegisteredAssayIdentifiers))]) : empty(), delay(() => append((study.Factors.length !== 0) ? singleton(["Factors", JsonHelper_EncoderFactors(study.Factors)]) : empty(), delay(() => ((study.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(study.Comments)]) : empty()))))))))))))))))))))))))));
|
|
@@ -40,6 +45,39 @@ export const ArcStudy_decoder = (path_5) => ((v) => object_1((get$) => {
|
|
|
40
45
|
return ArcStudy.make(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments);
|
|
41
46
|
}, path_5, v));
|
|
42
47
|
|
|
48
|
+
export function ArcStudy_compressedEncoder(stringTable, oaTable, cellTable, study) {
|
|
49
|
+
return object(toList(delay(() => append(singleton(["Identifier", study.Identifier]), delay(() => append((study.Title != null) ? singleton(["Title", value_7(study.Title)]) : empty(), delay(() => append((study.Description != null) ? singleton(["Description", value_7(study.Description)]) : empty(), delay(() => append((study.SubmissionDate != null) ? singleton(["SubmissionDate", value_7(study.SubmissionDate)]) : empty(), delay(() => append((study.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", value_7(study.PublicReleaseDate)]) : empty(), delay(() => append((study.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(study.Publications)]) : empty(), delay(() => append((study.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(study.Contacts)]) : empty(), delay(() => append((study.StudyDesignDescriptors.length !== 0) ? singleton(["StudyDesignDescriptors", JsonHelper_EncoderOAs(study.StudyDesignDescriptors)]) : empty(), delay(() => append((study.TableCount !== 0) ? singleton(["Tables", seq(map((table) => ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table), study.Tables))]) : empty(), delay(() => append((study.RegisteredAssayIdentifiers.length !== 0) ? singleton(["RegisteredAssayIdentifiers", seq(map((value_5) => value_5, study.RegisteredAssayIdentifiers))]) : empty(), delay(() => append((study.Factors.length !== 0) ? singleton(["Factors", JsonHelper_EncoderFactors(study.Factors)]) : empty(), delay(() => ((study.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(study.Comments)]) : empty()))))))))))))))))))))))))));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ArcStudy_compressedDecoder(stringTable, oaTable, cellTable) {
|
|
53
|
+
return (path_6) => ((v) => object_1((get$) => {
|
|
54
|
+
let arg_1, decoder, objectArg;
|
|
55
|
+
const tables = defaultArg(map_1((collection) => Array.from(collection), (arg_1 = ((decoder = ArcTable_compressedDecoder(stringTable, oaTable, cellTable), (path) => ((value) => array(uncurry2(decoder), path, value)))), (objectArg = get$.Optional, objectArg.Field("Tables", uncurry2(arg_1))))), []);
|
|
56
|
+
let identifier;
|
|
57
|
+
const objectArg_1 = get$.Required;
|
|
58
|
+
identifier = objectArg_1.Field("Identifier", string);
|
|
59
|
+
let title;
|
|
60
|
+
const objectArg_2 = get$.Optional;
|
|
61
|
+
title = objectArg_2.Field("Title", string);
|
|
62
|
+
let description;
|
|
63
|
+
const objectArg_3 = get$.Optional;
|
|
64
|
+
description = objectArg_3.Field("Description", string);
|
|
65
|
+
let submissionDate;
|
|
66
|
+
const objectArg_4 = get$.Optional;
|
|
67
|
+
submissionDate = objectArg_4.Field("SubmissionDate", string);
|
|
68
|
+
let publicReleaseDate;
|
|
69
|
+
const objectArg_5 = get$.Optional;
|
|
70
|
+
publicReleaseDate = objectArg_5.Field("PublicReleaseDate", string);
|
|
71
|
+
const publications = JsonHelper_tryGetPublications(get$, "Publications");
|
|
72
|
+
const contacts = JsonHelper_tryGetPersons(get$, "Contacts");
|
|
73
|
+
const studyDesignDescriptors = JsonHelper_tryGetOAs(get$, "StudyDesignDescriptors");
|
|
74
|
+
const registeredAssayIdentifiers = JsonHelper_tryGetStringResizeArray(get$, "RegisteredAssayIdentifiers");
|
|
75
|
+
const factors = JsonHelper_tryGetFactors(get$, "Factors");
|
|
76
|
+
const comments = JsonHelper_tryGetComments(get$, "Comments");
|
|
77
|
+
return ArcStudy.make(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments);
|
|
78
|
+
}, path_6, v));
|
|
79
|
+
}
|
|
80
|
+
|
|
43
81
|
/**
|
|
44
82
|
* exports in json-ld format
|
|
45
83
|
*/
|
|
@@ -89,3 +127,44 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_toArcJsonString_Static_1B3D5E9B(a)
|
|
|
89
127
|
return ARCtrl_ISA_ArcStudy__ArcStudy_ToArcJsonString_71136F3F(a);
|
|
90
128
|
}
|
|
91
129
|
|
|
130
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
|
|
131
|
+
const matchValue = fromString((path, v) => object_1((get$) => {
|
|
132
|
+
let arg_5, objectArg_2;
|
|
133
|
+
let stringTable;
|
|
134
|
+
const objectArg = get$.Required;
|
|
135
|
+
stringTable = objectArg.Field("stringTable", uncurry2(StringTable_decoder));
|
|
136
|
+
let oaTable;
|
|
137
|
+
const arg_3 = OATable_decoder(stringTable);
|
|
138
|
+
const objectArg_1 = get$.Required;
|
|
139
|
+
oaTable = objectArg_1.Field("oaTable", uncurry2(arg_3));
|
|
140
|
+
const arg_7 = ArcStudy_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", uncurry2(arg_5)))));
|
|
141
|
+
const objectArg_3 = get$.Required;
|
|
142
|
+
return objectArg_3.Field("study", uncurry2(arg_7));
|
|
143
|
+
}, path, v), jsonString);
|
|
144
|
+
if (matchValue.tag === 1) {
|
|
145
|
+
return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(matchValue.fields[0]);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return matchValue.fields[0];
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_ToCompressedJsonString_71136F3F(this$, spaces) {
|
|
153
|
+
const spaces_1 = defaultArg(spaces, 0) | 0;
|
|
154
|
+
const stringTable = new Map([]);
|
|
155
|
+
const oaTable = new Dictionary([], {
|
|
156
|
+
Equals: equals,
|
|
157
|
+
GetHashCode: safeHash,
|
|
158
|
+
});
|
|
159
|
+
const cellTable = new Dictionary([], {
|
|
160
|
+
Equals: equals,
|
|
161
|
+
GetHashCode: safeHash,
|
|
162
|
+
});
|
|
163
|
+
const arcStudy = ArcStudy_compressedEncoder(stringTable, oaTable, cellTable, this$);
|
|
164
|
+
return toString(spaces_1, object([["cellTable", CellTable_encoder(stringTable, oaTable, CellTable_arrayFromMap(cellTable))], ["oaTable", OATable_encoder(stringTable, OATable_arrayFromMap(oaTable))], ["stringTable", StringTable_encoder(StringTable_arrayFromMap(stringTable))], ["study", arcStudy]]));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_toCompressedJsonString_Static_1B3D5E9B(s) {
|
|
168
|
+
return ARCtrl_ISA_ArcStudy__ArcStudy_ToCompressedJsonString_71136F3F(s);
|
|
169
|
+
}
|
|
170
|
+
|