Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
WDLs for trivial bam manipulation #82
Conversation
|
Note that this builds on #81 Will run full tests before requesting review. |
|
|
Both tests pass; this is ready to review. |
| + | ||
| + # Outputs that will be retained when execution is complete | ||
| + output { | ||
| + ExtractSAMHeader.* |
cjllanwarne
Jan 13, 2017
Contributor
The new style syntax would be File output_bam = ExtractSAMHeader.output_bam. That'd make it much easier to compose this WDL into other WDLs in the future
vdauwera
Jan 13, 2017
Collaborator
Oh interesting. What does this "new style" hang on? Is it a purely stylistic recommendation or an actual engine support thing? If so, at what version of Cromwell does this kick in?
| + | ||
| + # Outputs that will be retained when execution is complete | ||
| + output { | ||
| + ValidateBAM.* |
cjllanwarne
Jan 13, 2017
Contributor
Again, I think our samples should use the new style syntax as much as possible
|
@cjllanwarne I updated the output syntax as you recommended, but I'm getting this validation error (with wdltool 0.9):
The task output is defined as Is it because the new syntax is not yet supported by wdltool, or did I misunderstand your recommendation? |
|
And while we're on this code, I have a question re: using the value of optional args in output filenames. I have an optional arg declared as UPDATE 1: I tried
and that's not throwing up any validation errors, so I will run a test and see if it works. If it does we should document that this can be done, @katevoss and @knoblett. UPDATE 2: The above didn't seem to work in a real test. Although the job seems to proceed normally and there is no error anywhere (rc is 0), the outputs never materialize. Going back to the boring way of naming my output file fixes it. So either the two expressions I used above are not equivalent once they're evaluated, or there's something more subtle that's breaking here. |
|
(1) Oops, I didn't see the scatter! Cromwell is correct in telling me I got this wrong. Because it's coming from a call inside a scatter the output is indeed an (2) That looks like it should work, so might be a bug in Cromwell. You could maybe try doing it with an upfront input declaration instead of the two interpolations later on? eg:
and then use |
|
Aah, you illuminate my path like the North Star, @cjllanwarne. Thank you! |
|
Hmm. I updated the relevant lines and now my WDLs pass validation locally, but the Cromwell in the dsde-methods SwaggerUI is choking with this error:
With reformatting it looks like this (approximate caret position):
Any idea what's wrong? Could it be a Cromwell version problem? I think this Swagger is running C19. |
|
Oh no! Cromwell 19 is not going to support new style output format. I think that's C23+ |
|
FWIW that part 2 might also be a C19 bug that's fixed later. Also as a side-note, I wouldn't be tooo surprised if the space between |
|
OK, the new style outputs are working correctly on the updated swagger-cromwell-24. However the optional/default input declaration for the validation mode has not been working from me. I decided for now to just require the validation_mode to be specified explicitly as an input, since it's a very reasonable requirement. But I would be curious to see if the other way could be made to work. |
|
Oh and is it fair to say
|
|
@cjllanwarne ^^ |
vdauwera commentedJan 8, 2017