How to provide a Struct as an input to a WDL workflow.
I'm trying to provide an Array of these structs:
```
struct VcfChunk {
String chrom
String start_pos
String end_pos
File vcf
File csi
}
```
to a workflow via json and am receiving this cryptic error:
keys (TreeSet(chrom, csi, pos_end, pos_start, vcf)) have members that do not appear in struct VcfChunk
The input json is here and the full workflow script here.
I would also be fine using read_tsv but it looks like that won't generate correct dnanexus_link for the Files?
thanks,
Jared
Comments
3 comments
Yes, our dxCompiler and platform support Struct.
In this case, it's the error in name of your argument. When you defined it, you use `start_pos`, but when you call it you say `pos_start`. Same for ending position.
Well that is embarrassing! I can confirm it is working now.
Thanks again,
Jared
No worries. The community got your back. :)
Please sign in to leave a comment.