I am struggling creating a tool definition which has multiple files as InitialWorkDirRequirement. The problem is that I have two input parameters, one is of type File and the other one of type Directory. I need all files from the Directory to be staged into the working directory. Below is a simple tool definition for testing. The example below is clearly not working since one expression in "listing" evaluates to a list, resulting in [ [File] , File].
{
"cwlVersion": "v1.0",
"class": "CommandLineTool",
"baseCommand": [
"ls",
"-l",
"."
],
"requirements": [
{
"class": "InitialWorkDirRequirement",
"listing": [
"$(inputs.in.listing)" ,
"$(inputs.fasta)"
]
}
],
"stdout": "ls.log",
"stderr": "error.log",
"inputs": {
"in": "Directory",
"fasta": "File"
},
"outputs": {
"output": "stdout",
"error": "stderr"
}
}