error: argument --reference is required
0
0
Entering edit mode
8.2 years ago

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 • 2.6k views
ADD COMMENT
0
Entering edit mode

Hi Michael

Who's Michael?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
1
Entering edit mode

Common Workflow Language.

ADD REPLY
0
Entering edit mode

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 REPLY
0
Entering edit mode

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 REPLY

Login before adding your answer.

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