CWL Argument Error
1
0
Entering edit mode
7.7 years ago
StarCute ▴ 110

I have a cwl file:

cwlVersion: cwl:draft-3
class: CommandLineTool
baseCommand: [bwa, mem]
inputs:
  - id: reference
    type: File
    inputBinding:
      position: 1
  - id: forward
    type: File
    inputBinding:
      position: 2
  - id: sam
    type: string
    inputBinding:
      position: 3
      prefix: ">"
outputs: []

And a yml file:

reference:
  class: File
  path: ref.fa
forward:
  class: File
  path: lane1.fa
sam: res.sam

When I run the command:

cwl-runner bwa.cwl bwa.yml --debug

I get the following error message:

usage: bwa.cwl [-h] --reference REFERENCE --forward FORWARD --sam SAM
           [job_order]
bwa.cwl: error: argument --reference is required

Both ref.fa and lane1.fa are in my current working directory. Any advice?

software error cwl • 2.2k views
ADD COMMENT
2
Entering edit mode
7.4 years ago

The problem is with the placement of the --debug flag

The command should be:

cwl-runner --debug bwa.cwl bwa.yml
ADD COMMENT

Login before adding your answer.

Traffic: 2177 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