File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,15 @@ This example demonstrates how to change the name of an output file
62
62
from the default name given to it by a tool:
63
63
64
64
` ` ` yaml
65
- cwlVersion : v1.0 # or v1.1
65
+ cwlVersion : v1.0
66
66
class : CommandLineTool
67
67
requirements :
68
68
InlineJavascriptRequirement : {}
69
69
70
- baseCommand : []
70
+ baseCommand : [ touch, otu_table.txt ]
71
71
72
- inputs : []
72
+ inputs :
73
+ otu_table_name : string
73
74
74
75
outputs :
75
76
otu_table :
@@ -79,6 +80,9 @@ outputs:
79
80
outputEval : ${self[0].basename=inputs.otu_table_name; return self;}
80
81
` ` `
81
82
83
+ By modifying the ` basename` field in the `outputEval` field, CWL workflow engines will rename
84
+ the file using the new name for subsequent steps or as a workflow-level output.
85
+
82
86
# # How do I reference a local script?
83
87
84
88
There are two ways to reference a local script :
You can’t perform that action at this time.
0 commit comments