waleedev01 / analytics_automated_v2

Middleware layer for exposing analytics and distributed computing jobs as web services
Other
1 stars 0 forks source link

quick fix baseCommand position Error #129

Closed Cenxn closed 1 month ago

Cenxn commented 1 month ago

The baseCommand field will always appear in the final command line before the parameters. https://www.commonwl.org/user_guide/topics/inputs.html Thus, changed current ctl parser. Input: s4pred.cwl

cwlVersion: v1.2
class: CommandLineTool

baseCommand: [python3, "/home/dbuchan/Code/s4pred/run_model.py"]

stdout: out.horiz

inputs:
  output_flag:
    type: string
    default: "horiz"
    inputBinding:
      position: 1
      prefix: -t
  threads:
    type: string
    default: "1"
    inputBinding:
      position: 2
      prefix: -T
  fa_file:
    type: string
    inputBinding:
      position: 3

outputs:
  s4pred_output:
    type: stdout

Executable Before: python3 $P1 $P2 $P3 /home/dbuchan/Code/s4pred/run_model.py Fixed: python3 /home/dbuchan/Code/s4pred/run_model.py $P1 $P2 $P3