This is a test version of Biostars. For the public version, visit https://www.biostars.org.
cwl: Multiple matches for output item that is a single file

I write as the follows: it stats array type: - 'null' - File - type: array items: File outputBinding: glob: '*.fq.gz'

error:soapnuke. cwl:215:5: Multiple matches for output item that is a single file. Why ?

cwl

Please provide the related .cwl document. Use the 'Code Sample' button to format it.

Please put more effort into your posts. You expect people to take the time to provide solutions to your questions, but you never provide even the most basic information.

2 answers

    outputs:
  - id: clean_fqs
    doc: |-
      1.soapnuke filter
    type:
      - 'null'
      - File
      - type: array
        items: File
    outputBinding:
      glob: '*.fq.gz'
  - id: clean_check
    type:
      - 'null'
      - File
      - type: array
        items: File
    outputBinding:
      glob: '*clean.fqcheck'
  - id: qual
    type:
      - 'null'
      - File
      - type: array
        items: File
    outputBinding:
      glob: '*.qual.png'
  - id: base
    type:
      - 'null'
      - File
      - type: array
        items: File
    outputBinding:
      glob: '*.base.png'
  - id: stat
    type:
      - 'null'
      - File
      - type: array
        items: File
    outputBinding:
      glob: '*.stat'

The above is my cwl's outputs.The error is :Multiple matches for output item that is a single file I dont understand it ,maybe the glob syntax? Sorry for my improper question format.

I modify to this, its ok .so the above is wrong? I obey the rabix introduction

outputs:
  - id: clean_fqs
    doc: |-
      1.soapnuke filter
    type:
       type: array
       items: File
    outputBinding:
      glob: '*.fq.gz'
  - id: clean_check
    type:
       type: array
       items: File
    outputBinding:
      glob: '*clean.fqcheck'
  - id: qual
    type:
       type: array
       items: File
    outputBinding:
      glob: '*.qual.png'
  - id: base
    type:
       type: array
       items: File
    outputBinding:
      glob: '*.base.png'
  - id: stat
    type:
       type: array
       items: File
    outputBinding:
   ....

This is definitely a correct way of catching multiple .fq.gz files. I'm not familiar with the style of notation you used in the first version, i can't figure out why it failed. Sorry! Maybe somebody else can help.

Log in to answer this question.