Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add a function to get a list of the values from a Map #43
Comments
|
@kcibul Here's my ticket; let me know if you need any other info. |
|
broadinstitute/dsde-pipelines#141 shows how this would be used in practice in the GOTC single-sample WDL. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vdauwera commentedJul 16, 2016
•
edited
I have a
Map[String,File]from which I want to extract the values into anArray[File], that would be equivalent to eg the Java expressionList list = map.values.Justification: I need to provide multiple files to a task and I don't want to have to hardcode separate arguments for each. I can't just use an Array at the workflow inputs level because I need to be able to call on one of the files specifically in other tasks.
Worked out use case:
JSON
WDL
The expression
dbSNP_VCF = known_sites_VCFs_map["dbsnp"]already works perfectly. But there's currently no way to do a straightforwardknown_sites_VCFs = known_sites_VCFs_map.values. This is the feature request. Actual syntax can be different of course.Bonus points for making the keys available as well, though I don't have an immediate use case in mind.