@nfdi4plants/arctrl 3.0.0-beta.14 → 3.0.0-beta.16
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/ts/ARC.d.ts +2 -2
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +5 -5
- package/dist/ts/ts/CWL/CWLTypes.d.ts +50 -19
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +175 -39
- package/dist/ts/ts/CWL/Decode.d.ts +30 -4
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +679 -44
- package/dist/ts/ts/CWL/Encode.d.ts +13 -2
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +483 -85
- package/dist/ts/ts/CWL/ToolDescription.d.ts +8 -2
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +22 -4
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +8 -2
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +22 -4
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +6 -5
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +5 -4
- package/dist/ts/ts/Conversion/Investigation.d.ts +1 -1
- package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Investigation.js +24 -4
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +74 -10
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +17 -8
- package/dist/ts/ts/Conversion.d.ts +2 -2
- package/dist/ts/ts/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Conversion.js +7 -7
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +17 -6
- package/dist/ts/ts/Json.d.ts +0 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +1 -7
- package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
- package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/Investigation.js +2 -21
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +7 -5
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +26 -3
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts +3 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +16 -4
- package/dist/ts/ts/ROCrateIO.d.ts +7 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +76 -7
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +5 -5
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -5
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Reader.fs.js +79 -30
- package/package.json +1 -1
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Decode.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Interop/JsInterop.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Persil.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Preprocessing.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Regex.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/RegexActivePatterns.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/Writer.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.2}/YAMLiciousTypes.fs.js +0 -0
|
@@ -12,7 +12,9 @@ export declare class CWLToolDescription extends DynamicObj {
|
|
|
12
12
|
_hints: Option<Requirement_$union[]>;
|
|
13
13
|
_inputs: Option<CWLInput[]>;
|
|
14
14
|
_metadata: Option<DynamicObj>;
|
|
15
|
-
|
|
15
|
+
_label: Option<string>;
|
|
16
|
+
_doc: Option<string>;
|
|
17
|
+
constructor(outputs: CWLOutput[], cwlVersion?: string, baseCommand?: string[], requirements?: Requirement_$union[], hints?: Requirement_$union[], inputs?: CWLInput[], metadata?: DynamicObj, label?: string, doc?: string);
|
|
16
18
|
get CWLVersion(): string;
|
|
17
19
|
set CWLVersion(version: string);
|
|
18
20
|
get Outputs(): CWLOutput[];
|
|
@@ -27,7 +29,11 @@ export declare class CWLToolDescription extends DynamicObj {
|
|
|
27
29
|
set Inputs(inputs: Option<CWLInput[]>);
|
|
28
30
|
get Metadata(): DynamicObj | undefined;
|
|
29
31
|
set Metadata(metadata: Option<DynamicObj>);
|
|
32
|
+
get Label(): string | undefined;
|
|
33
|
+
set Label(label: Option<string>);
|
|
34
|
+
get Doc(): string | undefined;
|
|
35
|
+
set Doc(doc: Option<string>);
|
|
30
36
|
}
|
|
31
37
|
export declare function CWLToolDescription_$reflection(): TypeInfo;
|
|
32
|
-
export declare function CWLToolDescription_$
|
|
38
|
+
export declare function CWLToolDescription_$ctor_10F2CC7B(outputs: CWLOutput[], cwlVersion?: string, baseCommand?: string[], requirements?: Requirement_$union[], hints?: Requirement_$union[], inputs?: CWLInput[], metadata?: DynamicObj, label?: string, doc?: string): CWLToolDescription;
|
|
33
39
|
//# sourceMappingURL=ToolDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolDescription.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/ToolDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAc,MAAM,EAAU,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAA0B,UAAU,EAAE,MAAM,oDAAoD,CAAC;AACxG,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,qBAAa,kBAAmB,SAAQ,UAAU;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC5B,SAAS,EAA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B,EAAE,EAAE,KAAK,CAAC,EAAE,kBAAkB,EAAE,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAEpR"}
|
|
@@ -3,7 +3,7 @@ import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.
|
|
|
3
3
|
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
4
4
|
|
|
5
5
|
class CWLToolDescription extends DynamicObj {
|
|
6
|
-
constructor(outputs, cwlVersion, baseCommand, requirements, hints, inputs, metadata) {
|
|
6
|
+
constructor(outputs, cwlVersion, baseCommand, requirements, hints, inputs, metadata, label, doc) {
|
|
7
7
|
super();
|
|
8
8
|
this._cwlVersion = defaultArg(cwlVersion, "v1.2");
|
|
9
9
|
this._outputs = outputs;
|
|
@@ -12,6 +12,8 @@ class CWLToolDescription extends DynamicObj {
|
|
|
12
12
|
this._hints = hints;
|
|
13
13
|
this._inputs = inputs;
|
|
14
14
|
this._metadata = metadata;
|
|
15
|
+
this._label = label;
|
|
16
|
+
this._doc = doc;
|
|
15
17
|
}
|
|
16
18
|
get CWLVersion() {
|
|
17
19
|
const this$ = this;
|
|
@@ -69,12 +71,28 @@ class CWLToolDescription extends DynamicObj {
|
|
|
69
71
|
const this$ = this;
|
|
70
72
|
this$._metadata = metadata;
|
|
71
73
|
}
|
|
74
|
+
get Label() {
|
|
75
|
+
const this$ = this;
|
|
76
|
+
return unwrap(this$._label);
|
|
77
|
+
}
|
|
78
|
+
set Label(label) {
|
|
79
|
+
const this$ = this;
|
|
80
|
+
this$._label = label;
|
|
81
|
+
}
|
|
82
|
+
get Doc() {
|
|
83
|
+
const this$ = this;
|
|
84
|
+
return unwrap(this$._doc);
|
|
85
|
+
}
|
|
86
|
+
set Doc(doc) {
|
|
87
|
+
const this$ = this;
|
|
88
|
+
this$._doc = doc;
|
|
89
|
+
}
|
|
72
90
|
}
|
|
73
91
|
function CWLToolDescription_$reflection() {
|
|
74
92
|
return class_type("ARCtrl.CWL.CWLToolDescription", void 0, CWLToolDescription, DynamicObj_$reflection());
|
|
75
93
|
}
|
|
76
|
-
function CWLToolDescription_$
|
|
77
|
-
return new CWLToolDescription(outputs, cwlVersion, baseCommand, requirements, hints, inputs, metadata);
|
|
94
|
+
function CWLToolDescription_$ctor_10F2CC7B(outputs, cwlVersion, baseCommand, requirements, hints, inputs, metadata, label, doc) {
|
|
95
|
+
return new CWLToolDescription(outputs, cwlVersion, baseCommand, requirements, hints, inputs, metadata, label, doc);
|
|
78
96
|
}
|
|
79
97
|
|
|
80
|
-
export { CWLToolDescription, CWLToolDescription_$
|
|
98
|
+
export { CWLToolDescription, CWLToolDescription_$ctor_10F2CC7B, CWLToolDescription_$reflection };
|
|
@@ -13,7 +13,9 @@ export declare class CWLWorkflowDescription extends DynamicObj {
|
|
|
13
13
|
_requirements: Option<Requirement_$union[]>;
|
|
14
14
|
_hints: Option<Requirement_$union[]>;
|
|
15
15
|
_metadata: Option<DynamicObj>;
|
|
16
|
-
|
|
16
|
+
_label: Option<string>;
|
|
17
|
+
_doc: Option<string>;
|
|
18
|
+
constructor(steps: WorkflowStep[], inputs: CWLInput[], outputs: CWLOutput[], cwlVersion?: string, requirements?: Requirement_$union[], hints?: Requirement_$union[], metadata?: DynamicObj, label?: string, doc?: string);
|
|
17
19
|
get CWLVersion(): string;
|
|
18
20
|
set CWLVersion(version: string);
|
|
19
21
|
get Steps(): WorkflowStep[];
|
|
@@ -28,7 +30,11 @@ export declare class CWLWorkflowDescription extends DynamicObj {
|
|
|
28
30
|
set Hints(hints: Option<Requirement_$union[]>);
|
|
29
31
|
get Metadata(): DynamicObj | undefined;
|
|
30
32
|
set Metadata(metadata: Option<DynamicObj>);
|
|
33
|
+
get Label(): string | undefined;
|
|
34
|
+
set Label(label: Option<string>);
|
|
35
|
+
get Doc(): string | undefined;
|
|
36
|
+
set Doc(doc: Option<string>);
|
|
31
37
|
}
|
|
32
38
|
export declare function CWLWorkflowDescription_$reflection(): TypeInfo;
|
|
33
|
-
export declare function CWLWorkflowDescription_$
|
|
39
|
+
export declare function CWLWorkflowDescription_$ctor_ZE122AFA(steps: WorkflowStep[], inputs: CWLInput[], outputs: CWLOutput[], cwlVersion?: string, requirements?: Requirement_$union[], hints?: Requirement_$union[], metadata?: DynamicObj, label?: string, doc?: string): CWLWorkflowDescription;
|
|
34
40
|
//# sourceMappingURL=WorkflowDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowDescription.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/WorkflowDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAc,MAAM,EAAU,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAA0B,UAAU,EAAE,MAAM,oDAAoD,CAAC;AACxG,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,qBAAa,sBAAuB,SAAQ,UAAU;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkflowDescription.d.ts","sourceRoot":"","sources":["../../../../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EAAE,MAAM,GAAG,sBAAsB,CAE1R"}
|
|
@@ -3,7 +3,7 @@ import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.
|
|
|
3
3
|
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
4
4
|
|
|
5
5
|
class CWLWorkflowDescription extends DynamicObj {
|
|
6
|
-
constructor(steps, inputs, outputs, cwlVersion, requirements, hints, metadata) {
|
|
6
|
+
constructor(steps, inputs, outputs, cwlVersion, requirements, hints, metadata, label, doc) {
|
|
7
7
|
super();
|
|
8
8
|
this._cwlVersion = defaultArg(cwlVersion, "v1.2");
|
|
9
9
|
this._steps = steps;
|
|
@@ -12,6 +12,8 @@ class CWLWorkflowDescription extends DynamicObj {
|
|
|
12
12
|
this._requirements = requirements;
|
|
13
13
|
this._hints = hints;
|
|
14
14
|
this._metadata = metadata;
|
|
15
|
+
this._label = label;
|
|
16
|
+
this._doc = doc;
|
|
15
17
|
}
|
|
16
18
|
get CWLVersion() {
|
|
17
19
|
const this$ = this;
|
|
@@ -69,12 +71,28 @@ class CWLWorkflowDescription extends DynamicObj {
|
|
|
69
71
|
const this$ = this;
|
|
70
72
|
this$._metadata = metadata;
|
|
71
73
|
}
|
|
74
|
+
get Label() {
|
|
75
|
+
const this$ = this;
|
|
76
|
+
return unwrap(this$._label);
|
|
77
|
+
}
|
|
78
|
+
set Label(label) {
|
|
79
|
+
const this$ = this;
|
|
80
|
+
this$._label = label;
|
|
81
|
+
}
|
|
82
|
+
get Doc() {
|
|
83
|
+
const this$ = this;
|
|
84
|
+
return unwrap(this$._doc);
|
|
85
|
+
}
|
|
86
|
+
set Doc(doc) {
|
|
87
|
+
const this$ = this;
|
|
88
|
+
this$._doc = doc;
|
|
89
|
+
}
|
|
72
90
|
}
|
|
73
91
|
function CWLWorkflowDescription_$reflection() {
|
|
74
92
|
return class_type("ARCtrl.CWL.CWLWorkflowDescription", void 0, CWLWorkflowDescription, DynamicObj_$reflection());
|
|
75
93
|
}
|
|
76
|
-
function CWLWorkflowDescription_$
|
|
77
|
-
return new CWLWorkflowDescription(steps, inputs, outputs, cwlVersion, requirements, hints, metadata);
|
|
94
|
+
function CWLWorkflowDescription_$ctor_ZE122AFA(steps, inputs, outputs, cwlVersion, requirements, hints, metadata, label, doc) {
|
|
95
|
+
return new CWLWorkflowDescription(steps, inputs, outputs, cwlVersion, requirements, hints, metadata, label, doc);
|
|
78
96
|
}
|
|
79
97
|
|
|
80
|
-
export { CWLWorkflowDescription, CWLWorkflowDescription_$
|
|
98
|
+
export { CWLWorkflowDescription, CWLWorkflowDescription_$ctor_ZE122AFA, CWLWorkflowDescription_$reflection };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { Record } from '@fable-org/fable-library-js/Types.js';
|
|
2
2
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import {
|
|
3
|
+
import { IEquatable } from '@fable-org/fable-library-js/Util.js';
|
|
4
4
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
5
5
|
import { Requirement_$union } from './Requirements.js';
|
|
6
6
|
import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
7
|
-
export declare class StepInput extends Record implements IEquatable<StepInput
|
|
7
|
+
export declare class StepInput extends Record implements IEquatable<StepInput> {
|
|
8
8
|
readonly Id: string;
|
|
9
|
-
readonly Source: Option<string>;
|
|
9
|
+
readonly Source: Option<string[]>;
|
|
10
10
|
readonly DefaultValue: Option<string>;
|
|
11
11
|
readonly ValueFrom: Option<string>;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
readonly LinkMerge: Option<string>;
|
|
13
|
+
constructor(Id: string, Source: Option<string[]>, DefaultValue: Option<string>, ValueFrom: Option<string>, LinkMerge: Option<string>);
|
|
14
|
+
static create(id: string, source?: string[], defaultValue?: string, valueFrom?: string, linkMerge?: string): StepInput;
|
|
14
15
|
}
|
|
15
16
|
export declare function StepInput_$reflection(): TypeInfo;
|
|
16
17
|
export declare class StepOutput extends Record implements IEquatable<StepOutput> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowSteps.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/WorkflowSteps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAU,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"WorkflowSteps.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/WorkflowSteps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAU,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAiE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACpI,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAA0B,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAExG,qBAAa,SAAU,SAAQ,MAAO,YAAW,UAAU,CAAC,SAAS,CAAC;IAClE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;gBACvB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,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I,EAAE,UAAU,EAGvB;IACD,IAAI,GAAG,IAAI,MAAM,CAGhB;IACD,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,EAGlB;IACD,IAAI,YAAY,IAAI,kBAAkB,EAAE,GAAG,SAAS,CAGnD;IACD,IAAI,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,EAG1D;IACD,IAAI,KAAK,IAAI,kBAAkB,EAAE,GAAG,SAAS,CAG5C;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,EAG5C;CACJ;AAED,wBAAgB,wBAAwB,IAAI,QAAQ,CAEnD;AAED,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,kBAAkB,EAAE,EAAE,KAAK,CAAC,EAAE,kBAAkB,EAAE,GAAG,YAAY,CAExL"}
|
|
@@ -4,19 +4,20 @@ import { record_type, string_type, option_type, array_type, class_type } from '.
|
|
|
4
4
|
import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
5
5
|
|
|
6
6
|
class StepInput extends Record {
|
|
7
|
-
constructor(Id, Source, DefaultValue, ValueFrom) {
|
|
7
|
+
constructor(Id, Source, DefaultValue, ValueFrom, LinkMerge) {
|
|
8
8
|
super();
|
|
9
9
|
this.Id = Id;
|
|
10
10
|
this.Source = Source;
|
|
11
11
|
this.DefaultValue = DefaultValue;
|
|
12
12
|
this.ValueFrom = ValueFrom;
|
|
13
|
+
this.LinkMerge = LinkMerge;
|
|
13
14
|
}
|
|
14
|
-
static create(id, source, defaultValue, valueFrom) {
|
|
15
|
-
return new StepInput(id, source, defaultValue, valueFrom);
|
|
15
|
+
static create(id, source, defaultValue, valueFrom, linkMerge) {
|
|
16
|
+
return new StepInput(id, source, defaultValue, valueFrom, linkMerge);
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
function StepInput_$reflection() {
|
|
19
|
-
return record_type("ARCtrl.CWL.StepInput", [], StepInput, () => [["Id", string_type], ["Source", option_type(string_type)], ["DefaultValue", option_type(string_type)], ["ValueFrom", option_type(string_type)]]);
|
|
20
|
+
return record_type("ARCtrl.CWL.StepInput", [], StepInput, () => [["Id", string_type], ["Source", option_type(array_type(string_type))], ["DefaultValue", option_type(string_type)], ["ValueFrom", option_type(string_type)], ["LinkMerge", option_type(string_type)]]);
|
|
20
21
|
}
|
|
21
22
|
class StepOutput extends Record {
|
|
22
23
|
constructor(Id) {
|
|
@@ -7,6 +7,6 @@ export declare class InvestigationConversion {
|
|
|
7
7
|
constructor();
|
|
8
8
|
}
|
|
9
9
|
export declare function InvestigationConversion_$reflection(): TypeInfo;
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function InvestigationConversion_composeInvestigation_Z284BC0AC(investigation: ArcInvestigation, fs?: FileSystem, ignoreBrokenWR?: boolean): LDNode;
|
|
11
11
|
export declare function InvestigationConversion_decomposeInvestigation_Z6839B9E8(investigation: LDNode, graph?: LDGraph, context?: LDContext): ArcInvestigation;
|
|
12
12
|
//# sourceMappingURL=Investigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Investigation.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Investigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAOjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOzD,OAAO,EAAE,gBAAgB,EAA2C,MAAM,qBAAqB,CAAC;AAKhG,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,uBAAuB;;CAGnC;AAED,wBAAgB,mCAAmC,IAAI,QAAQ,CAE9D;AAED,wBAAgB,
|
|
1
|
+
{"version":3,"file":"Investigation.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Investigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAOjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOzD,OAAO,EAAE,gBAAgB,EAA2C,MAAM,qBAAqB,CAAC;AAKhG,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,uBAAuB;;CAGnC;AAED,wBAAgB,mCAAmC,IAAI,QAAQ,CAE9D;AAED,wBAAgB,sDAAsD,CAAC,aAAa,EAAE,gBAAgB,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CA0CzJ;AAED,wBAAgB,wDAAwD,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,gBAAgB,CAetJ"}
|
|
@@ -2,7 +2,7 @@ import { class_type } from '../../node_modules/@fable-org/fable-library-js/Refle
|
|
|
2
2
|
import { value, bind, defaultArg, unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { tryFromString, toString } from './DateTime.js';
|
|
4
4
|
import { now } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
5
|
-
import { Option_fromSeq, ResizeArray_map, ResizeArray_filter } from '../Core/Helper/Collections.js';
|
|
5
|
+
import { Option_fromSeq, ResizeArray_map, ResizeArray_choose, ResizeArray_filter } from '../Core/Helper/Collections.js';
|
|
6
6
|
import { ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8 } from './ScholarlyArticle.js';
|
|
7
7
|
import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
|
|
8
8
|
import { BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
|
|
@@ -21,7 +21,7 @@ class InvestigationConversion {
|
|
|
21
21
|
function InvestigationConversion_$reflection() {
|
|
22
22
|
return class_type("ARCtrl.Conversion.InvestigationConversion", void 0, InvestigationConversion);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function InvestigationConversion_composeInvestigation_Z284BC0AC(investigation, fs, ignoreBrokenWR) {
|
|
25
25
|
let collection;
|
|
26
26
|
let name;
|
|
27
27
|
const matchValue = investigation.Title;
|
|
@@ -35,7 +35,27 @@ function InvestigationConversion_composeInvestigation_5AEC717D(investigation, fs
|
|
|
35
35
|
const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, investigation.Publications));
|
|
36
36
|
const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, investigation.Contacts));
|
|
37
37
|
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, investigation.Comments));
|
|
38
|
-
const hasParts = Option_fromSeq((collection = toList(delay(() => append(ResizeArray_map((a_3) => AssayConversion_composeAssay_Z5C53FD5C(a_3, unwrap(fs)), investigation.Assays), delay(() => append(ResizeArray_map((s_2) => StudyConversion_composeStudy_ZFE0E38E(s_2, unwrap(fs)), investigation.Studies), delay(() => append(
|
|
38
|
+
const hasParts = Option_fromSeq((collection = toList(delay(() => append(ResizeArray_map((a_3) => AssayConversion_composeAssay_Z5C53FD5C(a_3, unwrap(fs)), investigation.Assays), delay(() => append(ResizeArray_map((s_2) => StudyConversion_composeStudy_ZFE0E38E(s_2, unwrap(fs)), investigation.Studies), delay(() => append(ResizeArray_choose((w) => {
|
|
39
|
+
try {
|
|
40
|
+
return WorkflowConversion_composeWorkflow_42450E6E(w, unwrap(fs));
|
|
41
|
+
} catch (matchValue_1) {
|
|
42
|
+
if (ignoreBrokenWR != null && value(ignoreBrokenWR)) {
|
|
43
|
+
return void 0;
|
|
44
|
+
} else {
|
|
45
|
+
throw matchValue_1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, investigation.Workflows), delay(() => ResizeArray_choose((r) => {
|
|
49
|
+
try {
|
|
50
|
+
return RunConversion_composeRun_Z8CC08AC(r, unwrap(fs));
|
|
51
|
+
} catch (matchValue_2) {
|
|
52
|
+
if (ignoreBrokenWR != null && value(ignoreBrokenWR)) {
|
|
53
|
+
return void 0;
|
|
54
|
+
} else {
|
|
55
|
+
throw matchValue_2;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}, investigation.Runs))))))))), Array.from(collection)));
|
|
39
59
|
const mentions = Option_fromSeq([]);
|
|
40
60
|
return LDDataset.createInvestigation(investigation.Identifier, name, void 0, unwrap(creators), unwrap(dateCreated), datePublished, void 0, unwrap(investigation.Description), unwrap(hasParts), unwrap(publications), unwrap(comments), unwrap(mentions));
|
|
41
61
|
}
|
|
@@ -56,4 +76,4 @@ function InvestigationConversion_decomposeInvestigation_Z6839B9E8(investigation,
|
|
|
56
76
|
return ArcInvestigation.create(LDDataset.getIdentifierAsString(investigation, unwrap(context)), unwrap(title), unwrap(LDDataset.tryGetDescriptionAsString(investigation, unwrap(context))), unwrap(dateCreated), unwrap(datePublished), void 0, publications, creators, assays, studies, workflows, runs, void 0, comments);
|
|
57
77
|
}
|
|
58
78
|
|
|
59
|
-
export { InvestigationConversion, InvestigationConversion_$reflection,
|
|
79
|
+
export { InvestigationConversion, InvestigationConversion_$reflection, InvestigationConversion_composeInvestigation_Z284BC0AC, InvestigationConversion_decomposeInvestigation_Z6839B9E8 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Run.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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BAAgB,uDAAuD,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,CAAC,CAK9M;AAED,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CA8BtF;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAoC9G"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { writeYaml, encodeCWLType } from '../CWL/Encode.js';
|
|
3
|
+
import { CWLType_file } from '../CWL/CWLTypes.js';
|
|
4
|
+
import { exists, tryPick, find } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
5
|
import { replace, trimStart, join, toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
6
|
import { combineMany, combine } from '../FileSystem/Path.js';
|
|
4
7
|
import { value, defaultArg, bind, unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
-
import { CWLType_file } from '../CWL/CWLTypes.js';
|
|
6
8
|
import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
|
-
import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
8
9
|
import { LDFile } from '../ROCrate/LDTypes/File.js';
|
|
9
10
|
import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
|
|
10
11
|
import { ResizeArray_singleton, ResizeArray_map, ResizeArray_zip, ResizeArray_appendSingleton, Option_fromSeq, Option_fromValueWithDefault, ResizeArray_filter } from '../Core/Helper/Collections.js';
|
|
@@ -12,7 +13,6 @@ import { CWLParameterReference } from '../CWL/ParameterReference.js';
|
|
|
12
13
|
import { LDFormalParameter } from '../ROCrate/LDTypes/FormalParameter.js';
|
|
13
14
|
import { Run_cwlFileNameFromIdentifier } from '../Core/Helper/Identifier.js';
|
|
14
15
|
import { WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7, WorkflowConversion_getInputParametersFromProcessingUnit_30922B92, WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_2664C4B8 } from './Workflow.js';
|
|
15
|
-
import { tryPick, find, exists } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
16
16
|
import { LDComputationalWorkflow } from '../ROCrate/LDTypes/ComputationalWorkflow.js';
|
|
17
17
|
import { ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586 } from './Table.js';
|
|
18
18
|
import { ArcTables } from '../Core/Table/ArcTables.js';
|
|
@@ -22,10 +22,13 @@ import { LDLabProcess } from '../ROCrate/LDTypes/LabProcess.js';
|
|
|
22
22
|
import { ArcRun } from '../Core/ArcTypes.js';
|
|
23
23
|
import { BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
|
|
24
24
|
import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
|
|
25
|
+
import { LDOrganization } from '../ROCrate/LDTypes/Organization.js';
|
|
26
|
+
import { utcNow } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
25
27
|
import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
|
|
26
28
|
import { Datamap } from '../Core/Datamap.js';
|
|
27
29
|
import { AssayConversion_getDataFilesFromProcesses_6BABD1B0 } from './Assay.js';
|
|
28
30
|
import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
|
|
31
|
+
import { LDWorkflowProtocol } from '../ROCrate/LDTypes/WorkflowProtocol.js';
|
|
29
32
|
|
|
30
33
|
class RunConversion {
|
|
31
34
|
constructor() {
|
|
@@ -34,6 +37,29 @@ class RunConversion {
|
|
|
34
37
|
function RunConversion_$reflection() {
|
|
35
38
|
return class_type("ARCtrl.Conversion.RunConversion", void 0, RunConversion);
|
|
36
39
|
}
|
|
40
|
+
function RunConversion_formatCWLType_Z5C31A0F9(type_) {
|
|
41
|
+
const s = writeYaml(encodeCWLType(type_));
|
|
42
|
+
return s.trim();
|
|
43
|
+
}
|
|
44
|
+
function RunConversion_isArrayType_Z5C31A0F9(type_) {
|
|
45
|
+
switch (type_.tag) {
|
|
46
|
+
case /* Array */
|
|
47
|
+
11:
|
|
48
|
+
return true;
|
|
49
|
+
case /* Union */
|
|
50
|
+
14:
|
|
51
|
+
return exists((_arg) => {
|
|
52
|
+
if (_arg.tag === /* Array */
|
|
53
|
+
11) {
|
|
54
|
+
return true;
|
|
55
|
+
} else {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}, type_.fields[0]);
|
|
59
|
+
default:
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
37
63
|
function RunConversion_composeCWLInputFilePath_Z384F8060(path, runName) {
|
|
38
64
|
if (path.startsWith("../..")) {
|
|
39
65
|
return replace(replace(path, "../../", ""), "../..", "");
|
|
@@ -56,7 +82,7 @@ function RunConversion_composeCWLInputValue_70DD9184(inputValue, exampleOfWork,
|
|
|
56
82
|
const type_ = value(inputParam.Type_);
|
|
57
83
|
if (inputValue.Type != null) {
|
|
58
84
|
if (!equals(value(inputValue.Type), type_)) {
|
|
59
|
-
throw new Error(`Type (${
|
|
85
|
+
throw new Error(`Type (${RunConversion_formatCWLType_Z5C31A0F9(value(inputValue.Type))}) of yml input value "${inputValue.Key}" does not match type of workflow input parameter (${RunConversion_formatCWLType_Z5C31A0F9(type_)}).`);
|
|
60
86
|
}
|
|
61
87
|
}
|
|
62
88
|
let matchResult;
|
|
@@ -64,12 +90,12 @@ function RunConversion_composeCWLInputValue_70DD9184(inputValue, exampleOfWork,
|
|
|
64
90
|
0) {
|
|
65
91
|
if (inputValue.Values.length === 1) {
|
|
66
92
|
matchResult = 0;
|
|
67
|
-
} else if (
|
|
93
|
+
} else if (RunConversion_isArrayType_Z5C31A0F9(type_)) {
|
|
68
94
|
matchResult = 1;
|
|
69
95
|
} else {
|
|
70
96
|
matchResult = 2;
|
|
71
97
|
}
|
|
72
|
-
} else if (
|
|
98
|
+
} else if (RunConversion_isArrayType_Z5C31A0F9(type_)) {
|
|
73
99
|
matchResult = 1;
|
|
74
100
|
} else {
|
|
75
101
|
matchResult = 2;
|
|
@@ -128,7 +154,7 @@ function RunConversion_composeWorkflowInvocationFromArcRun_Z8CC08AC(run, fs) {
|
|
|
128
154
|
}
|
|
129
155
|
}, run.CWLInput);
|
|
130
156
|
if (paramRef == null) {
|
|
131
|
-
throw new Error(`Could not create workflow invocation for run "${run.Identifier}": Workflow parameter "name" had no assigned value.`);
|
|
157
|
+
throw new Error(`Could not create workflow invocation for run "${run.Identifier}": Workflow parameter "${name}" had no assigned value.`);
|
|
132
158
|
} else {
|
|
133
159
|
return RunConversion_composeCWLInputValue_70DD9184(value(paramRef), ldI, tupledArg[0], run.Identifier);
|
|
134
160
|
}
|
|
@@ -161,20 +187,58 @@ function RunConversion_decomposeMainWorkflowInvocation_Z1346FE9D(workflowInvocat
|
|
|
161
187
|
}
|
|
162
188
|
function RunConversion_composeRun_Z8CC08AC(run, fs) {
|
|
163
189
|
let fds_1, vm_1, fds, vm;
|
|
190
|
+
let workflowProtocol;
|
|
191
|
+
const workflowFilePath = Run_cwlFileNameFromIdentifier(run.Identifier);
|
|
192
|
+
const matchValue = run.CWLDescription;
|
|
193
|
+
if (matchValue == null) {
|
|
194
|
+
const arg = run.Identifier;
|
|
195
|
+
workflowProtocol = toFail(printf("Run %s must have a CWL description"))(arg);
|
|
196
|
+
} else {
|
|
197
|
+
workflowProtocol = WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(workflowFilePath, value(matchValue), void 0, run.Identifier);
|
|
198
|
+
}
|
|
164
199
|
const workflowInvocations = Option_fromSeq(RunConversion_composeWorkflowInvocationFromArcRun_Z8CC08AC(run, unwrap(fs)));
|
|
165
200
|
const measurementMethod = map(BaseTypes_composeDefinedTerm_ZDED3A0F, run.TechnologyType);
|
|
166
201
|
const measurementTechnique = map(BaseTypes_composeDefinedTerm_ZDED3A0F, run.TechnologyPlatform);
|
|
167
202
|
const variableMeasured = map(BaseTypes_composePropertyValueFromOA_ZDED3A0F, run.MeasurementType);
|
|
168
203
|
const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, run.Performers));
|
|
204
|
+
const publisher = LDOrganization.create("DataPLANT");
|
|
205
|
+
const dateCreated = utcNow();
|
|
206
|
+
if (creators != null) {
|
|
207
|
+
LDComputationalWorkflow.setCreators(workflowProtocol, value(creators));
|
|
208
|
+
}
|
|
209
|
+
LDComputationalWorkflow.setSdPublisher(workflowProtocol, publisher);
|
|
210
|
+
LDComputationalWorkflow.setDateCreatedAsDateTime(workflowProtocol, dateCreated);
|
|
169
211
|
const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z892BFC3, run.Datamap);
|
|
170
212
|
const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), workflowInvocations);
|
|
213
|
+
const hasParts = dataFiles == null ? ResizeArray_singleton(workflowProtocol) : ResizeArray_appendSingleton(workflowProtocol, value(dataFiles));
|
|
171
214
|
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));
|
|
172
215
|
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, run.Comments));
|
|
173
|
-
return LDDataset.createARCRun(run.Identifier, void 0, unwrap(run.Title), unwrap(run.Description), unwrap(creators), unwrap(
|
|
216
|
+
return LDDataset.createARCRun(run.Identifier, ResizeArray_singleton(workflowProtocol), void 0, unwrap(run.Title), unwrap(run.Description), unwrap(creators), unwrap(hasParts), unwrap(measurementMethod), unwrap(measurementTechnique), unwrap(variableMeasureds), unwrap(workflowInvocations), unwrap(workflowInvocations), unwrap(comments));
|
|
174
217
|
}
|
|
175
218
|
function RunConversion_decomposeRun_Z6839B9E8(run, graph, context) {
|
|
176
|
-
const
|
|
177
|
-
const
|
|
219
|
+
const workflowProtocol = LDDataset.tryGetMainEntityAsWorkflowProtocol(run, unwrap(graph), unwrap(context));
|
|
220
|
+
const mainWorkflowInvocation = find((wi) => {
|
|
221
|
+
let lp;
|
|
222
|
+
const matchValue = LDLabProcess.tryGetExecutesLabProtocol(wi, unwrap(graph), unwrap(context));
|
|
223
|
+
let matchResult, lp_1;
|
|
224
|
+
if (matchValue != null) {
|
|
225
|
+
if (lp = value(matchValue), LDWorkflowProtocol.validate(lp, unwrap(context))) {
|
|
226
|
+
matchResult = 0;
|
|
227
|
+
lp_1 = value(matchValue);
|
|
228
|
+
} else {
|
|
229
|
+
matchResult = 1;
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
matchResult = 1;
|
|
233
|
+
}
|
|
234
|
+
switch (matchResult) {
|
|
235
|
+
case 0:
|
|
236
|
+
return true;
|
|
237
|
+
default:
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
}, LDDataset.getAboutsAsWorkflowInvocation(run, unwrap(graph), unwrap(context)));
|
|
241
|
+
const patternInput = workflowProtocol == null ? RunConversion_decomposeMainWorkflowInvocation_Z1346FE9D(mainWorkflowInvocation, LDDataset.getIdentifierAsString(run, unwrap(context)), unwrap(context), unwrap(graph)) : [WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_2664C4B8(value(workflowProtocol), unwrap(context), unwrap(graph)), ResizeArray_map((iv) => RunConversion_decomposeCWLInputValue_Z1346FE9D(iv, LDDataset.getIdentifierAsString(run, unwrap(context)), unwrap(context), unwrap(graph)), LDLabProcess.getObjects(mainWorkflowInvocation, unwrap(graph), unwrap(context)))];
|
|
178
242
|
const measurementMethod = map((m) => BaseTypes_decomposeDefinedTerm_Z2F770004(m, unwrap(context)), LDDataset.tryGetMeasurementMethodAsDefinedTerm(run, unwrap(graph), unwrap(context)));
|
|
179
243
|
const measurementTechnique = map((m_1) => BaseTypes_decomposeDefinedTerm_Z2F770004(m_1, unwrap(context)), LDDataset.tryGetMeasurementTechniqueAsDefinedTerm(run, unwrap(graph), unwrap(context)));
|
|
180
244
|
const variableMeasured = map((v) => BaseTypes_decomposePropertyValueToOA_Z2F770004(v, unwrap(context)), LDDataset.tryGetVariableMeasuredAsMeasurementType(run, unwrap(graph), unwrap(context)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,OAAO,EAAiC,MAAM,EAAoB,MAAM,uCAAuC,CAAC;AAChH,OAAO,EAAW,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAgC,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAiC,SAAS,EAAE,aAAa,EAAE,MAAM,mB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EAAqE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,wBAAwB,CAOtK;AAED,wBAAgB,2CAA2C,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAqC1G;AAED,wBAAgB,8CAA8C,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAalI"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
2
|
import { writeYaml, encodeCWLType } from '../CWL/Encode.js';
|
|
3
|
-
import { object } from '../fable_modules/YAMLicious.0.0.
|
|
3
|
+
import { object } from '../fable_modules/YAMLicious.1.0.0-alpha.2/Decode.fs.js';
|
|
4
4
|
import { Decode_cwlTypeStringMatcher } from '../CWL/Decode.js';
|
|
5
|
-
import { YAMLElement_Comment } from '../fable_modules/YAMLicious.0.0.
|
|
5
|
+
import { YAMLElement_Comment } from '../fable_modules/YAMLicious.1.0.0-alpha.2/YAMLiciousTypes.fs.js';
|
|
6
6
|
import { value, defaultArg, unwrap, bind, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
7
7
|
import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
|
|
8
8
|
import { LDFormalParameter } from '../ROCrate/LDTypes/FormalParameter.js';
|
|
@@ -13,7 +13,7 @@ import { int32ToString } from '../../node_modules/@fable-org/fable-library-js/Ut
|
|
|
13
13
|
import { Component_create_Z2F0B38C7 } from '../Core/Process/Component.js';
|
|
14
14
|
import { BaseTypes_decomposePropertyValue_Z2F770004, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
|
|
15
15
|
import { CWLWorkflowDescription } from '../CWL/WorkflowDescription.js';
|
|
16
|
-
import { ResizeArray_map, ResizeArray_singleton, ResizeArray_choose,
|
|
16
|
+
import { ResizeArray_map, ResizeArray_singleton, Option_fromSeq, ResizeArray_choose, ResizeArray_appendSingleton, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
|
|
17
17
|
import { CWLToolDescription } from '../CWL/ToolDescription.js';
|
|
18
18
|
import { CWLProcessingUnit_Workflow, CWLProcessingUnit_CommandLineTool } from '../CWL/CWLProcessingUnit.js';
|
|
19
19
|
import { LDWorkflowProtocol } from '../ROCrate/LDTypes/WorkflowProtocol.js';
|
|
@@ -23,10 +23,12 @@ import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
|
|
|
23
23
|
import { WorkflowStep, StepOutput } from '../CWL/WorkflowSteps.js';
|
|
24
24
|
import { Workflow_cwlFileNameFromIdentifier } from '../Core/Helper/Identifier.js';
|
|
25
25
|
import { toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
26
|
+
import { LDOrganization } from '../ROCrate/LDTypes/Organization.js';
|
|
27
|
+
import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
|
|
28
|
+
import { utcNow } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
26
29
|
import { LDLabProtocol } from '../ROCrate/LDTypes/LabProtocol.js';
|
|
27
30
|
import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
|
|
28
31
|
import { Datamap } from '../Core/Datamap.js';
|
|
29
|
-
import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
|
|
30
32
|
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
31
33
|
|
|
32
34
|
class WorkflowConversion {
|
|
@@ -214,7 +216,7 @@ function WorkflowConversion_get_workflowDescriptionTypeName() {
|
|
|
214
216
|
function WorkflowConversion_composeWorkflowProtocolFromToolDescription_7B8357DA(filePath, workflow, workflowName, runName) {
|
|
215
217
|
const inputs = map((a) => ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), a), workflow.Inputs);
|
|
216
218
|
const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), workflow.Outputs);
|
|
217
|
-
return LDWorkflowProtocol.create(filePath, unwrap(inputs), outputs, void 0, void 0, void 0,
|
|
219
|
+
return LDWorkflowProtocol.create(filePath, unwrap(inputs), outputs, void 0, void 0, void 0, filePath, ResizeArray_singleton(LDComputerLanguage.createCWL()), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, [WorkflowConversion_get_toolDescriptionTypeName()]);
|
|
218
220
|
}
|
|
219
221
|
function WorkflowConversion_decomposeWorkflowProtocolToToolDescription_2664C4B8(protocol, context, graph) {
|
|
220
222
|
const inputs = ResizeArray_map((i) => WorkflowConversion_decomposeInputFromFormalParameter_2664C4B8(i, unwrap(context), unwrap(graph)), LDComputationalWorkflow.getInputsAsFormalParameters(protocol, unwrap(graph), unwrap(context)));
|
|
@@ -230,7 +232,7 @@ function WorkflowConversion_composeWorkflowProtocolFromWorkflow_Z6FBB852F(filePa
|
|
|
230
232
|
const inputs = ResizeArray_map((i) => WorkflowConversion_composeFormalParameterFromInput_Z7A02DED7(i, unwrap(workflowName), unwrap(runName)), workflow.Inputs);
|
|
231
233
|
const outputs = ResizeArray_map((o) => WorkflowConversion_composeFormalParameterFromOutput_Z25C7EC80(o, unwrap(workflowName), unwrap(runName)), workflow.Outputs);
|
|
232
234
|
const steps = ResizeArray_map((s) => WorkflowConversion_composeWorkflowStep_Z35AB9E5D(s, filePath), workflow.Steps);
|
|
233
|
-
return LDWorkflowProtocol.create(filePath, inputs, outputs, void 0, void 0, void 0,
|
|
235
|
+
return LDWorkflowProtocol.create(filePath, inputs, outputs, void 0, void 0, void 0, filePath, ResizeArray_singleton(LDComputerLanguage.createCWL()), void 0, void 0, void 0, void 0, steps, void 0, void 0, void 0, [WorkflowConversion_get_workflowDescriptionTypeName()]);
|
|
234
236
|
}
|
|
235
237
|
function WorkflowConversion_decomposeWorkflowStep_2664C4B8(step, context, graph) {
|
|
236
238
|
const name = LDComputationalWorkflow.getNameAsString(step, unwrap(context));
|
|
@@ -267,6 +269,14 @@ function WorkflowConversion_composeWorkflow_42450E6E(workflow, fs) {
|
|
|
267
269
|
} else {
|
|
268
270
|
workflowProtocol = WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(workflowFilePath, value(matchValue), workflow.Identifier);
|
|
269
271
|
}
|
|
272
|
+
const publisher = LDOrganization.create("DataPLANT");
|
|
273
|
+
const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, workflow.Contacts));
|
|
274
|
+
const dateCreated = utcNow();
|
|
275
|
+
if (creators != null) {
|
|
276
|
+
LDComputationalWorkflow.setCreators(workflowProtocol, value(creators));
|
|
277
|
+
}
|
|
278
|
+
LDComputationalWorkflow.setSdPublisher(workflowProtocol, publisher);
|
|
279
|
+
LDComputationalWorkflow.setDateCreatedAsDateTime(workflowProtocol, dateCreated);
|
|
270
280
|
if (workflow.Version != null) {
|
|
271
281
|
LDLabProtocol.setVersionAsString(workflowProtocol, value(workflow.Version));
|
|
272
282
|
}
|
|
@@ -282,8 +292,7 @@ function WorkflowConversion_composeWorkflow_42450E6E(workflow, fs) {
|
|
|
282
292
|
const softwareTools = ResizeArray_map(WorkflowConversion_composeComputationalTool_Z685B8F25, workflow.Components);
|
|
283
293
|
LDLabProtocol.setComputationalTools(workflowProtocol, softwareTools);
|
|
284
294
|
}
|
|
285
|
-
const
|
|
286
|
-
const hasParts = Option_fromSeq(dataFiles);
|
|
295
|
+
const hasParts = dataFiles.length === 0 ? ResizeArray_singleton(workflowProtocol) : ResizeArray_appendSingleton(workflowProtocol, dataFiles);
|
|
287
296
|
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, workflow.Comments));
|
|
288
297
|
return LDDataset.createARCWorkflow(workflow.Identifier, ResizeArray_singleton(workflowProtocol), void 0, unwrap(workflow.Title), unwrap(workflow.Description), unwrap(creators), unwrap(hasParts), unwrap(comments));
|
|
289
298
|
}
|
|
@@ -12,7 +12,7 @@ export declare function ARCtrl_ArcWorkflow__ArcWorkflow_ToROCrateWorkflow_1695DD
|
|
|
12
12
|
export declare function ARCtrl_ArcWorkflow__ArcWorkflow_fromROCrateWorkflow_Static_Z6839B9E8(a: LDNode, graph?: LDGraph, context?: LDContext): ArcWorkflow;
|
|
13
13
|
export declare function ARCtrl_ArcRun__ArcRun_ToROCrateRun_1695DD5C(this$: ArcRun, fs: Option<FileSystem>): LDNode;
|
|
14
14
|
export declare function ARCtrl_ArcRun__ArcRun_fromROCrateRun_Static_Z6839B9E8(a: LDNode, graph?: LDGraph, context?: LDContext): ArcRun;
|
|
15
|
-
export declare function
|
|
15
|
+
export declare function ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B(this$: ArcInvestigation, fs: Option<FileSystem>, ignoreBrokenWR: Option<boolean>): LDNode;
|
|
16
16
|
export declare function ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(a: LDNode, graph?: LDGraph, context?: LDContext): ArcInvestigation;
|
|
17
17
|
export declare function ARCtrl_ROCrate_Dataset__Dataset_toArcAssay_Static_Z6839B9E8(a: LDNode, graph?: LDGraph, context?: LDContext): ArcAssay;
|
|
18
18
|
export declare function ARCtrl_ROCrate_Dataset__Dataset_fromArcAssay_Static_1501C0F8(a: ArcAssay): LDNode;
|
|
@@ -34,7 +34,7 @@ export declare class Conversion {
|
|
|
34
34
|
static datasetToArcWorkflow(a: LDNode, graph?: LDGraph, context?: LDContext): ArcWorkflow;
|
|
35
35
|
static arcRunToDataset(a: ArcRun, fs?: FileSystem): LDNode;
|
|
36
36
|
static datasetToArcRun(a: LDNode, graph?: LDGraph, context?: LDContext): ArcRun;
|
|
37
|
-
static arcInvestigationToDataset(a: ArcInvestigation, fs?: FileSystem): LDNode;
|
|
37
|
+
static arcInvestigationToDataset(a: ArcInvestigation, fs?: FileSystem, ignoreBrokenWR?: boolean): LDNode;
|
|
38
38
|
static datasetToArcInvestigation(a: LDNode, graph?: LDGraph, context?: LDContext): ArcInvestigation;
|
|
39
39
|
}
|
|
40
40
|
export declare function Conversion_$reflection(): TypeInfo;
|