Entering edit mode
7.4 years ago
well309
▴
70
I'd like to know how can I combine two arrays (of string or File) into a single one in Common Workflow Language. For example:
cwlVersion: v1.0
class: Workflow
inputs:
files_1: File[]
files_2: File[]
outputs:
task1_output:
type: File
outputSource: task1/outfile
steps:
task1:
in:
files: [files_1, files_2] # it does not work
out: [outfile]
Input example:
files_1:
- class: File
path: fileA_1.fastq
- class: File
path: fileB_1.fastq
files_2:
- class: File
path: fileA_2.fastq
- class: File
path: fileB_2.fastq
Thank you Michael. I added a working example followed by the error message.
Tool example (du):
Workflow with
MultipleInputFeatureRequirement
:Error message from cwl-runner:
try
Thank you Michael. Here the code that worked.
Yay! I've updated my response to correct for the missing brackets for
files.source
-- thanks!