CWL capture multiple output files with prefix
1
0
Entering edit mode
3.3 years ago
nanomolar ▴ 10

I have a CommandLineTool demo, and run as: demo --AA file1.txt --BB file2.txt --CC file3.txt --nthreads 4

input file: --AA

output fileļ¼š --BB --CC

The fllowing CWL doesn't work.

error:

("Error collecting output for parameter 'ofile1':\ndemo.cwl:32:7: Did not find output file with glob pattern: '['file2.txt']'", {})

Why?

Thanks in advance.

!/usr/bin/env cwl-runner

cwlVersion: v1.0
class: CommandLineTool
baseCommand: demo
inputs:
  infile:
    type: File
    inputBinding:
      prefix: --AA
      position: 1
  outfile1:
    type: string 
    inputBinding:
      prefix: --BB
      position: 2
  outfile2:
    type: string 
    inputBinding:
      prefix: --CC
      position: 3
  nthreads:
    type: int
    inputBinding:
      prefix: --nthreads
outputs:
  ofile1:
    type: File
    outputBinding:
      glob: $(inputs.outfile1) 
  ofile2:
    type: File
    outputBinding:
      glob: $(inputs.outfile2)
CWL cwltool • 1.1k views
ADD COMMENT
1
Entering edit mode
3.3 years ago
nanomolar ▴ 10

I have fixed this problem. This is caused by the Command demo, the cwl is right.

ADD COMMENT
0
Entering edit mode

I'm glad you were able to fix your issue. For future reference, the official Q&A site for CWL is at https://cwl.discourse.group/

ADD REPLY

Login before adding your answer.

Traffic: 1675 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6