@nfdi4plants/arctrl 3.0.0-beta.13 → 3.0.0-beta.14
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/dist/ts/index.d.ts +2 -1
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +2 -1
- package/dist/ts/ts/ARC.d.ts +5 -5
- package/dist/ts/ts/ARC.js +52 -52
- package/dist/ts/ts/Contract/Datamap.d.ts +25 -25
- package/dist/ts/ts/Contract/Datamap.js +34 -34
- package/dist/ts/ts/Conversion/Assay.js +6 -6
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts +1 -0
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ColumnIndex.js +24 -5
- package/dist/ts/ts/Conversion/Datamap.d.ts +3 -3
- package/dist/ts/ts/Conversion/Datamap.js +4 -4
- package/dist/ts/ts/Conversion/Run.js +6 -6
- package/dist/ts/ts/Conversion/Study.js +6 -6
- package/dist/ts/ts/Conversion/Workflow.js +6 -6
- package/dist/ts/ts/Core/ArcTypes.d.ts +29 -29
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +46 -46
- package/dist/ts/ts/Core/{DataMap.d.ts → Datamap.d.ts} +24 -24
- package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Core/{DataMap.js → Datamap.js} +36 -36
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
- package/dist/ts/ts/FileSystem/FileSystemTree.js +16 -16
- package/dist/ts/ts/Json/Assay.js +5 -5
- package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
- package/dist/ts/ts/Json/{DataMap/DataMap.d.ts.map → Datamap/Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +2 -2
- package/dist/ts/ts/Json/ROCrate/LDNode.js +2 -2
- package/dist/ts/ts/Json/Run.js +5 -5
- package/dist/ts/ts/Json/Study.js +5 -5
- package/dist/ts/ts/Json/Workflow.js +5 -5
- package/dist/ts/ts/Json.d.ts +3 -3
- package/dist/ts/ts/Json.js +3 -3
- package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
- package/dist/ts/ts/JsonIO/Datamap.js +6 -6
- package/dist/ts/ts/ROCrate/ROCrateContext.js +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
- package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
- package/dist/ts/ts/Spreadsheet/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts.map → DatamapTable/DatamapTable.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +6 -6
- package/dist/ts/ts/Xlsx.d.ts +5 -5
- package/dist/ts/ts/Xlsx.js +1 -1
- package/package.json +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
- /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
- /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
- /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
package/dist/ts/index.d.ts
CHANGED
|
@@ -17,7 +17,8 @@ import { LDGraphExtensions_PyJsInterop as LDGraphIO, LDNodeExtensions_PyJsIntero
|
|
|
17
17
|
import { Conversion as Conversion } from './ts/Conversion.js';
|
|
18
18
|
export { ARC } from './ts/ARC.js';
|
|
19
19
|
export { ArcAssay, ArcStudy, ArcRun, ArcWorkflow, ArcInvestigation } from './ts/Core/ArcTypes.js';
|
|
20
|
-
export {
|
|
20
|
+
export { Datamap } from './ts/Core/Datamap.js';
|
|
21
|
+
export { DataContext } from './ts/Core/DataContext.js';
|
|
21
22
|
export { CompositeCell } from './ts/Core/Table/CompositeCell.js';
|
|
22
23
|
export { CompositeHeader, IOType } from './ts/Core/Table/CompositeHeader.js';
|
|
23
24
|
export { CompositeColumn } from './ts/Core/Table/CompositeColumn.js';
|
package/dist/ts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ARCtrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EA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C,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EAAE,6BAA6B,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACpF,OAAO,EAAE,4BAA4B,IAAI,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE7D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAwBnB,CAAC"}
|
package/dist/ts/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ARC } from './ts/ARC.js';
|
|
2
2
|
export { ArcAssay, ArcInvestigation, ArcRun, ArcStudy, ArcWorkflow } from './ts/Core/ArcTypes.js';
|
|
3
|
-
export {
|
|
3
|
+
export { Datamap } from './ts/Core/Datamap.js';
|
|
4
|
+
export { DataContext } from './ts/Core/DataContext.js';
|
|
4
5
|
export { CompositeCell } from './ts/Core/Table/CompositeCell.js';
|
|
5
6
|
export { CompositeHeader, IOType } from './ts/Core/Table/CompositeHeader.js';
|
|
6
7
|
export { CompositeColumn } from './ts/Core/Table/CompositeColumn.js';
|
package/dist/ts/ts/ARC.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ArcWorkflow, ArcRun, ArcStudy, ArcAssay, ArcInvestigation } from './Cor
|
|
|
5
5
|
import { FSharpResult$2_$union } from '@fable-org/fable-library-js/Result.js';
|
|
6
6
|
import { Contract } from './Contract/Contract.js';
|
|
7
7
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
8
|
-
import {
|
|
8
|
+
import { Datamap } from './Core/Datamap.js';
|
|
9
9
|
import { FileSystemTree_$union } from './FileSystem/FileSystemTree.js';
|
|
10
10
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
11
11
|
import { CWLProcessingUnit_$union } from './CWL/CWLProcessingUnit.js';
|
|
@@ -89,10 +89,10 @@ export declare function ARCAux_getArcAssaysFromContracts(contracts: Contract[]):
|
|
|
89
89
|
export declare function ARCAux_getArcStudiesFromContracts(contracts: Contract[]): [ArcStudy, FSharpList<ArcAssay>][];
|
|
90
90
|
export declare function ARCAux_getArcWorkflowsFromContracts(contracts: Contract[]): ArcWorkflow[];
|
|
91
91
|
export declare function ARCAux_getArcRunsFromContracts(contracts: Contract[]): ArcRun[];
|
|
92
|
-
export declare function
|
|
93
|
-
export declare function
|
|
94
|
-
export declare function
|
|
95
|
-
export declare function
|
|
92
|
+
export declare function ARCAux_getAssayDatamapFromContracts(assayIdentifier: string, contracts: Contract[]): Option<Datamap>;
|
|
93
|
+
export declare function ARCAux_getStudyDatamapFromContracts(studyIdentifier: string, contracts: Contract[]): Option<Datamap>;
|
|
94
|
+
export declare function ARCAux_getWorkflowDatamapFromContracts(workflowIdentifier: string, contracts: Contract[]): Option<Datamap>;
|
|
95
|
+
export declare function ARCAux_getRunDatamapFromContracts(runIdentifier: string, contracts: Contract[]): Option<Datamap>;
|
|
96
96
|
export declare function ARCAux_getWorkflowCWLFromContracts(workflowIdentifier: string, contracts: Contract[]): Option<CWLProcessingUnit_$union>;
|
|
97
97
|
export declare function ARCAux_getRunCWLFromContracts(runIdentifier: string, contracts: Contract[]): Option<CWLProcessingUnit_$union>;
|
|
98
98
|
export declare function ARCAux_getRunYMLFromContracts(runIdentifier: string, contracts: Contract[]): Option<CWLParameterReference[]>;
|
package/dist/ts/ts/ARC.js
CHANGED
|
@@ -27,13 +27,13 @@ import { ArcTables } from './Core/Table/ArcTables.js';
|
|
|
27
27
|
import { addToDict } from '../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
28
28
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF } from './Spreadsheet/ArcInvestigation.js';
|
|
29
29
|
import { ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from './Spreadsheet/ArcStudy.js';
|
|
30
|
-
import { toFsWorkbook } from './Spreadsheet/
|
|
30
|
+
import { toFsWorkbook } from './Spreadsheet/Datamap.js';
|
|
31
31
|
import { ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from './Spreadsheet/ArcAssay.js';
|
|
32
32
|
import { ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E } from './Spreadsheet/ArcWorkflow.js';
|
|
33
33
|
import { ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8 } from './Spreadsheet/ArcRun.js';
|
|
34
34
|
import { Dictionary_tryGet } from './fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js';
|
|
35
35
|
import { ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F } from './Contract/ArcStudy.js';
|
|
36
|
-
import {
|
|
36
|
+
import { ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5, ARCtrl_Datamap__Datamap_tryFromReadContractForAssay_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForStudy_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForWorkflow_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForRun_Static } from './Contract/Datamap.js';
|
|
37
37
|
import { Init_createInitContract_6DFDD678, gitignoreContract, gitattributesContract, Init_createAddRemoteContract_Z721C83C5, Clone_createCloneContract_5000466F } from './Contract/Git.js';
|
|
38
38
|
import { ofSeq as ofSeq$1 } from '../node_modules/@fable-org/fable-library-js/Map.js';
|
|
39
39
|
import { fromString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
@@ -465,7 +465,7 @@ class ARC extends ArcInvestigation {
|
|
|
465
465
|
updateColumnOption(dataNameFunction_1, t.TryGetInputColumn());
|
|
466
466
|
updateColumnOption(dataNameFunction_1, t.TryGetOutputColumn());
|
|
467
467
|
};
|
|
468
|
-
const
|
|
468
|
+
const updateDatamap = (dataNameFunction_2, dm) => {
|
|
469
469
|
iterate((c_1) => {
|
|
470
470
|
if (c_1.FilePath != null) {
|
|
471
471
|
const newFilePath_1 = dataNameFunction_2(c_1);
|
|
@@ -477,16 +477,16 @@ class ARC extends ArcInvestigation {
|
|
|
477
477
|
const f_1 = (d) => d.GetAbsolutePathForStudy(s.Identifier, checkExistenceFromRoot);
|
|
478
478
|
const source_1 = s.Tables;
|
|
479
479
|
iterate(curry2(updateTable)(f_1), source_1);
|
|
480
|
-
if (s.
|
|
481
|
-
|
|
480
|
+
if (s.Datamap != null) {
|
|
481
|
+
updateDatamap(f_1, value(s.Datamap));
|
|
482
482
|
}
|
|
483
483
|
}, this$.Studies);
|
|
484
484
|
iterate((a_1) => {
|
|
485
485
|
const f_2 = (d_1) => d_1.GetAbsolutePathForAssay(a_1.Identifier, checkExistenceFromRoot);
|
|
486
486
|
const source_3 = a_1.Tables;
|
|
487
487
|
iterate(curry2(updateTable)(f_2), source_3);
|
|
488
|
-
if (a_1.
|
|
489
|
-
|
|
488
|
+
if (a_1.Datamap != null) {
|
|
489
|
+
updateDatamap(f_2, value(a_1.Datamap));
|
|
490
490
|
}
|
|
491
491
|
}, this$.Assays);
|
|
492
492
|
}
|
|
@@ -542,9 +542,9 @@ class ARC extends ArcInvestigation {
|
|
|
542
542
|
const registeredStudy = value(registeredStudyOpt);
|
|
543
543
|
registeredStudy.UpdateReferenceByStudyFile(study, true);
|
|
544
544
|
}
|
|
545
|
-
const datamap =
|
|
546
|
-
if (study.
|
|
547
|
-
study.
|
|
545
|
+
const datamap = ARCAux_getStudyDatamapFromContracts(study.Identifier, contracts);
|
|
546
|
+
if (study.Datamap == null) {
|
|
547
|
+
study.Datamap = datamap;
|
|
548
548
|
}
|
|
549
549
|
study.StaticHash = study.GetLightHashCode() | 0;
|
|
550
550
|
});
|
|
@@ -560,28 +560,28 @@ class ARC extends ArcInvestigation {
|
|
|
560
560
|
let updatedTables;
|
|
561
561
|
const array_6 = assay_1.StudiesRegisteredIn;
|
|
562
562
|
updatedTables = fold((tables, study_1) => ArcTables.updateReferenceTablesBySheets(new ArcTables(study_1.Tables), tables, false), new ArcTables(assay_1.Tables), array_6);
|
|
563
|
-
const datamap_1 =
|
|
564
|
-
if (assay_1.
|
|
565
|
-
assay_1.
|
|
563
|
+
const datamap_1 = ARCAux_getAssayDatamapFromContracts(assay_1.Identifier, contracts);
|
|
564
|
+
if (assay_1.Datamap == null) {
|
|
565
|
+
assay_1.Datamap = datamap_1;
|
|
566
566
|
}
|
|
567
567
|
assay_1.Tables = updatedTables.Tables;
|
|
568
568
|
});
|
|
569
569
|
workflows.forEach((workflow) => {
|
|
570
|
-
const datamap_2 =
|
|
570
|
+
const datamap_2 = ARCAux_getWorkflowDatamapFromContracts(workflow.Identifier, contracts);
|
|
571
571
|
const cwl = ARCAux_getWorkflowCWLFromContracts(workflow.Identifier, contracts);
|
|
572
|
-
if (workflow.
|
|
573
|
-
workflow.
|
|
572
|
+
if (workflow.Datamap == null) {
|
|
573
|
+
workflow.Datamap = datamap_2;
|
|
574
574
|
}
|
|
575
575
|
workflow.CWLDescription = cwl;
|
|
576
576
|
this$.AddWorkflow(workflow);
|
|
577
577
|
workflow.StaticHash = workflow.GetLightHashCode() | 0;
|
|
578
578
|
});
|
|
579
579
|
runs.forEach((run) => {
|
|
580
|
-
const datamap_3 =
|
|
580
|
+
const datamap_3 = ARCAux_getRunDatamapFromContracts(run.Identifier, contracts);
|
|
581
581
|
const cwl_1 = ARCAux_getRunCWLFromContracts(run.Identifier, contracts);
|
|
582
582
|
const yml = ARCAux_getRunYMLFromContracts(run.Identifier, contracts);
|
|
583
|
-
if (run.
|
|
584
|
-
run.
|
|
583
|
+
if (run.Datamap == null) {
|
|
584
|
+
run.Datamap = datamap_3;
|
|
585
585
|
}
|
|
586
586
|
run.CWLInput = defaultArg(yml, []);
|
|
587
587
|
run.CWLDescription = cwl_1;
|
|
@@ -613,8 +613,8 @@ class ARC extends ArcInvestigation {
|
|
|
613
613
|
iterate((s) => {
|
|
614
614
|
s.StaticHash = s.GetLightHashCode() | 0;
|
|
615
615
|
addToDict(filemap, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(s)]);
|
|
616
|
-
if (s.
|
|
617
|
-
const dm = value(s.
|
|
616
|
+
if (s.Datamap != null) {
|
|
617
|
+
const dm = value(s.Datamap);
|
|
618
618
|
dm.StaticHash = safeHash(dm) | 0;
|
|
619
619
|
addToDict(filemap, Study_datamapFileNameFromIdentifier(s.Identifier), ["ISA_Datamap", toFsWorkbook(dm)]);
|
|
620
620
|
}
|
|
@@ -622,8 +622,8 @@ class ARC extends ArcInvestigation {
|
|
|
622
622
|
iterate((a) => {
|
|
623
623
|
a.StaticHash = a.GetLightHashCode() | 0;
|
|
624
624
|
addToDict(filemap, Assay_fileNameFromIdentifier(a.Identifier), ["ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(a)]);
|
|
625
|
-
if (a.
|
|
626
|
-
const dm_1 = value(a.
|
|
625
|
+
if (a.Datamap != null) {
|
|
626
|
+
const dm_1 = value(a.Datamap);
|
|
627
627
|
dm_1.StaticHash = safeHash(dm_1) | 0;
|
|
628
628
|
addToDict(filemap, Assay_datamapFileNameFromIdentifier(a.Identifier), ["ISA_Datamap", toFsWorkbook(dm_1)]);
|
|
629
629
|
}
|
|
@@ -634,8 +634,8 @@ class ARC extends ArcInvestigation {
|
|
|
634
634
|
if (w.CWLDescription != null) {
|
|
635
635
|
throw new Error("Not implemented yet: CWL description in ARC.GetWriteContracts");
|
|
636
636
|
}
|
|
637
|
-
if (w.
|
|
638
|
-
const dm_2 = value(w.
|
|
637
|
+
if (w.Datamap != null) {
|
|
638
|
+
const dm_2 = value(w.Datamap);
|
|
639
639
|
dm_2.StaticHash = safeHash(dm_2) | 0;
|
|
640
640
|
addToDict(filemap, Workflow_datamapFileNameFromIdentifier(w.Identifier), ["ISA_Datamap", toFsWorkbook(dm_2)]);
|
|
641
641
|
}
|
|
@@ -649,8 +649,8 @@ class ARC extends ArcInvestigation {
|
|
|
649
649
|
if (r.CWLInput.length > 0) {
|
|
650
650
|
throw new Error("Not implemented yet: CWL YAML input in ARC.GetWriteContracts");
|
|
651
651
|
}
|
|
652
|
-
if (r.
|
|
653
|
-
const dm_3 = value(r.
|
|
652
|
+
if (r.Datamap != null) {
|
|
653
|
+
const dm_3 = value(r.Datamap);
|
|
654
654
|
dm_3.StaticHash = safeHash(dm_3) | 0;
|
|
655
655
|
addToDict(filemap, Run_datamapFileNameFromIdentifier(r.Identifier), ["ISA_Datamap", toFsWorkbook(dm_3)]);
|
|
656
656
|
}
|
|
@@ -689,7 +689,7 @@ class ARC extends ArcInvestigation {
|
|
|
689
689
|
return append(s.StaticHash === 0 ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : s.StaticHash !== hash_1 ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty(), delay(() => {
|
|
690
690
|
let dm, dm_1;
|
|
691
691
|
s.StaticHash = hash_1 | 0;
|
|
692
|
-
const matchValue = s.
|
|
692
|
+
const matchValue = s.Datamap;
|
|
693
693
|
let matchResult, dm_2, dm_3;
|
|
694
694
|
if (matchValue != null) {
|
|
695
695
|
if (dm = value(matchValue), dm.StaticHash === 0) {
|
|
@@ -706,12 +706,12 @@ class ARC extends ArcInvestigation {
|
|
|
706
706
|
}
|
|
707
707
|
switch (matchResult) {
|
|
708
708
|
case 0:
|
|
709
|
-
return append(singleton(
|
|
709
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
|
|
710
710
|
dm_2.StaticHash = safeHash(dm_2) | 0;
|
|
711
711
|
return empty();
|
|
712
712
|
}));
|
|
713
713
|
case 1:
|
|
714
|
-
return append(singleton(
|
|
714
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
|
|
715
715
|
dm_3.StaticHash = safeHash(dm_3) | 0;
|
|
716
716
|
return empty();
|
|
717
717
|
}));
|
|
@@ -725,7 +725,7 @@ class ARC extends ArcInvestigation {
|
|
|
725
725
|
return append(a.StaticHash === 0 ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : a.StaticHash !== hash_2 ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty(), delay(() => {
|
|
726
726
|
let dm_4, dm_5;
|
|
727
727
|
a.StaticHash = hash_2 | 0;
|
|
728
|
-
const matchValue_1 = a.
|
|
728
|
+
const matchValue_1 = a.Datamap;
|
|
729
729
|
let matchResult_1, dm_6, dm_7;
|
|
730
730
|
if (matchValue_1 != null) {
|
|
731
731
|
if (dm_4 = value(matchValue_1), dm_4.StaticHash === 0) {
|
|
@@ -742,12 +742,12 @@ class ARC extends ArcInvestigation {
|
|
|
742
742
|
}
|
|
743
743
|
switch (matchResult_1) {
|
|
744
744
|
case 0:
|
|
745
|
-
return append(singleton(
|
|
745
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
|
|
746
746
|
dm_6.StaticHash = safeHash(dm_6) | 0;
|
|
747
747
|
return empty();
|
|
748
748
|
}));
|
|
749
749
|
case 1:
|
|
750
|
-
return append(singleton(
|
|
750
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
|
|
751
751
|
dm_7.StaticHash = safeHash(dm_7) | 0;
|
|
752
752
|
return empty();
|
|
753
753
|
}));
|
|
@@ -761,7 +761,7 @@ class ARC extends ArcInvestigation {
|
|
|
761
761
|
return append(w.StaticHash === 0 ? ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true) : w.StaticHash !== hash_3 ? singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract(w)) : empty(), delay(() => {
|
|
762
762
|
let dm_8, dm_9;
|
|
763
763
|
w.StaticHash = hash_3 | 0;
|
|
764
|
-
const matchValue_2 = w.
|
|
764
|
+
const matchValue_2 = w.Datamap;
|
|
765
765
|
let matchResult_2, dm_10, dm_11;
|
|
766
766
|
if (matchValue_2 != null) {
|
|
767
767
|
if (dm_8 = value(matchValue_2), dm_8.StaticHash === 0) {
|
|
@@ -778,12 +778,12 @@ class ARC extends ArcInvestigation {
|
|
|
778
778
|
}
|
|
779
779
|
switch (matchResult_2) {
|
|
780
780
|
case 0:
|
|
781
|
-
return append(singleton(
|
|
781
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_10, w.Identifier)), delay(() => {
|
|
782
782
|
dm_10.StaticHash = safeHash(dm_10) | 0;
|
|
783
783
|
return empty();
|
|
784
784
|
}));
|
|
785
785
|
case 1:
|
|
786
|
-
return append(singleton(
|
|
786
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, w.Identifier)), delay(() => {
|
|
787
787
|
dm_11.StaticHash = safeHash(dm_11) | 0;
|
|
788
788
|
return empty();
|
|
789
789
|
}));
|
|
@@ -797,7 +797,7 @@ class ARC extends ArcInvestigation {
|
|
|
797
797
|
return append(r.StaticHash === 0 ? ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true) : r.StaticHash !== hash_4 ? singleton(ARCtrl_ArcRun__ArcRun_ToUpdateContract(r)) : empty(), delay(() => {
|
|
798
798
|
let dm_12, dm_13;
|
|
799
799
|
r.StaticHash = hash_4 | 0;
|
|
800
|
-
const matchValue_3 = r.
|
|
800
|
+
const matchValue_3 = r.Datamap;
|
|
801
801
|
let matchResult_3, dm_14, dm_15;
|
|
802
802
|
if (matchValue_3 != null) {
|
|
803
803
|
if (dm_12 = value(matchValue_3), dm_12.StaticHash === 0) {
|
|
@@ -814,12 +814,12 @@ class ARC extends ArcInvestigation {
|
|
|
814
814
|
}
|
|
815
815
|
switch (matchResult_3) {
|
|
816
816
|
case 0:
|
|
817
|
-
return append(singleton(
|
|
817
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_14, r.Identifier)), delay(() => {
|
|
818
818
|
dm_14.StaticHash = safeHash(dm_14) | 0;
|
|
819
819
|
return empty();
|
|
820
820
|
}));
|
|
821
821
|
case 1:
|
|
822
|
-
return append(singleton(
|
|
822
|
+
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
|
|
823
823
|
dm_15.StaticHash = safeHash(dm_15) | 0;
|
|
824
824
|
return empty();
|
|
825
825
|
}));
|
|
@@ -1084,17 +1084,17 @@ function ARCAux_getArcWorkflowsFromContracts(contracts) {
|
|
|
1084
1084
|
function ARCAux_getArcRunsFromContracts(contracts) {
|
|
1085
1085
|
return choose(ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F, contracts);
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return tryPick((c) =>
|
|
1087
|
+
function ARCAux_getAssayDatamapFromContracts(assayIdentifier, contracts) {
|
|
1088
|
+
return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForAssay_Static(assayIdentifier, c), contracts);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return tryPick((c) =>
|
|
1090
|
+
function ARCAux_getStudyDatamapFromContracts(studyIdentifier, contracts) {
|
|
1091
|
+
return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForStudy_Static(studyIdentifier, c), contracts);
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return tryPick((c) =>
|
|
1093
|
+
function ARCAux_getWorkflowDatamapFromContracts(workflowIdentifier, contracts) {
|
|
1094
|
+
return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForWorkflow_Static(workflowIdentifier, c), contracts);
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return tryPick((c) =>
|
|
1096
|
+
function ARCAux_getRunDatamapFromContracts(runIdentifier, contracts) {
|
|
1097
|
+
return tryPick((c) => ARCtrl_Datamap__Datamap_tryFromReadContractForRun_Static(runIdentifier, c), contracts);
|
|
1098
1098
|
}
|
|
1099
1099
|
function ARCAux_getWorkflowCWLFromContracts(workflowIdentifier, contracts) {
|
|
1100
1100
|
return tryPick((c) => ARCtrl_ArcWorkflow__ArcWorkflow_tryCWLFromReadContract_Static(workflowIdentifier, c), contracts);
|
|
@@ -1119,16 +1119,16 @@ function ARCAux_getLicenseFromContracts(contracts) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
function ARCAux_updateFSByARC(isa, license, fs) {
|
|
1121
1121
|
let assaysFolder;
|
|
1122
|
-
const assays = map((a) => FileSystemTree.createAssayFolder(a.Identifier, a.
|
|
1122
|
+
const assays = map((a) => FileSystemTree.createAssayFolder(a.Identifier, a.Datamap != null), toArray(isa.Assays));
|
|
1123
1123
|
assaysFolder = FileSystemTree.createAssaysFolder(assays);
|
|
1124
1124
|
let studiesFolder;
|
|
1125
|
-
const studies = map((s) => FileSystemTree.createStudyFolder(s.Identifier, s.
|
|
1125
|
+
const studies = map((s) => FileSystemTree.createStudyFolder(s.Identifier, s.Datamap != null), toArray(isa.Studies));
|
|
1126
1126
|
studiesFolder = FileSystemTree.createStudiesFolder(studies);
|
|
1127
1127
|
let workflowsFolder;
|
|
1128
|
-
const workflows = map((w) => FileSystemTree.createWorkflowFolder(w.Identifier, w.CWLDescription != null, w.
|
|
1128
|
+
const workflows = map((w) => FileSystemTree.createWorkflowFolder(w.Identifier, w.CWLDescription != null, w.Datamap != null), toArray(isa.Workflows));
|
|
1129
1129
|
workflowsFolder = FileSystemTree.createWorkflowsFolder(workflows);
|
|
1130
1130
|
let runsFolder;
|
|
1131
|
-
const runs = map((r) => FileSystemTree.createRunFolder(r.Identifier, r.CWLDescription != null, r.CWLInput.length > 0, r.
|
|
1131
|
+
const runs = map((r) => FileSystemTree.createRunFolder(r.Identifier, r.CWLDescription != null, r.CWLInput.length > 0, r.Datamap != null), toArray(isa.Runs));
|
|
1132
1132
|
runsFolder = FileSystemTree.createRunsFolder(runs);
|
|
1133
1133
|
const investigation = FileSystemTree.createInvestigationFile();
|
|
1134
1134
|
let tree_1;
|
|
@@ -1139,4 +1139,4 @@ function ARCAux_updateFSByARC(isa, license, fs) {
|
|
|
1139
1139
|
return fs.Union(tree_1);
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
1142
|
-
export { ARC, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts,
|
|
1142
|
+
export { ARC, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts, ARCAux_getAssayDatamapFromContracts, ARCAux_getLicenseFromContracts, ARCAux_getRunCWLFromContracts, ARCAux_getRunDatamapFromContracts, ARCAux_getRunYMLFromContracts, ARCAux_getStudyDatamapFromContracts, ARCAux_getWorkflowCWLFromContracts, ARCAux_getWorkflowDatamapFromContracts, ARCAux_updateFSByARC, ARC_$ctor_Z443FB9BF, ARC_$reflection };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { Contract } from './Contract.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
4
4
|
export declare function $007CDatamapPath$007C_$007C(input: string[]): Option<string>;
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function
|
|
28
|
-
export declare function
|
|
5
|
+
export declare function ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(this$: Datamap, assayIdentifier: string): Contract;
|
|
6
|
+
export declare function ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(this$: Datamap, assayIdentifier: string): Contract;
|
|
7
|
+
export declare function ARCtrl_Datamap__Datamap_ToDeleteContractForAssay_Z721C83C5(this$: Datamap, assayIdentifier: string): Contract;
|
|
8
|
+
export declare function ARCtrl_Datamap__Datamap_toDeleteContractForAssay_Static_Z721C83C5(assayIdentifier: string): ((arg0: Datamap) => Contract);
|
|
9
|
+
export declare function ARCtrl_Datamap__Datamap_toUpdateContractForAssay_Static_Z721C83C5(assayIdentifier: string): ((arg0: Datamap) => Contract);
|
|
10
|
+
export declare function ARCtrl_Datamap__Datamap_tryFromReadContractForAssay_Static(assayIdentifier: string, c: Contract): Option<Datamap>;
|
|
11
|
+
export declare function ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(this$: Datamap, studyIdentifier: string): Contract;
|
|
12
|
+
export declare function ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(this$: Datamap, studyIdentifier: string): Contract;
|
|
13
|
+
export declare function ARCtrl_Datamap__Datamap_ToDeleteContractForStudy_Z721C83C5(this$: Datamap, studyIdentifier: string): Contract;
|
|
14
|
+
export declare function ARCtrl_Datamap__Datamap_toDeleteContractForStudy_Static_Z721C83C5(studyIdentifier: string): ((arg0: Datamap) => Contract);
|
|
15
|
+
export declare function ARCtrl_Datamap__Datamap_toUpdateContractForStudy_Static_Z721C83C5(studyIdentifier: string): ((arg0: Datamap) => Contract);
|
|
16
|
+
export declare function ARCtrl_Datamap__Datamap_tryFromReadContractForStudy_Static(studyIdentifier: string, c: Contract): Option<Datamap>;
|
|
17
|
+
export declare function ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(this$: Datamap, workflowIdentifier: string): Contract;
|
|
18
|
+
export declare function ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(this$: Datamap, workflowIdentifier: string): Contract;
|
|
19
|
+
export declare function ARCtrl_Datamap__Datamap_ToDeleteContractForWorkflow_Z721C83C5(this$: Datamap, workflowIdentifier: string): Contract;
|
|
20
|
+
export declare function ARCtrl_Datamap__Datamap_toDeleteContractForWorkflow_Static_Z721C83C5(workflowIdentifier: string): ((arg0: Datamap) => Contract);
|
|
21
|
+
export declare function ARCtrl_Datamap__Datamap_toUpdateContractForWorkflow_Static_Z721C83C5(workflowIdentifier: string): ((arg0: Datamap) => Contract);
|
|
22
|
+
export declare function ARCtrl_Datamap__Datamap_tryFromReadContractForWorkflow_Static(workflowIdentifier: string, c: Contract): Option<Datamap>;
|
|
23
|
+
export declare function ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(this$: Datamap, runIdentifier: string): Contract;
|
|
24
|
+
export declare function ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(this$: Datamap, runIdentifier: string): Contract;
|
|
25
|
+
export declare function ARCtrl_Datamap__Datamap_ToDeleteContractForRun_Z721C83C5(this$: Datamap, runIdentifier: string): Contract;
|
|
26
|
+
export declare function ARCtrl_Datamap__Datamap_toDeleteContractForRun_Static_Z721C83C5(runIdentifier: string): ((arg0: Datamap) => Contract);
|
|
27
|
+
export declare function ARCtrl_Datamap__Datamap_toUpdateContractForRun_Static_Z721C83C5(runIdentifier: string): ((arg0: Datamap) => Contract);
|
|
28
|
+
export declare function ARCtrl_Datamap__Datamap_tryFromReadContractForRun_Static(runIdentifier: string, c: Contract): Option<Datamap>;
|
|
29
29
|
//# sourceMappingURL=Datamap.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { defaultOf, safeHash } from '../../node_modules/@fable-org/fable-library
|
|
|
4
4
|
import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
5
|
import { Assay_datamapFileNameFromIdentifier, Study_datamapFileNameFromIdentifier, Workflow_datamapFileNameFromIdentifier, Run_datamapFileNameFromIdentifier } from '../Core/Helper/Identifier.js';
|
|
6
6
|
import { Contract } from './Contract.js';
|
|
7
|
-
import { toFsWorkbook, fromFsWorkbook } from '../Spreadsheet/
|
|
7
|
+
import { toFsWorkbook, fromFsWorkbook } from '../Spreadsheet/Datamap.js';
|
|
8
8
|
|
|
9
9
|
function $007CDatamapPath$007C_$007C(input) {
|
|
10
10
|
let matchResult;
|
|
@@ -60,25 +60,25 @@ function $007CDatamapPath$007C_$007C(input) {
|
|
|
60
60
|
return void 0;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(this$, assayIdentifier) {
|
|
64
64
|
const path = Assay_datamapFileNameFromIdentifier(assayIdentifier);
|
|
65
65
|
return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(this$, assayIdentifier) {
|
|
68
68
|
const path = Assay_datamapFileNameFromIdentifier(assayIdentifier);
|
|
69
69
|
return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ARCtrl_Datamap__Datamap_ToDeleteContractForAssay_Z721C83C5(this$, assayIdentifier) {
|
|
72
72
|
const path = Assay_datamapFileNameFromIdentifier(assayIdentifier);
|
|
73
73
|
return Contract.createDelete(path);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return (
|
|
75
|
+
function ARCtrl_Datamap__Datamap_toDeleteContractForAssay_Static_Z721C83C5(assayIdentifier) {
|
|
76
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToDeleteContractForAssay_Z721C83C5(datamap, assayIdentifier);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return (
|
|
78
|
+
function ARCtrl_Datamap__Datamap_toUpdateContractForAssay_Static_Z721C83C5(assayIdentifier) {
|
|
79
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(datamap, assayIdentifier);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ARCtrl_Datamap__Datamap_tryFromReadContractForAssay_Static(assayIdentifier, c) {
|
|
82
82
|
let fsworkbook;
|
|
83
83
|
const path = Assay_datamapFileNameFromIdentifier(assayIdentifier);
|
|
84
84
|
let matchResult, fsworkbook_1, p_1;
|
|
@@ -115,25 +115,25 @@ function ARCtrl_DataMap__DataMap_tryFromReadContractForAssay_Static(assayIdentif
|
|
|
115
115
|
return void 0;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(this$, studyIdentifier) {
|
|
119
119
|
const path = Study_datamapFileNameFromIdentifier(studyIdentifier);
|
|
120
120
|
return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(this$, studyIdentifier) {
|
|
123
123
|
const path = Study_datamapFileNameFromIdentifier(studyIdentifier);
|
|
124
124
|
return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function ARCtrl_Datamap__Datamap_ToDeleteContractForStudy_Z721C83C5(this$, studyIdentifier) {
|
|
127
127
|
const path = Study_datamapFileNameFromIdentifier(studyIdentifier);
|
|
128
128
|
return Contract.createDelete(path);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return (
|
|
130
|
+
function ARCtrl_Datamap__Datamap_toDeleteContractForStudy_Static_Z721C83C5(studyIdentifier) {
|
|
131
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToDeleteContractForStudy_Z721C83C5(datamap, studyIdentifier);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return (
|
|
133
|
+
function ARCtrl_Datamap__Datamap_toUpdateContractForStudy_Static_Z721C83C5(studyIdentifier) {
|
|
134
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(datamap, studyIdentifier);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ARCtrl_Datamap__Datamap_tryFromReadContractForStudy_Static(studyIdentifier, c) {
|
|
137
137
|
let fsworkbook;
|
|
138
138
|
const path = Study_datamapFileNameFromIdentifier(studyIdentifier);
|
|
139
139
|
let matchResult, fsworkbook_1, p_1;
|
|
@@ -170,25 +170,25 @@ function ARCtrl_DataMap__DataMap_tryFromReadContractForStudy_Static(studyIdentif
|
|
|
170
170
|
return void 0;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(this$, workflowIdentifier) {
|
|
174
174
|
const path = Workflow_datamapFileNameFromIdentifier(workflowIdentifier);
|
|
175
175
|
return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(this$, workflowIdentifier) {
|
|
178
178
|
const path = Workflow_datamapFileNameFromIdentifier(workflowIdentifier);
|
|
179
179
|
return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function ARCtrl_Datamap__Datamap_ToDeleteContractForWorkflow_Z721C83C5(this$, workflowIdentifier) {
|
|
182
182
|
const path = Workflow_datamapFileNameFromIdentifier(workflowIdentifier);
|
|
183
183
|
return Contract.createDelete(path);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
return (
|
|
185
|
+
function ARCtrl_Datamap__Datamap_toDeleteContractForWorkflow_Static_Z721C83C5(workflowIdentifier) {
|
|
186
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToDeleteContractForWorkflow_Z721C83C5(datamap, workflowIdentifier);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
return (
|
|
188
|
+
function ARCtrl_Datamap__Datamap_toUpdateContractForWorkflow_Static_Z721C83C5(workflowIdentifier) {
|
|
189
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(datamap, workflowIdentifier);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function ARCtrl_Datamap__Datamap_tryFromReadContractForWorkflow_Static(workflowIdentifier, c) {
|
|
192
192
|
let fsworkbook;
|
|
193
193
|
const path = Workflow_datamapFileNameFromIdentifier(workflowIdentifier);
|
|
194
194
|
let matchResult, fsworkbook_1, p_1;
|
|
@@ -225,25 +225,25 @@ function ARCtrl_DataMap__DataMap_tryFromReadContractForWorkflow_Static(workflowI
|
|
|
225
225
|
return void 0;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(this$, runIdentifier) {
|
|
229
229
|
const path = Run_datamapFileNameFromIdentifier(runIdentifier);
|
|
230
230
|
return Contract.createCreate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(this$, runIdentifier) {
|
|
233
233
|
const path = Run_datamapFileNameFromIdentifier(runIdentifier);
|
|
234
234
|
return Contract.createUpdate(path, "ISA_Datamap", toFsWorkbook(this$));
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function ARCtrl_Datamap__Datamap_ToDeleteContractForRun_Z721C83C5(this$, runIdentifier) {
|
|
237
237
|
const path = Run_datamapFileNameFromIdentifier(runIdentifier);
|
|
238
238
|
return Contract.createDelete(path);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
return (
|
|
240
|
+
function ARCtrl_Datamap__Datamap_toDeleteContractForRun_Static_Z721C83C5(runIdentifier) {
|
|
241
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToDeleteContractForRun_Z721C83C5(datamap, runIdentifier);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
return (
|
|
243
|
+
function ARCtrl_Datamap__Datamap_toUpdateContractForRun_Static_Z721C83C5(runIdentifier) {
|
|
244
|
+
return (datamap) => ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(datamap, runIdentifier);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function ARCtrl_Datamap__Datamap_tryFromReadContractForRun_Static(runIdentifier, c) {
|
|
247
247
|
let fsworkbook;
|
|
248
248
|
const path = Run_datamapFileNameFromIdentifier(runIdentifier);
|
|
249
249
|
let matchResult, fsworkbook_1, p_1;
|
|
@@ -281,4 +281,4 @@ function ARCtrl_DataMap__DataMap_tryFromReadContractForRun_Static(runIdentifier,
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
export { $007CDatamapPath$007C_$007C,
|
|
284
|
+
export { $007CDatamapPath$007C_$007C, ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5, ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5, ARCtrl_Datamap__Datamap_ToDeleteContractForAssay_Z721C83C5, ARCtrl_Datamap__Datamap_ToDeleteContractForRun_Z721C83C5, ARCtrl_Datamap__Datamap_ToDeleteContractForStudy_Z721C83C5, ARCtrl_Datamap__Datamap_ToDeleteContractForWorkflow_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5, ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5, ARCtrl_Datamap__Datamap_toDeleteContractForAssay_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toDeleteContractForRun_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toDeleteContractForStudy_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toDeleteContractForWorkflow_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toUpdateContractForAssay_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toUpdateContractForRun_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toUpdateContractForStudy_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toUpdateContractForWorkflow_Static_Z721C83C5, ARCtrl_Datamap__Datamap_tryFromReadContractForAssay_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForRun_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForStudy_Static, ARCtrl_Datamap__Datamap_tryFromReadContractForWorkflow_Static };
|
|
@@ -10,8 +10,8 @@ import { BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composePropertyValueFr
|
|
|
10
10
|
import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
|
|
11
11
|
import { ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586 } from './Table.js';
|
|
12
12
|
import { ArcTables } from '../Core/Table/ArcTables.js';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
|
|
14
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
15
15
|
import { ArcAssay } from '../Core/ArcTypes.js';
|
|
16
16
|
import { ofSeq } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
17
17
|
|
|
@@ -47,7 +47,7 @@ function AssayConversion_composeAssay_Z5C53FD5C(assay, fs) {
|
|
|
47
47
|
const variableMeasured = map(BaseTypes_composePropertyValueFromOA_ZDED3A0F, assay.MeasurementType);
|
|
48
48
|
const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, assay.Performers));
|
|
49
49
|
const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(assay.Tables), assay.Identifier, void 0, unwrap(fs)), Array.from(collection)));
|
|
50
|
-
const fragmentDescriptors = map(
|
|
50
|
+
const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z892BFC3, assay.Datamap);
|
|
51
51
|
const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);
|
|
52
52
|
const variableMeasureds = variableMeasured == null ? fragmentDescriptors == null ? void 0 : (fds_1 = value(fragmentDescriptors), fds_1) : fragmentDescriptors == null ? (vm_1 = value(variableMeasured), ResizeArray_singleton(vm_1)) : (fds = value(fragmentDescriptors), vm = value(variableMeasured), ResizeArray_appendSingleton(vm, fds));
|
|
53
53
|
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, assay.Comments));
|
|
@@ -58,12 +58,12 @@ function AssayConversion_decomposeAssay_Z6839B9E8(assay, graph, context) {
|
|
|
58
58
|
const measurementTechnique = map((m_1) => BaseTypes_decomposeDefinedTerm_Z2F770004(m_1, unwrap(context)), LDDataset.tryGetMeasurementTechniqueAsDefinedTerm(assay, unwrap(graph), unwrap(context)));
|
|
59
59
|
const variableMeasured = map((v) => BaseTypes_decomposePropertyValueToOA_Z2F770004(v, unwrap(context)), LDDataset.tryGetVariableMeasuredAsMeasurementType(assay, unwrap(graph), unwrap(context)));
|
|
60
60
|
const perfomers = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(assay, unwrap(graph), unwrap(context)));
|
|
61
|
-
let
|
|
61
|
+
let datamap;
|
|
62
62
|
const v_1 = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(assay, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
|
|
63
|
-
|
|
63
|
+
datamap = Option_fromValueWithDefault(Datamap.init(), v_1);
|
|
64
64
|
const tables = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ofSeq(LDDataset.getAboutsAsLabProcess(assay, unwrap(graph), unwrap(context))), unwrap(graph), unwrap(context));
|
|
65
65
|
const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(assay, unwrap(graph), unwrap(context)));
|
|
66
|
-
return ArcAssay.create(LDDataset.getIdentifierAsString(assay, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(assay, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(assay, unwrap(context))), unwrap(variableMeasured), unwrap(measurementMethod), unwrap(measurementTechnique), tables.Tables, unwrap(
|
|
66
|
+
return ArcAssay.create(LDDataset.getIdentifierAsString(assay, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(assay, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(assay, unwrap(context))), unwrap(variableMeasured), unwrap(measurementMethod), unwrap(measurementTechnique), tables.Tables, unwrap(datamap), perfomers, comments);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export { AssayConversion, AssayConversion_$reflection, AssayConversion_composeAssay_Z5C53FD5C, AssayConversion_decomposeAssay_Z6839B9E8, AssayConversion_getDataFilesFromProcesses_6BABD1B0 };
|
|
@@ -2,6 +2,7 @@ import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
|
2
2
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { LDNode } from '../ROCrate/LDObject.js';
|
|
4
4
|
export declare const orderName = "columnIndex";
|
|
5
|
+
export declare const columndIndexProperty = "https://w3id.org/ro/terms/arc#columnIndex";
|
|
5
6
|
export declare function tryGetIndex(node: LDNode): Option<int32>;
|
|
6
7
|
export declare function setIndex(node: LDNode, index: int32): void;
|
|
7
8
|
export declare function ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex(this$: LDNode): int32;
|