Question: error: argument --reference is required
0
gravatar for giuseppacefalu
4.3 years ago by
giuseppacefalu0 wrote:

Hi Michael,

I am running the command below and I get the error that follows. Any hints?

Thanks,

Giuseppa

gcefalu@ubuntu:~$ cwl-runner BWA-INDEX.cwl index-input.yml --debug
/usr/local/bin/cwl-runner 1.0.20160901133827
usage: BWA-INDEX.cwl [-h] --reference REFERENCE [job_order]
BWA-INDEX.cwl: error: argument --reference is required

BWA-INDEX.cwl contains:
#!/usr/bin/env cwltool
cwlVersion: v1.0
class: CommandLineTool
hints:
  DockerRequirement:
    dockerPull: biodckr/bwa
baseCommand: [bwa, index]
arguments:
  - {prefix: "-p" , valueFrom: $(runtime.cores)}
  - {prefix: "-a", valueFrom: "\tis"}
inputs:
  reference:
    type: File
    inputBinding:
      position: 1
      valueFrom: $(self.dirname)/$(self.nameroot)

stdout: $(inputs.reference.nameroot).bwt
stdout: $(inputs.reference.nameroot).amb
stdout: $(inputs.reference.nameroot).ann
stdout: $(inputs.reference.nameroot).pac
stdout: $(inputs.reference.nameroot).sa

outputs:
  index_files:
    type: stdout       

index-input.yml contains:
!/usr/bin/env cwltool
cwl:tool: BWA-INDEX.cwl
reference:
  class: File
  location: ref.fa
cwl • 1.5k views
ADD COMMENTlink modified 4.3 years ago by _r_am32k • written 4.3 years ago by giuseppacefalu0

Hi Michael

Who's Michael?

ADD REPLYlink written 4.3 years ago by _r_am32k

It's a CWL file, so maybe Michael Crusoe?

ADD REPLYlink modified 4.3 years ago • written 4.3 years ago by Chris Fields2.1k

Could be him - was the first Michael to cross my mind. What's a CWL file by the way?

ADD REPLYlink written 4.3 years ago by _r_am32k
1

Common Workflow Language.

ADD REPLYlink written 4.3 years ago by Chris Fields2.1k

I have modified BWA-INDEX.cwl, but can not figure out how to get rid of the error.

!/usr/bin/env cwltool

cwlVersion: v1.0 class: CommandLineTool

hints: DockerRequirement: dockerPull: biodckr/bwa

baseCommand: [bwa, index]

arguments: - {prefix: "-p", valueFrom: $(runtime.cores)} - {prefix: "-a", valueFrom: "\tis"}

inputs: reference: type: File inputBinding: position: 1 valueFrom: $(self.dirname)/$(self.nameroot) outputs: output: type: File # format: http://edamontology.org/format_1929 # FASTA secondaryFiles: - '^.bai' - '^.amb' - '^.ann' - '^.bwt' - '^.pac' - '^.sa' outputBinding: glob: $(inputs.reference.basename)

ADD REPLYlink modified 4.3 years ago • written 4.3 years ago by giuseppacefalu0

FYI, To get full debugging output pass --debug immediately after cwltool or cwl-runner (though the later isn't guaranteed to work with other implementations)

Have you tried the existing BWA index description? https://github.com/common-workflow-language/workflows/blob/master/tools/bwa-index.cwl

ADD REPLYlink written 4.2 years ago by Michael R. Crusoe1.8k
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: 1544 users visited in the last hour
_