Skip to content

Commit 6cca365

Browse files
committed
Added create-file-expression for interopqc
1 parent 49e5771 commit 6cca365

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
cwlVersion: v1.1
2+
class: ExpressionTool
3+
4+
# Extensions
5+
$namespaces:
6+
s: https://schema.org/
7+
$schemas:
8+
- https://schema.org/version/latest/schemaorg-current-http.rdf
9+
10+
# Metadata
11+
s:author:
12+
class: s:Person
13+
s:name: Alexis Lucattini
14+
15+
s:identifier: https://orcid.org/0000-0001-9754-647X
16+
17+
# ID/Docs
18+
id: create-file--1.0.0
19+
label: create-file v(1.0.0)
20+
doc: |
21+
Documentation for create-file v1.0.0
22+
23+
inputs:
24+
basename:
25+
label: basename
26+
type: string
27+
doc: |
28+
The name of the file to be created.
29+
contents:
30+
label: contents
31+
type: string?
32+
doc: |
33+
The contents of the file to be created.
34+
If not provided, an empty file will be created OR the contents used by location
35+
location:
36+
label: location
37+
type: string
38+
doc: |
39+
This might be the location of an existing file and can be used to create a new file with the same contents.
40+
41+
outputs:
42+
output_file:
43+
type: File
44+
label: output_file
45+
doc: |
46+
The output file created by the expression tool.
47+
48+
expression: |
49+
${
50+
return {
51+
"output_file": {
52+
"class": "File",
53+
"basename": inputs.basename,
54+
"contents": inputs.contents,
55+
"location": inputs.location
56+
}
57+
};
58+
}

0 commit comments

Comments
 (0)