Question: CWL Argument Error
0
gravatar for StarCute
2.2 years ago by
StarCute110
United States
StarCute110 wrote:

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?

cwl software error • 873 views
ADD COMMENTlink modified 23 months ago by karl.nordstrom80 • written 2.2 years ago by StarCute110
2
gravatar for karl.nordstrom
23 months ago by
karl.nordstrom80 wrote:

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

The command should be:

cwl-runner --debug bwa.cwl bwa.yml
ADD COMMENTlink written 23 months ago by karl.nordstrom80
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1682 users visited in the last hour