@nfdi4plants/arctrl 3.0.0-beta.6 → 3.0.0-beta.8
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 +1 -0
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +1 -0
- package/dist/ts/ts/ARC.d.ts +5 -1
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +86 -21
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +4 -5
- package/dist/ts/ts/Core/ArcTypes.d.ts +57 -92
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +396 -307
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +1 -2
- package/dist/ts/ts/Json/Workflow.d.ts +1 -1
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Json/Workflow.js +17 -17
- package/dist/ts/ts/Json.d.ts +10 -0
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +24 -1
- package/dist/ts/ts/JsonIO/Datamap.d.ts +7 -0
- package/dist/ts/ts/JsonIO/Datamap.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Datamap.js +28 -0
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +7 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +23 -13
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentifierSetters.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Core/IdentifierSetters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"IdentifierSetters.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Core/IdentifierSetters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE1F,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAI1E;AAED,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAInF;AAED,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAInF;AAED,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,GAAG,WAAW,CAI/F;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAI3E;AAED,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,GAAG,gBAAgB,CAInH"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { checkValidCharacters } from './Helper/Identifier.js';
|
|
2
|
-
import { ArcWorkflow__set_Identifier_Z721C83C5 } from './ArcTypes.js';
|
|
3
2
|
|
|
4
3
|
function setArcTableName(newName, table) {
|
|
5
4
|
checkValidCharacters(newName);
|
|
@@ -18,7 +17,7 @@ function setStudyIdentifier(newIdentifier, study) {
|
|
|
18
17
|
}
|
|
19
18
|
function setWorkflowIdentifier(newIdentifier, workflow) {
|
|
20
19
|
checkValidCharacters(newIdentifier);
|
|
21
|
-
|
|
20
|
+
workflow.Identifier = newIdentifier;
|
|
22
21
|
return workflow;
|
|
23
22
|
}
|
|
24
23
|
function setRunIdentifier(newIdentifier, run) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
2
|
-
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
3
2
|
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
3
|
+
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
4
4
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
5
5
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
6
6
|
import { CompositeCell_$union } from '../Core/Table/CompositeCell.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Json/Workflow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Json/Workflow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAG9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAYnE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,wBAAgB,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,UAAU,CAiCzD;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAGzC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE,WAAW,GAAG,UAAU,CAiC7L;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,CAKjJ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
2
|
import { map, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import { ArcWorkflow__get_Identifier, ArcWorkflow__get_WorkflowType, ArcWorkflow__get_Title, ArcWorkflow__get_URI, ArcWorkflow__get_Description, ArcWorkflow__get_Version, ArcWorkflow__get_DataMap, ArcWorkflow__get_SubWorkflowIdentifiers, ArcWorkflow__get_Parameters, ArcWorkflow__get_Components, ArcWorkflow__get_Contacts, ArcWorkflow__get_Comments, ArcWorkflow_create_Z3BB02240 } from '../Core/ArcTypes.js';
|
|
4
3
|
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
5
4
|
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from './OntologyAnnotation.js';
|
|
6
5
|
import { encoder as encoder$1, decoder as decoder$3, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$1 } from './DataMap/DataMap.js';
|
|
@@ -9,35 +8,36 @@ import { encoder as encoder$3, decoder as decoder$2 } from './Process/Component.
|
|
|
9
8
|
import { encoder as encoder$4, decoder as decoder$4 } from './Person.js';
|
|
10
9
|
import { encoder as encoder$5, decoder as decoder$5 } from './Comment.js';
|
|
11
10
|
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
11
|
+
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
12
12
|
import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
13
13
|
|
|
14
14
|
function encoder(workflow) {
|
|
15
15
|
let value;
|
|
16
|
-
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value =
|
|
16
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = workflow.Identifier, {
|
|
17
17
|
Encode(helpers) {
|
|
18
18
|
return helpers.encodeString(value);
|
|
19
19
|
}
|
|
20
|
-
})], tryInclude("WorkflowType", OntologyAnnotation_encoder,
|
|
20
|
+
})], tryInclude("WorkflowType", OntologyAnnotation_encoder, workflow.WorkflowType), tryInclude("Title", (value_1) => ({
|
|
21
21
|
Encode(helpers_1) {
|
|
22
22
|
return helpers_1.encodeString(value_1);
|
|
23
23
|
}
|
|
24
|
-
}),
|
|
24
|
+
}), workflow.Title), tryInclude("URI", (value_3) => ({
|
|
25
25
|
Encode(helpers_2) {
|
|
26
26
|
return helpers_2.encodeString(value_3);
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
28
|
+
}), workflow.URI), tryInclude("Description", (value_5) => ({
|
|
29
29
|
Encode(helpers_3) {
|
|
30
30
|
return helpers_3.encodeString(value_5);
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
32
|
+
}), workflow.Description), tryInclude("Version", (value_7) => ({
|
|
33
33
|
Encode(helpers_4) {
|
|
34
34
|
return helpers_4.encodeString(value_7);
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), workflow.Version), tryInclude("DataMap", encoder$1, workflow.DataMap), tryIncludeSeq("SubWorkflowIdentifiers", (value_9) => ({
|
|
37
37
|
Encode(helpers_5) {
|
|
38
38
|
return helpers_5.encodeString(value_9);
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
40
|
+
}), workflow.SubWorkflowIdentifiers), tryIncludeSeq("Parameters", encoder$2, workflow.Parameters), tryIncludeSeq("Components", encoder$3, workflow.Components), tryIncludeSeq("Contacts", encoder$4, workflow.Contacts), tryIncludeSeq("Comments", encoder$5, workflow.Comments)]));
|
|
41
41
|
return {
|
|
42
42
|
Encode(helpers_6) {
|
|
43
43
|
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
@@ -47,35 +47,35 @@ function encoder(workflow) {
|
|
|
47
47
|
}
|
|
48
48
|
const decoder = object((get$) => {
|
|
49
49
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
50
|
-
return
|
|
50
|
+
return ArcWorkflow.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$1), objectArg_7 = get$.Optional, objectArg_7.Field("Parameters", arg_15))), unwrap((arg_17 = resizeArray(decoder$2), objectArg_8 = get$.Optional, objectArg_8.Field("Components", arg_17))), unwrap((objectArg_9 = get$.Optional, objectArg_9.Field("DataMap", decoder$3))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Contacts", arg_21))), unwrap((arg_23 = resizeArray(decoder$5), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
51
51
|
});
|
|
52
52
|
function encoderCompressed(stringTable, oaTable, cellTable, workflow) {
|
|
53
53
|
let value;
|
|
54
|
-
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value =
|
|
54
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = workflow.Identifier, {
|
|
55
55
|
Encode(helpers) {
|
|
56
56
|
return helpers.encodeString(value);
|
|
57
57
|
}
|
|
58
|
-
})], tryInclude("WorkflowType", OntologyAnnotation_encoder,
|
|
58
|
+
})], tryInclude("WorkflowType", OntologyAnnotation_encoder, workflow.WorkflowType), tryInclude("Title", (value_1) => ({
|
|
59
59
|
Encode(helpers_1) {
|
|
60
60
|
return helpers_1.encodeString(value_1);
|
|
61
61
|
}
|
|
62
|
-
}),
|
|
62
|
+
}), workflow.Title), tryInclude("URI", (value_3) => ({
|
|
63
63
|
Encode(helpers_2) {
|
|
64
64
|
return helpers_2.encodeString(value_3);
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
66
|
+
}), workflow.URI), tryInclude("Description", (value_5) => ({
|
|
67
67
|
Encode(helpers_3) {
|
|
68
68
|
return helpers_3.encodeString(value_5);
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), workflow.Description), tryInclude("Version", (value_7) => ({
|
|
71
71
|
Encode(helpers_4) {
|
|
72
72
|
return helpers_4.encodeString(value_7);
|
|
73
73
|
}
|
|
74
|
-
}),
|
|
74
|
+
}), workflow.Version), tryInclude("DataMap", (dm) => encoderCompressed$1(stringTable, oaTable, cellTable, dm), workflow.DataMap), tryIncludeSeq("SubWorkflowIdentifiers", (value_9) => ({
|
|
75
75
|
Encode(helpers_5) {
|
|
76
76
|
return helpers_5.encodeString(value_9);
|
|
77
77
|
}
|
|
78
|
-
}),
|
|
78
|
+
}), workflow.SubWorkflowIdentifiers), tryIncludeSeq("Parameters", encoder$2, workflow.Parameters), tryIncludeSeq("Components", encoder$3, workflow.Components), tryIncludeSeq("Contacts", encoder$4, workflow.Contacts), tryIncludeSeq("Comments", encoder$5, workflow.Comments)]));
|
|
79
79
|
return {
|
|
80
80
|
Encode(helpers_6) {
|
|
81
81
|
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
@@ -86,7 +86,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, workflow) {
|
|
|
86
86
|
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
87
87
|
return object((get$) => {
|
|
88
88
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
89
|
-
return
|
|
89
|
+
return ArcWorkflow.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$1), objectArg_7 = get$.Optional, objectArg_7.Field("Parameters", arg_15))), unwrap((arg_17 = resizeArray(decoder$2), objectArg_8 = get$.Optional, objectArg_8.Field("Components", arg_17))), unwrap((arg_19 = decoderCompressed$1(stringTable, oaTable, cellTable), objectArg_9 = get$.Optional, objectArg_9.Field("DataMap", arg_19))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Contacts", arg_21))), unwrap((arg_23 = resizeArray(decoder$5), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
|
package/dist/ts/ts/Json.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
|
3
3
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
4
4
|
import { Person } from './Core/Person.js';
|
|
5
5
|
import { LDGraph, LDNode } from './ROCrate/LDObject.js';
|
|
6
|
+
import { DataMap } from './Core/DataMap.js';
|
|
6
7
|
import { ArcInvestigation, ArcRun, ArcWorkflow, ArcStudy, ArcAssay } from './Core/ArcTypes.js';
|
|
7
8
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
8
9
|
import { ARC } from './ARC.js';
|
|
@@ -28,6 +29,13 @@ export declare class JsonHelper_PersonJson {
|
|
|
28
29
|
}
|
|
29
30
|
export declare function JsonHelper_PersonJson_$reflection(): TypeInfo;
|
|
30
31
|
export declare function JsonHelper_PersonJson_$ctor(): JsonHelper_PersonJson;
|
|
32
|
+
export declare class JsonHelper_DatamapJson {
|
|
33
|
+
constructor();
|
|
34
|
+
fromJsonString(s: string): DataMap;
|
|
35
|
+
toJsonString(datamap: DataMap, spaces?: int32): string;
|
|
36
|
+
}
|
|
37
|
+
export declare function JsonHelper_DatamapJson_$reflection(): TypeInfo;
|
|
38
|
+
export declare function JsonHelper_DatamapJson_$ctor(): JsonHelper_DatamapJson;
|
|
31
39
|
export declare class JsonHelper_AssayJson {
|
|
32
40
|
constructor();
|
|
33
41
|
fromJsonString(s: string): ArcAssay;
|
|
@@ -109,6 +117,8 @@ export declare function JsonHelper_LDNodeJson_$ctor(): JsonHelper_LDNodeJson;
|
|
|
109
117
|
export declare class JsonController {
|
|
110
118
|
constructor();
|
|
111
119
|
static get OntologyAnnotation(): JsonHelper_OntologyAnnotationJson;
|
|
120
|
+
static get Person(): JsonHelper_PersonJson;
|
|
121
|
+
static get Datamap(): JsonHelper_DatamapJson;
|
|
112
122
|
static get Assay(): JsonHelper_AssayJson;
|
|
113
123
|
static get Study(): JsonHelper_StudyJson;
|
|
114
124
|
static get Workflow(): JsonHelper_WorkflowJson;
|
package/dist/ts/ts/Json.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/Json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE/F,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAIjE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,qBAAa,iCAAiC;;IAG1C,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB;IAG7C,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB;IAGhD,qBAAqB,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB;IAGpD,YAAY,CAAC,EAAE,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM;IAG5D,eAAe,CAAC,EAAE,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM;IAG/D,mBAAmB,CAAC,EAAE,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM;CAGtE;AA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ACD,MAAM,KAAK,OAAO,IAAI,sBAAsB,CAE3C;IACD,MAAM,KAAK,MAAM,IAAI,qBAAqB,CAEzC;CACJ;AAED,wBAAgB,0BAA0B,IAAI,QAAQ,CAErD"}
|
package/dist/ts/ts/Json.js
CHANGED
|
@@ -3,6 +3,7 @@ import { unwrap } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
|
3
3
|
import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
4
4
|
import { ARCtrl_Person__Person_fromJsonString_Static_Z721C83C5, ARCtrl_Person__Person_fromISAJsonString_Static_Z721C83C5, ARCtrl_Person__Person_toJsonString_Static_71136F3F, ARCtrl_Person__Person_toISAJsonString_Static_Z3B036AA, ARCtrl_Person__Person_toROCrateJsonString_Static_71136F3F } from './JsonIO/Person.js';
|
|
5
5
|
import { ARCtrl_ROCrate_LDNode__LDNode_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ROCrate_LDGraph__LDGraph_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F, ARCtrl_ROCrate_LDNode__LDNode_toROCrateJsonString_Static_71136F3F } from './JsonIO/LDObject.js';
|
|
6
|
+
import { ARCtrl_DataMap__DataMap_fromJsonString_Static_Z721C83C5, ARCtrl_DataMap__DataMap_toJsonString_Static_71136F3F } from './JsonIO/Datamap.js';
|
|
6
7
|
import { ARCtrl_ArcAssay__ArcAssay_fromJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_toJsonString_Static_71136F3F, ARCtrl_ArcAssay__ArcAssay_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcAssay__ArcAssay_toISAJsonString_Static_Z3B036AA, ARCtrl_ArcAssay__ArcAssay_toROCrateJsonString_Static_5CABCA47 } from './JsonIO/Assay.js';
|
|
7
8
|
import { ARCtrl_ArcStudy__ArcStudy_fromJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_toJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_toISAJsonString_Static_Z3FD920F1, ARCtrl_ArcStudy__ArcStudy_toROCrateJsonString_Static_3BA23086 } from './JsonIO/Study.js';
|
|
8
9
|
import { ARCtrl_ArcWorkflow__ArcWorkflow_fromJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_toJsonString_Static_71136F3F, ARCtrl_ArcWorkflow__ArcWorkflow_toCompressedJsonString_Static_71136F3F } from './JsonIO/Workflow.js';
|
|
@@ -66,6 +67,22 @@ function JsonHelper_PersonJson_$reflection() {
|
|
|
66
67
|
function JsonHelper_PersonJson_$ctor() {
|
|
67
68
|
return new JsonHelper_PersonJson();
|
|
68
69
|
}
|
|
70
|
+
class JsonHelper_DatamapJson {
|
|
71
|
+
constructor() {
|
|
72
|
+
}
|
|
73
|
+
fromJsonString(s) {
|
|
74
|
+
return ARCtrl_DataMap__DataMap_fromJsonString_Static_Z721C83C5(s);
|
|
75
|
+
}
|
|
76
|
+
toJsonString(datamap, spaces) {
|
|
77
|
+
return ARCtrl_DataMap__DataMap_toJsonString_Static_71136F3F(unwrap(spaces))(datamap);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function JsonHelper_DatamapJson_$reflection() {
|
|
81
|
+
return class_type("ARCtrl.JsonHelper.DatamapJson", void 0, JsonHelper_DatamapJson);
|
|
82
|
+
}
|
|
83
|
+
function JsonHelper_DatamapJson_$ctor() {
|
|
84
|
+
return new JsonHelper_DatamapJson();
|
|
85
|
+
}
|
|
69
86
|
class JsonHelper_AssayJson {
|
|
70
87
|
constructor() {
|
|
71
88
|
}
|
|
@@ -266,6 +283,12 @@ class JsonController {
|
|
|
266
283
|
static get OntologyAnnotation() {
|
|
267
284
|
return new JsonHelper_OntologyAnnotationJson();
|
|
268
285
|
}
|
|
286
|
+
static get Person() {
|
|
287
|
+
return new JsonHelper_PersonJson();
|
|
288
|
+
}
|
|
289
|
+
static get Datamap() {
|
|
290
|
+
return new JsonHelper_DatamapJson();
|
|
291
|
+
}
|
|
269
292
|
static get Assay() {
|
|
270
293
|
return new JsonHelper_AssayJson();
|
|
271
294
|
}
|
|
@@ -295,4 +318,4 @@ function JsonController_$reflection() {
|
|
|
295
318
|
return class_type("ARCtrl.JsonController", void 0, JsonController);
|
|
296
319
|
}
|
|
297
320
|
|
|
298
|
-
export { JsonController, JsonController_$reflection, JsonHelper_ARCJson, JsonHelper_ARCJson_$ctor, JsonHelper_ARCJson_$reflection, JsonHelper_AssayJson, JsonHelper_AssayJson_$ctor, JsonHelper_AssayJson_$reflection, JsonHelper_InvestigationJson, JsonHelper_InvestigationJson_$ctor, JsonHelper_InvestigationJson_$reflection, JsonHelper_LDGraphJson, JsonHelper_LDGraphJson_$ctor, JsonHelper_LDGraphJson_$reflection, JsonHelper_LDNodeJson, JsonHelper_LDNodeJson_$ctor, JsonHelper_LDNodeJson_$reflection, JsonHelper_OntologyAnnotationJson, JsonHelper_OntologyAnnotationJson_$ctor, JsonHelper_OntologyAnnotationJson_$reflection, JsonHelper_PersonJson, JsonHelper_PersonJson_$ctor, JsonHelper_PersonJson_$reflection, JsonHelper_RunJson, JsonHelper_RunJson_$ctor, JsonHelper_RunJson_$reflection, JsonHelper_StudyJson, JsonHelper_StudyJson_$ctor, JsonHelper_StudyJson_$reflection, JsonHelper_WorkflowJson, JsonHelper_WorkflowJson_$ctor, JsonHelper_WorkflowJson_$reflection };
|
|
321
|
+
export { JsonController, JsonController_$reflection, JsonHelper_ARCJson, JsonHelper_ARCJson_$ctor, JsonHelper_ARCJson_$reflection, JsonHelper_AssayJson, JsonHelper_AssayJson_$ctor, JsonHelper_AssayJson_$reflection, JsonHelper_DatamapJson, JsonHelper_DatamapJson_$ctor, JsonHelper_DatamapJson_$reflection, JsonHelper_InvestigationJson, JsonHelper_InvestigationJson_$ctor, JsonHelper_InvestigationJson_$reflection, JsonHelper_LDGraphJson, JsonHelper_LDGraphJson_$ctor, JsonHelper_LDGraphJson_$reflection, JsonHelper_LDNodeJson, JsonHelper_LDNodeJson_$ctor, JsonHelper_LDNodeJson_$reflection, JsonHelper_OntologyAnnotationJson, JsonHelper_OntologyAnnotationJson_$ctor, JsonHelper_OntologyAnnotationJson_$reflection, JsonHelper_PersonJson, JsonHelper_PersonJson_$ctor, JsonHelper_PersonJson_$reflection, JsonHelper_RunJson, JsonHelper_RunJson_$ctor, JsonHelper_RunJson_$reflection, JsonHelper_StudyJson, JsonHelper_StudyJson_$ctor, JsonHelper_StudyJson_$reflection, JsonHelper_WorkflowJson, JsonHelper_WorkflowJson_$ctor, JsonHelper_WorkflowJson_$reflection };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataMap } from '../Core/DataMap.js';
|
|
2
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
3
|
+
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
|
+
export declare function ARCtrl_DataMap__DataMap_fromJsonString_Static_Z721C83C5(s: string): DataMap;
|
|
5
|
+
export declare function ARCtrl_DataMap__DataMap_toJsonString_Static_71136F3F(spaces?: int32): ((arg0: DataMap) => string);
|
|
6
|
+
export declare function ARCtrl_DataMap__DataMap_ToJsonString_71136F3F(this$: DataMap, spaces: Option<int32>): string;
|
|
7
|
+
//# sourceMappingURL=Datamap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Datamap.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/JsonIO/Datamap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAM7C,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAU,MAAM,uCAAuC,CAAC;AAEvE,wBAAgB,uDAAuD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAS1F;AAED,wBAAgB,oDAAoD,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,KAAK,MAAM,CAAC,CAKhH;AAED,wBAAgB,6CAA6C,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAE3G"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { fromString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
2
|
+
import { decoder, encoder } from '../Json/DataMap/DataMap.js';
|
|
3
|
+
import { toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
4
|
+
import { toString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
5
|
+
import { defaultSpaces } from '../Json/Encode.js';
|
|
6
|
+
import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
7
|
+
|
|
8
|
+
function ARCtrl_DataMap__DataMap_fromJsonString_Static_Z721C83C5(s) {
|
|
9
|
+
let arg;
|
|
10
|
+
const matchValue = fromString(decoder, s);
|
|
11
|
+
if (matchValue.tag === /* Error */
|
|
12
|
+
1) {
|
|
13
|
+
throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
|
|
14
|
+
} else {
|
|
15
|
+
return matchValue.fields[0];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function ARCtrl_DataMap__DataMap_toJsonString_Static_71136F3F(spaces) {
|
|
19
|
+
return (obj) => {
|
|
20
|
+
const value = encoder(obj);
|
|
21
|
+
return toString(defaultSpaces(spaces), value);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function ARCtrl_DataMap__DataMap_ToJsonString_71136F3F(this$, spaces) {
|
|
25
|
+
return ARCtrl_DataMap__DataMap_toJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { ARCtrl_DataMap__DataMap_ToJsonString_71136F3F, ARCtrl_DataMap__DataMap_fromJsonString_Static_Z721C83C5, ARCtrl_DataMap__DataMap_toJsonString_Static_71136F3F };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArcWorkflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Spreadsheet/ArcWorkflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAE7D,OAAO,EAAS,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAGtE,OAAO,
|
|
1
|
+
{"version":3,"file":"ArcWorkflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Spreadsheet/ArcWorkflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAE7D,OAAO,EAAS,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAGtE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMlD,OAAO,EAAE,WAAW,EAAE,MAAM,gEAAgE,CAAC;AAG7F,OAAO,EAAE,UAAU,EAAE,MAAM,+DAA+D,CAAC;AAI3F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,WAAW,CA8D3F;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAE7F;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,WAAW,GAAG,WAAW,CAM9E;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAQ7E;AAED,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAE1G;AAED,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,WAAW,CAQ9G;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAEvE;AAED,wBAAgB,+BAA+B,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,CAEpF;AAED;;GAEG;AACH,wBAAgB,8DAA8D,CAAC,GAAG,EAAE,UAAU,GAAG,WAAW,CAmB3G;AAED;;GAEG;AACH,wBAAgB,6DAA6D,CAAC,QAAQ,EAAE,WAAW,GAAG,UAAU,CAK/G;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,CAE3F"}
|
|
@@ -2,7 +2,7 @@ import { getEnumerator } from '../../node_modules/@fable-org/fable-library-js/Ut
|
|
|
2
2
|
import { fromRows as fromRows$1, toRows } from './Metadata/Workflow.js';
|
|
3
3
|
import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
4
|
import { empty, ofSeq } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
|
-
import {
|
|
5
|
+
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
6
6
|
import { fromRows, toRows as toRows$1 } from './Metadata/Contacts.js';
|
|
7
7
|
import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
|
|
8
8
|
import { SparseRowModule_tryGetValueAt, SparseRowModule_fromValues, SparseRowModule_writeToSheet, SparseRowModule_fromFsRow, SparseRowModule_getAllValues, SparseRowModule_fromAllValues } from './Metadata/SparseTable.js';
|
|
@@ -57,10 +57,10 @@ function ArcWorkflow_fromRows(rows) {
|
|
|
57
57
|
default:
|
|
58
58
|
if (workflow != null) {
|
|
59
59
|
const workflow_2 = value(workflow);
|
|
60
|
-
|
|
60
|
+
workflow_2.Contacts = Array.from(contacts);
|
|
61
61
|
return workflow_2;
|
|
62
62
|
} else {
|
|
63
|
-
return
|
|
63
|
+
return ArcWorkflow.create(createMissingIdentifier(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, Array.from(contacts));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
break;
|
|
@@ -73,7 +73,7 @@ function ArcWorkflow_fromRows(rows) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
function ArcWorkflow_toRows(workflow) {
|
|
76
|
-
return delay(() => append(singleton(SparseRowModule_fromValues(["WORKFLOW"])), delay(() => append(toRows(workflow), delay(() => append(singleton(SparseRowModule_fromValues(["WORKFLOW CONTACTS"])), delay(() => toRows$1("Workflow Person", ofSeq(
|
|
76
|
+
return delay(() => append(singleton(SparseRowModule_fromValues(["WORKFLOW"])), delay(() => append(toRows(workflow), delay(() => append(singleton(SparseRowModule_fromValues(["WORKFLOW CONTACTS"])), delay(() => toRows$1("Workflow Person", ofSeq(workflow.Contacts)))))))));
|
|
77
77
|
}
|
|
78
78
|
function ArcWorkflow_toMetadataSheet(workflow) {
|
|
79
79
|
const sheet = new FsWorksheet("isa_workflow");
|
|
@@ -116,11 +116,12 @@ function ARCtrl_ArcWorkflow__ArcWorkflow_fromFsWorkbook_Static_32154C9D(doc) {
|
|
|
116
116
|
const matchValue = ArcWorkflow_tryGetMetadataSheet(doc);
|
|
117
117
|
if (matchValue == null) {
|
|
118
118
|
toConsole(printf('Cannot retrieve metadata: Workflow file does not contain "%s" sheet.'))("isa_workflow");
|
|
119
|
-
workflowMetadata =
|
|
119
|
+
workflowMetadata = ArcWorkflow.create(createMissingIdentifier());
|
|
120
120
|
} else {
|
|
121
121
|
workflowMetadata = ArcWorkflow_fromMetadataSheet(value(matchValue));
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
const datamapSheet = tryPick(tryFromFsWorksheet, doc.GetWorksheets());
|
|
124
|
+
workflowMetadata.DataMap = datamapSheet;
|
|
124
125
|
return workflowMetadata;
|
|
125
126
|
} catch (err) {
|
|
126
127
|
const arg_1 = err.message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/Metadata/Workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,UAAU,EAAW,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAsB,MAAM,EAAS,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/Metadata/Workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,UAAU,EAAW,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAsB,MAAM,EAAS,MAAM,uCAAuC,CAAC;AAQ1F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAA6F,WAAW,EAA+E,MAAM,kBAAkB,CAAC;AACvN,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAI7D,OAAO,EAAE,WAAW,EAAc,MAAM,qCAAqC,CAAC;AAE9E,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,eAAO,MAAM,UAAU,UAAU,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MAAM,EAAE,2BAA2B,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,WAAW,CAiCtlB;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAGhE;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,WAAW,GAAG,WAAW,CAqChE;AAED,wBAAgB,QAAQ,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAGlJ;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAEjF"}
|
|
@@ -4,8 +4,8 @@ import { map } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
|
4
4
|
import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
|
|
5
5
|
import { Option_fromValueWithDefault, ResizeArray_iter } from '../../Core/Helper/Collections.js';
|
|
6
6
|
import { ProtocolParameter_fromAggregatedStrings, Component_fromAggregatedStrings, ProtocolParameter_toAggregatedStrings, Component_toAggregatedStrings } from './Conversions.js';
|
|
7
|
-
import { ArcWorkflow_make, ArcWorkflow__get_Identifier, ArcWorkflow__get_WorkflowType, ArcWorkflow__get_Parameters, ArcWorkflow__get_Components, ArcWorkflow__get_SubWorkflowIdentifiers, ArcWorkflow__get_Title, ArcWorkflow__get_Description, ArcWorkflow__get_URI, ArcWorkflow__get_Version, ArcWorkflow__get_Comments } from '../../Core/ArcTypes.js';
|
|
8
7
|
import { createMissingIdentifier, Workflow_tryIdentifierFromFileName, Workflow_fileNameFromIdentifier } from '../../Core/Helper/Identifier.js';
|
|
8
|
+
import { ArcWorkflow } from '../../Core/ArcTypes.js';
|
|
9
9
|
import { Comment_fromString, Comment_toString } from './Comment.js';
|
|
10
10
|
import { SparseTable__TryGetValueDefault_5BAE6133, SparseTable__TryGetValue_11FD62A8, SparseTable_Create_Z2192E64B, SparseTable, SparseTable_FromRows_Z5579EC29, SparseTable_ToRows_759CAFC1 } from './SparseTable.js';
|
|
11
11
|
import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
@@ -32,7 +32,6 @@ const componentsTypeTermSourceREFLabel = "Components Type Term Source REF";
|
|
|
32
32
|
const fileNameLabel = "File Name";
|
|
33
33
|
const labels = ofArray([identifierLabel, titleLabel, descriptionLabel, workflowTypeLabel, typeTermAccessionNumberLabel, typeTermSourceREFLabel, subWorkflowIdentifiersLabel, uriLabel, versionLabel, parametersNameLabel, parametersTermAccessionNumberLabel, parametersTermSourceREFLabel, componentsNameLabel, componentsTypeLabel, componentsTypeTermAccessionNumberLabel, componentsTypeTermSourceREFLabel, fileNameLabel]);
|
|
34
34
|
function fromString(identifier, title, description, workflowType, workflowTypeTermAccessionNumber, workflowTypeTermSourceREF, subworkflowIdentifiers, uri, version, parametersName, parametersTermAccessionNumber, parametersTermSourceREF, componentsName, componentsType, componentsTypeTermAccessionNumber, componentsTypeTermSourceREF, fileName, comments) {
|
|
35
|
-
let matchValue;
|
|
36
35
|
let subworkflowIdentifiers_2;
|
|
37
36
|
if (subworkflowIdentifiers == null) {
|
|
38
37
|
subworkflowIdentifiers_2 = [];
|
|
@@ -50,7 +49,18 @@ function fromString(identifier, title, description, workflowType, workflowTypeTe
|
|
|
50
49
|
let components;
|
|
51
50
|
const collection_2 = Component_fromAggregatedStrings(";", componentsName, componentsType, componentsTypeTermSourceREF, componentsTypeTermAccessionNumber);
|
|
52
51
|
components = Array.from(collection_2);
|
|
53
|
-
|
|
52
|
+
let identifier_4;
|
|
53
|
+
if (identifier == null) {
|
|
54
|
+
if (fileName == null) {
|
|
55
|
+
identifier_4 = createMissingIdentifier();
|
|
56
|
+
} else {
|
|
57
|
+
const matchValue = Workflow_tryIdentifierFromFileName(value(fileName));
|
|
58
|
+
identifier_4 = matchValue != null ? value(matchValue) : createMissingIdentifier();
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
identifier_4 = value(identifier);
|
|
62
|
+
}
|
|
63
|
+
return ArcWorkflow.make(identifier_4, title, description, workflowType_1, uri, version, subworkflowIdentifiers_2, parameters, components, void 0, [], comments);
|
|
54
64
|
}
|
|
55
65
|
function fromSparseTable(matrix) {
|
|
56
66
|
const comments = map$1((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, 0])), matrix.CommentKeys);
|
|
@@ -59,22 +69,22 @@ function fromSparseTable(matrix) {
|
|
|
59
69
|
function toSparseTable(workflow) {
|
|
60
70
|
const matrix = SparseTable_Create_Z2192E64B(void 0, labels, void 0, 2);
|
|
61
71
|
let commentKeys = empty();
|
|
62
|
-
const patternInput =
|
|
72
|
+
const patternInput = workflow.Identifier.startsWith("MISSING_IDENTIFIER_") ? ["", ""] : [workflow.Identifier, Workflow_fileNameFromIdentifier(workflow.Identifier)];
|
|
63
73
|
let wt;
|
|
64
|
-
const tt = defaultArg(
|
|
74
|
+
const tt = defaultArg(workflow.WorkflowType, new OntologyAnnotation());
|
|
65
75
|
wt = OntologyAnnotation.toStringObject(tt, true);
|
|
66
|
-
const pAgg = ProtocolParameter_toAggregatedStrings(";", ofSeq(
|
|
67
|
-
const cAgg = Component_toAggregatedStrings(";", ofSeq(
|
|
68
|
-
const subWorkflowsAgg = join(";",
|
|
76
|
+
const pAgg = ProtocolParameter_toAggregatedStrings(";", ofSeq(workflow.Parameters));
|
|
77
|
+
const cAgg = Component_toAggregatedStrings(";", ofSeq(workflow.Components));
|
|
78
|
+
const subWorkflowsAgg = join(";", workflow.SubWorkflowIdentifiers);
|
|
69
79
|
addToDict(matrix.Matrix, [identifierLabel, 1], patternInput[0]);
|
|
70
|
-
addToDict(matrix.Matrix, [titleLabel, 1], defaultArg(
|
|
71
|
-
addToDict(matrix.Matrix, [descriptionLabel, 1], defaultArg(
|
|
80
|
+
addToDict(matrix.Matrix, [titleLabel, 1], defaultArg(workflow.Title, ""));
|
|
81
|
+
addToDict(matrix.Matrix, [descriptionLabel, 1], defaultArg(workflow.Description, ""));
|
|
72
82
|
addToDict(matrix.Matrix, [workflowTypeLabel, 1], wt.TermName);
|
|
73
83
|
addToDict(matrix.Matrix, [typeTermAccessionNumberLabel, 1], wt.TermAccessionNumber);
|
|
74
84
|
addToDict(matrix.Matrix, [typeTermSourceREFLabel, 1], wt.TermSourceREF);
|
|
75
85
|
addToDict(matrix.Matrix, [subWorkflowIdentifiersLabel, 1], subWorkflowsAgg);
|
|
76
|
-
addToDict(matrix.Matrix, [uriLabel, 1], defaultArg(
|
|
77
|
-
addToDict(matrix.Matrix, [versionLabel, 1], defaultArg(
|
|
86
|
+
addToDict(matrix.Matrix, [uriLabel, 1], defaultArg(workflow.URI, ""));
|
|
87
|
+
addToDict(matrix.Matrix, [versionLabel, 1], defaultArg(workflow.Version, ""));
|
|
78
88
|
addToDict(matrix.Matrix, [parametersNameLabel, 1], pAgg.TermNameAgg);
|
|
79
89
|
addToDict(matrix.Matrix, [parametersTermAccessionNumberLabel, 1], pAgg.TermAccessionNumberAgg);
|
|
80
90
|
addToDict(matrix.Matrix, [parametersTermSourceREFLabel, 1], pAgg.TermSourceREFAgg);
|
|
@@ -88,7 +98,7 @@ function toSparseTable(workflow) {
|
|
|
88
98
|
const n = patternInput_1[0];
|
|
89
99
|
commentKeys = cons(n, commentKeys);
|
|
90
100
|
addToDict(matrix.Matrix, [n, 1], patternInput_1[1]);
|
|
91
|
-
},
|
|
101
|
+
}, workflow.Comments);
|
|
92
102
|
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
93
103
|
Equals: (x, y) => x === y,
|
|
94
104
|
GetHashCode: stringHash
|