common-workflow-language / common-workflow-language

Repository for the CWL standards. Use https://cwl.discourse.group/ for support 😊

Home Page:https://www.commonwl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: argument --*** is required

350dlc opened this issue · comments

I created a workflow.cwl file with an associated .yml input file that has two steps of calling individual .cwl files. I get an error stating that one of the inputs was not provided even though it is in my .yml input file.

Master workflow .cwl file
cwlVersion: v1.0
class: Workflow

inputs:
pdb_name: string
pdb_outputDir: string
pdb_filename: string
pdbH_dir: string

outputs: []

steps:

pullingPDB:
run: fetchFile2.cwl
in:
file_to_parse: pdb_name
parsed_file: pdb_outputDir
out: []

protonate:
run: addHydrogen2.cwl
in:
pdb_to_addHydrogens: pdb_filename
protonatedPDB: pdbH_dir
out: []

Master .yml file
pdb_name: 1ubq.pdb
pdb_outputDir: /home/nmrbox/lcraft/Desktop/sim_cbcanh_test/1ubq.pdb
pdb_filename: /home/nmrbox/lcraft/Desktop/sim_cbcanh_test/1ubq.pdb
pdbH_dir: /home/nmrbox/lcraft/Desktop/sim_cbcanh_test/1ubq_protonated.pdb

fetchFile2.cwl
#!/usr/bin/env cwl-runner

cwlVersion: v1.0
class: CommandLineTool
baseCommand: [python, /home/nmrbox/lcraft/Desktop/sim_cbcanh_test/fetch.py, -n, -out]

inputs:
file_to_parse:
type: string
inputBinding:
position: 2
parsed_file:
type: string
inputBinding:
position: 3

outputs: []

addHydrogen2.cwl
#!/usr/bin/env cwl-runner

cwlVersion: v1.0
class: CommandLineTool
baseCommand: [python, /home/nmrbox/lcraft/Desktop/sim_cbcanh_test/pdb4amber/pdb4amber.py, -i, -o, --reduce, --dry]

inputs:
pdb_to_addHydrogens:
type: string
inputBinding:
position: 2
protonatedPDB:
type: string
inputBinding:
position: 3

outputs: []

My error "~/masterWorkflow.cwl: error: argument --pdbH_dir is required"