You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- "How do I stage input files in the working directory?"
7
+
objectives:
8
+
- "Learn how to handle situations where a tool expects to write output files to
9
+
the same directory as its input files."
10
+
keypoints:
11
+
- "Input files are normally kept in a read-only directory."
12
+
- "Use `InitialWorkDirRequirement` to stage input files in the working
13
+
directory."
14
+
---
15
+
Normally, input files are located in a read-only directory separate from
16
+
the output directory. This causes problems if the underlying tool expects to
17
+
write its output files alongside the input file in the same directory. You use `InitialWorkDirRequirement` to stage input files into the output directory.
18
+
In this example, we use a Javascript expression to extract the base name of the
19
+
input file from its leading directory path.
20
+
21
+
*linkfile.cwl*
22
+
23
+
```
24
+
{% include cwl/linkfile.cwl %}
25
+
```
26
+
27
+
*arguments-job.yml*
28
+
29
+
```
30
+
{% include cwl/arguments-job.yml %}
31
+
```
32
+
33
+
Now invoke `cwl-runner` with the tool wrapper and the input object on the
0 commit comments