-
Notifications
You must be signed in to change notification settings - Fork 306
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
Fix: Uncapitalize pair fields in inputs json #222
Fix: Uncapitalize pair fields in inputs json #222
Conversation
@cjllanwarne Is the spec incorrect or is Cromwell incorrect? |
I think whichever we choose (
This feels like a typo to me rather than a conscious choice to have upper case only in the inputs JSON. Since Cromwell is already doing lowercase throughout and that's the "in WDL code" example, I'm advocating for that, but if people disagree, I'm open to the alternatives. |
@cjllanwarne Sorry I should have been more direct but you caught my drift. At the moment the spec says one thing but Cromwell is doing something else (and presumably other implementations as well). IMO that means that it's an implementation bug and thus not an automatic merge here. I'd suggest drawing attention to this in order to assess:
And then go forward armed with that information. |
To be a bit controversion, I wonder if the syntax for Ie: Pair[String,File] foo = ("bar", "file://biz")
String left = foo[0]
String right = foo[1] |
@patmagee as a bit of history and not stated to make any sort of point, when |
I agree whole-heartedly about there being a better way to handle tuples in general. Right now I just want the spec to:
If this proposed scheme change doesn't actually match all implementations (ie if there's an engine which reads in If that is the case then maybe "case insensitive" in both cases is the least disruptive change here (because I don't want to break Cromwell users' inputs files and force them to change to |
@cjllanwarne coming back to this, I like the idea of restricing the Feel free to send this to voting |
@cjllanwarne so this did not really seem to go anywhere! But I still like this idea. I do wonder if this should be phased out, as opposed to just changed. Ie allow uppercase OR lowercase for the next release, thjen add a deprecation notice |
This feels like it's falling into the same "should there be an inputs json at all?" trap as #301 although no one has seemed to notice that, not even anti-inputs json stalwart @patmagee :) I hae the same stance here that I did there which is we should just proceed and if someone wants to change how inputs are done separately they can. |
Is If WDL really needs |
@pshapiro4broad # map all the samples
scatter (sample in samples) {
call bwa #...
Pair idAndBam = (sample.id, bwa.bam)
}
# create a mapping between the sample ids and their bam files
Map[String, File] idToBam = as_map(idAndBam)
# do some case-control analysis for the samples which have a control specified
scatter (sample in samples) {
if (defined(sample.control) {
call somatic_variant_calling {
input:
# use the mapping made earlier to retrieve the appropriate
# BAM files for the sample and matched control
case=idToBam[sample.id],
control=idToBam[sample.control]
}
}
} |
@geoffjentry @cjllanwarne I have opened this for voting, but I parly feel like this can just be merged as is as a typo fix. WDYT? |
👍 |
1 similar comment
👍 |
@geoffjentry @patmagee Isn't this already implemented in cromwell? |
@cjllanwarne can you please rebase? (if you do not have time I can look into it) |
Merging as approved and implemented, now that the merge conflict has been resolved |
Discovered by a user here: https://gatkforums.broadinstitute.org/wdl/discussion/12025/error-scattering-array-pair-string-string#latest
The fields to initialize a
Pair
in the inputs JSON should beleft
andright
, notLeft
andRight