bunny icon indicating copy to clipboard operation
bunny copied to clipboard

CWL inputBinding bug for arrays

Open adamstruck opened this issue 7 years ago • 2 comments

If there is an input binding set on the items of an array input, but not the input itself the resulting command is not constructed properly.

Example below:

cwlVersion: v1.0
class: CommandLineTool

baseCommand: 
  - someCommand

inputs:
  test:
    type: 
      - type: array
        items: File
        inputBinding:
          prefix: -f

outputs:
   output:
    type: stdout

Produces the command someCommand when it should produce someCommand -f file1 -f file2

To get bunny to output the desired command I had to rewrite the CWL like this:

cwlVersion: v1.0
class: CommandLineTool

baseCommand: 
  - someCommand

inputs:
  test:
    type: 
      - type: array
        items: File
        inputBinding:
          prefix: -f
    inputBinding:
      position: 0

outputs:
   output:
    type: stdout

adamstruck avatar Mar 24 '17 19:03 adamstruck

@adamstruck, thanx for the report. This should be fixed on a develop branch, and will be a part of the nest release (which I'm not sure when will be released).

StarvingMarvin avatar Apr 21 '17 13:04 StarvingMarvin

Hi, we've made a new release (v1.0.2) just now, this fix should be included inside.

milos-ljubinkovic avatar Oct 18 '17 18:10 milos-ljubinkovic