-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make GATKSVPipelineSingleSample validate it in MiniWDL #154
Make GATKSVPipelineSingleSample validate it in MiniWDL #154
Conversation
Thank you for bringing to our attention that users of MiniWDL may encounter these validation issues. We use womtool for validation and cromwell to run workflows, and it appears that those tools have different validation checks. I believe that MiniWDL is not handling parameters with default values the same way as womtool/cromwell, based on the changes you made with regard to optional/required inputs. In the cases of With regard to your other changes, thank you for bringing to our attention the duplicate inputs, the lack of newline at the end of Tasks0506.wdl, and the use of the optional input |
Thanks for the reply @epiercehoffman! I believe Cromwell / womtool is actually parsing this incorrectly with respect to the WDL spec. I've requested clarification here: openwdl/wdl#462. To address your feedback, I've made the Optional -> Non optional map apply the default in the task, like: task ... {
input {
Int? disk_overhead_gb = 10
}
disk_overhead_gb_ = select_first([disk_overhead_gb, 10])
# ... use `disk_overhead_gb_`
} This validates with womtool and MiniWDL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @illusional you bring up a valid point about the default input types. I made some comments in specific places but please incorporate them throughout where you have made similar changes as well.
Thanks @mwalker174, I've addressed your comments. I've also reverted the
Also, I think it's worth adding a |
Hi @mwalker174 and @epiercehoffman, are there any blockers for this PR, or anything I need to get it ready for re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delayed response - I still have a couple of suggestions here.
Thanks @mwalker174, I've refactored the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @illusional for the updates and follow-through, looks good!
Fixes #153.
Make the GATKSVPipelineSingleSample pipeline validate in MiniWDL through a combination of:
outfile-name
was optional.select_first
to coerceX? -> X
disk_overhead_gb = select_first([disk_overhead_gb, 0])
, because if it's not supplied I guess it could be 0.