Skip to content

Commit 458cf30

Browse files
committed
update readme, finish whiskertail
1 parent eff621d commit 458cf30

File tree

3 files changed

+32
-25
lines changed

3 files changed

+32
-25
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@ Mouse-sized WDL tasks for your workflows. 🐁
33

44
Please add your suggestions to the Issues tab and flag them as enhancement.
55

6-
## arraycheck_simple
6+
## task-level
7+
8+
### arraycheck_simple
79
For performing a check between an array of truth files and an array of test files. It is assumed that the filenames between the truth and test files match. All md5 mismatches are reported, unless `fastfail == true` in which case the pipeline will fail immediately.
810

9-
## arraycheck_rdata
11+
### arraycheck_rdata
1012
Similar to arraycheck_exact, but upon md5 mismatch, an Rscript is run to check for functional equivalence via `all.equal(testfile, truthfile, tolerance)`. It is assumed that both checked files are RData files. The user may set the tolerance value, which defaults to 1.0e-8.
1113

12-
## enumouse
14+
### enumouse
1315
Type `enum` exists in CWL, but not WDL. This task very roughly mimics the `enum` type by checking if a string is within an allowed set of values.
1416

15-
## filechecker
17+
### filechecker
1618
Checks if two files are equivalent, as opposed to arraycheck_* iterating through two arrays. Includes the same Rdata equivalence checker of arraycheck_rdata (disabled by default).
1719

18-
## metamouse
20+
## workflow-level
21+
22+
### metamouse
1923
Checker/Debugger for Stuart tasks. The test files are derived from the [WDL translation](https://github.com/DataBiosphere/analysis_pipeline_WDL) of the [UWGAC TOPMed Pipeline](https://github.com/UW-GAC/analysis_pipeline).
2024

25+
### whiskertail
26+
Template for enforcing order in a WDL workspace. This could be useful if you want a workflow to fail early, rather than waste time/money on other steps.

whiskertail.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"whiskertail.bogus": "This gets ignored."
2+
"whiskertail.bogus": "Some backends require an input JSON, so we have one that does nothing."
33
}

whiskertail.wdl

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version 1.0
22

3-
task whisker {
3+
task simpletask {
44
input {
55
String echome
66
}
@@ -10,35 +10,36 @@ task whisker {
1010
>>>
1111

1212
output {
13-
String out = "The next task may now begin"
14-
}
15-
}
16-
17-
task tail {
18-
input {
19-
String echome
20-
}
21-
22-
command <<<
23-
echo "${echome}"
24-
>>>
25-
26-
output {
27-
String out = "This should be the last task"
13+
String out = "The next task may now begin!"
2814
}
2915
}
3016

3117
workflow whiskertail {
3218
input {
33-
String bogus = "This doesn't ever get used"
19+
String bogus = "This doesn't ever get used, but an input is required for some backends."
3420
}
35-
call tail {
21+
22+
if(back_paws.out != "") {
23+
call simpletask as tail {
24+
input:
25+
echome = "I run last!"
26+
}
27+
}
28+
29+
call simpletask as front_paws {
3630
input:
3731
echome = whisker.out
3832
}
3933

40-
call whisker {
34+
call simpletask as whisker {
4135
input:
4236
echome = "I run first!"
4337
}
38+
39+
if(front_paws.out != "") {
40+
call simpletask as back_paws {
41+
input:
42+
echome = "I am the penultimate task!"
43+
}
44+
}
4445
}

0 commit comments

Comments
 (0)