Skip to content

Commit 75f3c49

Browse files
committed
Create Dockstore.wdl
1 parent 8122184 commit 75f3c49

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Dockstore.wdl

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
task ps {
2+
command {
3+
ps
4+
}
5+
output {
6+
File procs = stdout()
7+
}
8+
}
9+
10+
task cgrep {
11+
String pattern
12+
File in_file
13+
command {
14+
grep '${pattern}' ${in_file} | wc -l
15+
}
16+
output {
17+
Int count = read_int(stdout())
18+
}
19+
}
20+
21+
task wc {
22+
File in_file
23+
command {
24+
cat ${in_file} | wc -l
25+
}
26+
output {
27+
Int count = read_int(stdout())
28+
}
29+
}
30+
31+
workflow three_step {
32+
call ps
33+
call cgrep {
34+
input: in_file=ps.procs
35+
}
36+
call wc {
37+
input: in_file=ps.procs
38+
}
39+
}

0 commit comments

Comments
 (0)