-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from simleo/step_valuefrom
Handle step input mappings with no source
- Loading branch information
Showing
29 changed files
with
1,775 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Hello | ||
World | ||
Hello | ||
CWL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
wf_in: | ||
class: File | ||
location: in.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
|
||
baseCommand: sort | ||
|
||
inputs: | ||
reverse: | ||
type: boolean? | ||
inputBinding: | ||
position: 1 | ||
prefix: "--reverse" | ||
outname: | ||
type: string | ||
inputBinding: | ||
position: 2 | ||
prefix: "--output" | ||
sort_in: | ||
type: File | ||
inputBinding: | ||
position: 3 | ||
outputs: | ||
sort_out: | ||
type: File | ||
outputBinding: | ||
glob: "*sorted" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class: Workflow | ||
cwlVersion: v1.2 | ||
requirements: | ||
- class: StepInputExpressionRequirement | ||
- class: InlineJavascriptRequirement | ||
|
||
inputs: | ||
wf_in: File | ||
|
||
outputs: | ||
wf_out: | ||
type: File | ||
outputSource: step1/sort_out | ||
|
||
steps: | ||
step1: | ||
run: sorttool.cwl | ||
in: | ||
sort_in: wf_in | ||
outname: | ||
valueFrom: $(inputs.sort_in.basename)_sorted | ||
out: [sort_out] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bag-Software-Agent: cwltool 3.1.20220802125926 | ||
BagIt-Profile-Identifier: https://w3id.org/ro/bagit/profile | ||
Bagging-Date: 2023-05-25 | ||
External-Description: Research Object of CWL workflow run | ||
External-Identifier: arcp://uuid,b0888ccc-a7fd-47ea-a61a-c7801af3e6ff/ | ||
Payload-Oxum: 57.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BagIt-Version: 0.97 | ||
Tag-File-Character-Encoding: UTF-8 |
1 change: 1 addition & 0 deletions
1
tests/data/step-valuefrom-run-1/data/26/2651eb956ec4e3a1e0e48e06394c3aa290ba60c2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
in.txt_sorted |
4 changes: 4 additions & 0 deletions
4
tests/data/step-valuefrom-run-1/data/4e/4e9467350ac0864d8b27655aa01765680f922582
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CWL | ||
Hello | ||
Hello | ||
World |
4 changes: 4 additions & 0 deletions
4
tests/data/step-valuefrom-run-1/data/7c/7cb1a4da14ba3e91b983b30e7689e3902bcd2034
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Hello | ||
World | ||
Hello | ||
CWL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
7cb1a4da14ba3e91b983b30e7689e3902bcd2034 data/7c/7cb1a4da14ba3e91b983b30e7689e3902bcd2034 | ||
2651eb956ec4e3a1e0e48e06394c3aa290ba60c2 data/26/2651eb956ec4e3a1e0e48e06394c3aa290ba60c2 | ||
4e9467350ac0864d8b27655aa01765680f922582 data/4e/4e9467350ac0864d8b27655aa01765680f922582 |
14 changes: 14 additions & 0 deletions
14
...s/data/step-valuefrom-run-1/metadata/logs/engine.dbf26d00-ef02-4dd0-897a-6bf2ec301b89.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[2023-05-25T11:31:16,24.269819Z] [cwltool] /home/simleo/git/runcrate/venv/bin/cwltool --provenance step-valuefrom-run-1 wf.cwl params.yml | ||
[2023-05-25T11:31:16,26.929617Z] Resolved 'wf.cwl' to 'file:///home/simleo/git/runcrate/cwl/step_valuefrom/wf.cwl' | ||
[2023-05-25T11:31:20,13.793468Z] [provenance] Adding to RO file:///home/simleo/git/runcrate/cwl/step_valuefrom/in.txt | ||
[2023-05-25T11:31:20,15.956640Z] [workflow ] start | ||
[2023-05-25T11:31:20,16.201258Z] [workflow ] starting step step1 | ||
[2023-05-25T11:31:20,16.657352Z] [step step1] start | ||
[2023-05-25T11:31:20,18.600225Z] [job step1] /tmp/3bp5jcuy$ sort \ | ||
--output \ | ||
in.txt_sorted \ | ||
/tmp/2i2_pnlu/stg5e4ca9b2-2dc1-4542-a066-1a9ddd53e8b9/in.txt | ||
[2023-05-25T11:31:20,24.585724Z] [job step1] completed success | ||
[2023-05-25T11:31:20,24.797678Z] [step step1] completed success | ||
[2023-05-25T11:31:20,24.946213Z] [workflow ] completed success | ||
[2023-05-25T11:31:20,70.524931Z] Final process status is success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
{ | ||
"@context": [ | ||
{ | ||
"@base": "arcp://uuid,b0888ccc-a7fd-47ea-a61a-c7801af3e6ff/metadata/" | ||
}, | ||
"https://w3id.org/bundle/context" | ||
], | ||
"id": "/", | ||
"conformsTo": "https://w3id.org/cwl/prov/0.6.0", | ||
"manifest": "manifest.json", | ||
"createdOn": "2023-05-25T13:31:20.074420", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
}, | ||
"authoredBy": null, | ||
"aggregates": [ | ||
{ | ||
"uri": "urn:hash::sha1:7cb1a4da14ba3e91b983b30e7689e3902bcd2034", | ||
"bundledAs": { | ||
"uri": "arcp://uuid,b0888ccc-a7fd-47ea-a61a-c7801af3e6ff/data/7c/7cb1a4da14ba3e91b983b30e7689e3902bcd2034", | ||
"folder": "/data/7c/", | ||
"filename": "7cb1a4da14ba3e91b983b30e7689e3902bcd2034" | ||
} | ||
}, | ||
{ | ||
"uri": "urn:hash::sha1:2651eb956ec4e3a1e0e48e06394c3aa290ba60c2", | ||
"bundledAs": { | ||
"uri": "arcp://uuid,b0888ccc-a7fd-47ea-a61a-c7801af3e6ff/data/26/2651eb956ec4e3a1e0e48e06394c3aa290ba60c2", | ||
"folder": "/data/26/", | ||
"filename": "2651eb956ec4e3a1e0e48e06394c3aa290ba60c2" | ||
}, | ||
"mediatype": "text/plain; charset=\"UTF-8\"" | ||
}, | ||
{ | ||
"uri": "urn:hash::sha1:4e9467350ac0864d8b27655aa01765680f922582", | ||
"bundledAs": { | ||
"uri": "arcp://uuid,b0888ccc-a7fd-47ea-a61a-c7801af3e6ff/data/4e/4e9467350ac0864d8b27655aa01765680f922582", | ||
"folder": "/data/4e/", | ||
"filename": "4e9467350ac0864d8b27655aa01765680f922582" | ||
} | ||
}, | ||
{ | ||
"uri": "../workflow/packed.cwl", | ||
"mediatype": "text/x+yaml; charset=\"UTF-8\"", | ||
"conformsTo": "https://w3id.org/cwl/", | ||
"createdOn": "2023-05-25T13:31:20.074697", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../workflow/primary-job.json", | ||
"mediatype": "application/json", | ||
"conformsTo": null, | ||
"createdOn": "2023-05-25T13:31:20.074759", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": null, | ||
"mediatype": null, | ||
"conformsTo": null, | ||
"createdOn": "2023-05-24T17:45:16.550146", | ||
"bundledAs": null | ||
}, | ||
{ | ||
"uri": "../metadata/provenance/primary.cwlprov.provn", | ||
"mediatype": "text/provenance-notation; charset=\"UTF-8\"", | ||
"conformsTo": [ | ||
"http://www.w3.org/TR/2013/REC-prov-n-20130430/", | ||
"https://w3id.org/cwl/prov/0.6.0" | ||
], | ||
"createdOn": "2023-05-25T13:31:20.074841", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../metadata/provenance/primary.cwlprov.jsonld", | ||
"mediatype": "application/ld+json", | ||
"conformsTo": [ | ||
"http://www.w3.org/TR/2013/REC-prov-o-20130430/", | ||
"https://w3id.org/cwl/prov/0.6.0" | ||
], | ||
"createdOn": "2023-05-25T13:31:20.074900", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../metadata/logs/engine.dbf26d00-ef02-4dd0-897a-6bf2ec301b89.txt", | ||
"mediatype": "text/plain; charset=\"UTF-8\"", | ||
"conformsTo": null, | ||
"createdOn": "2023-05-25T13:31:20.074946", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../metadata/provenance/primary.cwlprov.xml", | ||
"mediatype": "application/xml", | ||
"conformsTo": [ | ||
"http://www.w3.org/TR/2013/NOTE-prov-xml-20130430/", | ||
"https://w3id.org/cwl/prov/0.6.0" | ||
], | ||
"createdOn": "2023-05-25T13:31:20.074971", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../metadata/provenance/primary.cwlprov.nt", | ||
"mediatype": "application/n-triples", | ||
"conformsTo": [ | ||
"http://www.w3.org/TR/2013/REC-prov-o-20130430/", | ||
"https://w3id.org/cwl/prov/0.6.0" | ||
], | ||
"createdOn": "2023-05-25T13:31:20.074995", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../workflow/primary-output.json", | ||
"mediatype": "application/json", | ||
"conformsTo": null, | ||
"createdOn": "2023-05-25T13:31:20.075019", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../metadata/provenance/primary.cwlprov.json", | ||
"mediatype": "application/json", | ||
"conformsTo": [ | ||
"http://www.w3.org/Submission/2013/SUBM-prov-json-20130424/", | ||
"https://w3id.org/cwl/prov/0.6.0" | ||
], | ||
"createdOn": "2023-05-25T13:31:20.075043", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": "../metadata/provenance/primary.cwlprov.ttl", | ||
"mediatype": "text/turtle; charset=\"UTF-8\"", | ||
"conformsTo": [ | ||
"http://www.w3.org/TR/2013/REC-prov-o-20130430/", | ||
"https://w3id.org/cwl/prov/0.6.0" | ||
], | ||
"createdOn": "2023-05-25T13:31:20.075066", | ||
"createdBy": { | ||
"uri": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"name": "cwltool 3.1.20220802125926" | ||
} | ||
}, | ||
{ | ||
"uri": null, | ||
"mediatype": null, | ||
"conformsTo": null, | ||
"createdOn": "2023-05-24T17:45:16.550146", | ||
"bundledAs": null | ||
} | ||
], | ||
"annotations": [ | ||
{ | ||
"uri": "urn:uuid:c51e23f0-0341-4d2e-b832-10b69cbd9958", | ||
"about": "urn:uuid:b0888ccc-a7fd-47ea-a61a-c7801af3e6ff", | ||
"content": "/", | ||
"oa:motivatedBy": { | ||
"@id": "oa:describing" | ||
} | ||
}, | ||
{ | ||
"uri": "urn:uuid:33bc1279-9391-4de6-ac17-dfb2b3b559bd", | ||
"about": "urn:uuid:b0888ccc-a7fd-47ea-a61a-c7801af3e6ff", | ||
"content": [ | ||
"provenance/primary.cwlprov.provn", | ||
"provenance/primary.cwlprov.jsonld", | ||
"provenance/primary.cwlprov.xml", | ||
"provenance/primary.cwlprov.nt", | ||
"provenance/primary.cwlprov.json", | ||
"provenance/primary.cwlprov.ttl" | ||
], | ||
"oa:motivatedBy": { | ||
"@id": "http://www.w3.org/ns/prov#has_provenance" | ||
} | ||
}, | ||
{ | ||
"uri": "urn:uuid:1e7635fb-7b71-4c05-83af-089b7bff138a", | ||
"about": "../workflow/packed.cwl", | ||
"content": null, | ||
"oa:motivatedBy": { | ||
"@id": "oa:highlighting" | ||
} | ||
}, | ||
{ | ||
"uri": "urn:uuid:85f71144-f7b5-4c51-b60a-ba4181627e6a", | ||
"about": "urn:uuid:b0888ccc-a7fd-47ea-a61a-c7801af3e6ff", | ||
"content": [ | ||
"../workflow/packed.cwl", | ||
"../workflow/primary-job.json" | ||
], | ||
"oa:motivatedBy": { | ||
"@id": "oa:linking" | ||
} | ||
}, | ||
{ | ||
"uri": "urn:uuid:0107e2ee-3d23-4f91-9ed3-1e5f822b7a6c", | ||
"about": "urn:uuid:dbf26d00-ef02-4dd0-897a-6bf2ec301b89", | ||
"content": [ | ||
"metadata/logs/engine.dbf26d00-ef02-4dd0-897a-6bf2ec301b89.txt" | ||
], | ||
"oa:motivatedBy": { | ||
"@id": "https://w3id.org/cwl/prov#log" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.